From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752269AbbJBHsB (ORCPT ); Fri, 2 Oct 2015 03:48:01 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:43804 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbbJBHr6 (ORCPT ); Fri, 2 Oct 2015 03:47:58 -0400 X-AuditID: cbfec7f5-f794b6d000001495-f5-560e36ac4825 Subject: Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c To: John Youn , "balbi@ti.com" References: <1442830572-6765-1-git-send-email-m.szyprowski@samsung.com> <1442830572-6765-5-git-send-email-m.szyprowski@samsung.com> <20151001155018.GC4469@saruman.tx.rr.com> <2B3535C5ECE8B5419E3ECBE30077290901DC383B31@US01WEMBX2.internal.synopsys.com> <20151001220355.GB32355@saruman.tx.rr.com> <2B3535C5ECE8B5419E3ECBE30077290901DC383EFF@US01WEMBX2.internal.synopsys.com> Cc: "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , Robert Baldyga , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz From: Marek Szyprowski Message-id: <560E36AA.7090106@samsung.com> Date: Fri, 02 Oct 2015 09:47:54 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-version: 1.0 In-reply-to: <2B3535C5ECE8B5419E3ECBE30077290901DC383EFF@US01WEMBX2.internal.synopsys.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t/xa7przPjCDA5eYLPYOGM9q8XB+/UW E5b+ZLF4/cLQ4vKuOWwWM87vY7JYtKyV2eLB4Z3sDhwefVtWMXps2f+Z0eP4je1MHp83yQWw RHHZpKTmZJalFunbJXBlPHl+hbWgTaBi0ZIGRiDk7WLk4JAQMJE4vsSpi5ETyBSTuHBvPVsX IxeHkMBSRokHO5axQDjPGSU+PXjPCtIgLBAhsWV3PkiDiICrxLc3E9khav4xSfw9OYUJxGEW uMUkMXUHSIaTg03AUKLrbRcbiM0roCXxbc88ZhCbRUBV4v/UuSwgtqhAjETPrw1QNYISPybf A4tzAsX/HLsDFmcWMJP48vIwK4QtL7F5zVvmCYwCs5C0zEJSNgtJ2QJG5lWMoqmlyQXFSem5 RnrFibnFpXnpesn5uZsYISH+dQfj0mNWhxgFOBiVeHg3nOUNE2JNLCuuzD3EKMHBrCTC66XE FybEm5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJJanZqakFqUUwWSYOTqkGxrXsgZvk ljGvui9hevFN0fRr1Wl/2r76TXn0k/0jR6jLz+nvbJu+qjsbabNNZ/Q6k5VuJt/vHZ5rosXK OVd86kTGuz+fZZ6V+bpS+JbaseJfGkd2P2aMWVV2cUfUpesNz6ZIcCbICLzYEPr6hOx6+afT 3019vSdlzhvR8BtveGfaTsxdeG+a5HolluKMREMt5qLiRAD0VTanbQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2015-10-02 00:21, John Youn wrote: > On 10/1/2015 3:04 PM, Felipe Balbi wrote: >> On Thu, Oct 01, 2015 at 09:04:59PM +0000, John Youn wrote: >>> On 10/1/2015 8:50 AM, Felipe Balbi wrote: >>>> On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: >>>>> DWC2 module on some platforms needs three additional hardware >>>>> resources: phy controller, clock and power supply. All of them must be >>>>> enabled/activated to properly initialize and operate. This was initially >>>>> handled in s3c-hsotg driver, which has been converted to 'gadget' part >>>>> of dwc2 driver. Unfortunately, not all of this code got moved to common >>>>> platform code, what resulted in accessing DWC2 registers without >>>>> enabling low-level hardware resources. This fails for example on Exynos >>>>> SoCs. This patch moves all the code for managing those resources to >>>>> common platform.c file and provides convenient wrappers for controlling >>>>> them. >>>>> >>>>> Signed-off-by: Marek Szyprowski >>>> I just caught several build errors which this patch. I hope you can >>>> send me a follow-up fix (which I can amend to $subject) otherwise >>>> I'll have to drop this series >>>> >>> I forgot that this was initially part of a larger >>> patch-set. Maybe that is causing issues? If this wasn't intended >>> to go through Felipe's tree then my bad. >>> >>> Also, I noticed this patch causes deadlock warnings with lockdep >>> enabled. >>> >>> Can you look into that also while you investigate this? >> John, do you want me to drop the series meanwhile ? I can do that no problems. > You can drop this one. I think leaving in patch 1-3 is fine as > they are small cleanup patches. Unless you or Marek prefer to > drop all of them. Patches 1-3 are fixes, so please keep them. I've also just posted an updated patch no 4, I've missed the fact that dwc2_hsotg structure content was defined conditionally. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland