Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754502AbbKDDC7 (ORCPT ); Tue, 3 Nov 2015 22:02:59 -0500 Received: from mail-by2on0103.outbound.protection.outlook.com ([207.46.100.103]:18002 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752380AbbKDDC5 (ORCPT ); Tue, 3 Nov 2015 22:02:57 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=freescale.com; Date: Wed, 4 Nov 2015 11:00:58 +0800 From: Peter Chen To: Felipe Balbi CC: Nathan Sullivan , , , Subject: Re: [PATCH V4] usb: remove unnecessary CONFIG_PM dependency from USB_OTG Message-ID: <20151104030056.GA20460@shlinux2> References: <1446126743-31892-1-git-send-email-nathan.sullivan@ni.com> <8737wnnq3c.fsf@saruman.tx.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <8737wnnq3c.fsf@saruman.tx.rr.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD049;1:Nmom5eOn6AX2zSFP6gbovyBp044Qi+iUuYt1n4p7++kdVEfLf/VigdqTHZEdPIkaAYaZJTEyNC1bTUEFWcCKGmOeyHiouSCU0H9d+lvnwY/8xTy6bPFqc20A5oFVBnmCXU3tE7Wi6nts9jqxA9azJqPDnBj0xP8scKaSUpIttyDrTsbC17inCOJ0bx9+vWkTstsILsQTF69tQI4vqPEDg3Sy5tYfaVARavuxSgUKoo/UFE5sKy7Pp9P9saSFX2DuzMp+TkHje1pxaZ28ZJ+tWB1AlOZYrtvnJ0CbEMSfS5LMXs3qKt1pehkSP7cM6HVPCexx9adrRTxoTwrAnK7zZItv8pfTd3YmBRL/obBaC+qFCE2t37BYAe8W9/EWddVU X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(24454002)(199003)(189002)(2950100001)(189998001)(54356999)(5001960100002)(5007970100001)(5008740100001)(77096005)(6806005)(104016004)(23726002)(110136002)(105606002)(97756001)(19580395003)(50466002)(86362001)(85426001)(33656002)(19580405001)(46406003)(97736004)(92566002)(76176999)(4001350100001)(47776003)(106466001)(50986999)(83506001)(5001920100001)(33716001)(81156007)(87936001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB0687;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0687;2:W5jRkhRDzUppou7Y8OMMNrxXqdnRZp628m2Ft/YyIJjHV06bDXSZFe15t8YB0I3GNjerJhOJA2b45bb7FlfpSLlnXHVmRU6MmNA+2TAc0w0Sszb0RHtBDGr/JXhyNND0gEl9MH605g7J1OWfALrLOOBxNNtFNCfWBCOX2f4zoyQ=;3:XrAX6tggcVUEf13YfWEtrARZLqWjtfFHKU9bsQmBficwtwEC7itAqYi0f8vlZl9/U7r53Gn6oAg3twhABkdXd+vIvqNhOJcKjpafrkF0a9ZZLKzgIFNRKj3LhM/UxogDCWNarUOKjbP6DGFD2LJeB7NVhmZPLeoJz5i+lXaAdRYM8qXBQDySA9XdHLSs6XrHHX5Df6QG8wzAJl95YLW0i00Zzyf2C6kb1B/VZD563IM=;25:bPkdE7c4JJVkyqXoal1/LVHPLoZSOxk4eDCg7kHkfq+7+4+VgxBiXLa1ItsG3yt3QCVwLKoh1OV8XG3Ig6G5ErFHzTk9EuhXTI+ylk3ucI139cq5X6/n9qQepuKj/d7JlwMsldhUuX4LodhQRTbTfdA5We49jstSr51yMXLbCJmFY9TOx7myNwIx7mlD4TmNPCeJs4q5JLuVc3+n0rIj+9lDvLmxSg4V1QWLLk5zqlQFqc9GEBsdEsjexAL1PMsjGCHoRQ0OpAAsZmACDgsswA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0687; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0687;20:pR2CuPBM8FEQGt+ZShBzmqSPeFD2jrEcn/5ufZJcgVbFCwXl+vZaJw2By5sRodBlnQt5FWPSapbWFWnu3yP7U4TCgzRVUZsemRA+DZDOOX4oCmw6eKp62oNQMO2rff9vM/URIcF/hXo8ERbsjP7IIBa9CnWtmoIjRvXB2geYoKHuEVVcx+6CrXTVgDXBs0Nv0eY2uFTifD2cOvrnknktgcY/y4fC3s1jD4s2OP8lVJtfMFT1GEbJrVxgIkJbQFA0V28eW9XMYTdoi4eNpPzq5cME0199cQlSmx1qPmquamBH4YRISmQN/yQl2ZPf8XxWRXP9oDDPAxslOq8J+Qhwa1vZXg2WTHx6gSivkqBChrQ=;4:f7gRDRt8Vir+mz/lmB0dUGFufL5/MntApb2L5cUirwBYNUyOEcbRJeSrpCnBV/6zcGP13z27cJvNDzM/s0cRYPVC/u5izxsMBqE2pewWcYdajFgGvOHzsGNHxut0ShI9Y/iNwK/+TQ6Pboeb09Z2OH+q8xlyaWWcbqsILpB9eZv19eVe/xokng6nlIDPod30Tu5+MpZ/6pxfrNLK51KrbiF+c0CZMeE4kjeEVdBtyH+BafVIjh69NJsHDnLOvKRm90/ODOFkso10lGcL159W1bx7WQjW+ovG1QucdD2q/tTxJa/UPxX/OVQSc1rdeF12mTQZZPnpATHMh3dPr86mSdLG0dtA0mQwcVUJkdNIvy1FGfi9nMXTtZNfUNMb96/q X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(145744241990776); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM2PR0301MB0687;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0687; X-Forefront-PRVS: 0750463DC9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0687;23:hD5varYE3982x8Siu5dz7hqYhqaKBe71ine0p3Q?= =?us-ascii?Q?bRmryWk/eU8TX1DplhIpcx5pIGMqx3A/6SlcyroCYb6L8TxpFMuLWfGnB+2A?= =?us-ascii?Q?eYKAMwsrn0HPvKeljet1rLnqnM7oAp4hd0+5DRt+gBbj6kgxePbvtmsM+6a5?= =?us-ascii?Q?5ar+yx9LaQgw6+h7sEs28kReWZRbQusUwVqCfnRdK1IKnB8QDFV/egnZA3j/?= =?us-ascii?Q?quv9NCI5c17Xokl/8LY6Luuc6PlBGvF8aq0JylQRdFlLXhJx2WYfD9bf5zUe?= =?us-ascii?Q?wjjsO6dlnlpGbv/XBn6irXEqa0ntNqXutikDHWYpPox1w6Ud3oNMuzFXpDJq?= =?us-ascii?Q?VuCHViOzm4X1+dyDG8l1P7G251R7Pf6LMY+vO2tFTuWbiF4lvfVB02Rd7NxM?= =?us-ascii?Q?KMDDJ6MJo9Mx4vr7J0882lZWNibbdUiLrRnKmoxtRr9dz5zUArlFETT905DP?= =?us-ascii?Q?0P62LN7QAScjEbs5NPIVYD2n7xptTJeta/6/kqoAVbyWcSziYGj06ZcOO2l/?= =?us-ascii?Q?lbrksO/Fgw75n2tiGlbDVxTir9APg2g1nQXALPu/NGYVCXLKhKiNaNy8pQVB?= =?us-ascii?Q?pbRg1gV8bMZ1Rvr0bvNUFsgCbLwRI3HGuNW7wXoL5k9TawZzhrR9aRmHJxhD?= =?us-ascii?Q?/qgUZ0j9OKRyhmkutl/wQJ5MEqi5Dt2eqhPHgULC70e+EHqhDxccKGTVSWpb?= =?us-ascii?Q?i6DZIg49wBNwDIvZ5LkqCYt6IsJlOKPZKyNHsRYDDo8sSQsgG5NxMemSuKVj?= =?us-ascii?Q?ghMCXz4AyJvPORHTbnwApKbmQ1seTm6N7uuuussfDh3dtE1JOVThHUVCaOGm?= =?us-ascii?Q?+mJ5gMj8ZAH7Z1WmfDh8v1Q4JQVjOP80jJN0Un0hKI0fBV8xevJJkG/bdUYr?= =?us-ascii?Q?mUpO8/F1VuBLqMyCnBjYEs7kijIjKmBdUYFbelMam0zIR9Na1Fai44VIAxTs?= =?us-ascii?Q?JIe4gQHJsqjWwF4Z66ZVGXZkJA+nbW9qchRiSvNGUjm6e6UnQ646RL6H4enb?= =?us-ascii?Q?+E3WwYzLvFXn2s17s7cO5L+Q0NM6davufIsVqRPWDGhTlL8mQZNx8egcQ6oL?= =?us-ascii?Q?V/vWKJOJsODDxXmMmTACsOGUCZdqnJdorngomz6EOtnsUKbeplQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0687;5:inzitF/HpgZL/VZjZzbT64X5GV78Maj8uVKf+yvuBBq9BxBx+nSnTotNC2VExyhRgCCBQKepA4nEVGvKBwpPgHVtARmX2UegzTzlnmoJq444y+dRY1bBWQk0Wt/HnAqsA6urKS1qWuqBsKCJ26hCfA==;24:phhT3SbVMo6aOpUGDejZC/uY3bWCvQ4loJaVHIeTDR0MWFrNzxerpmPZAAqppAg4lqe+ta2zg4V9eL9D5FoldTjEDBlRw/XAROVTQgHkSzA=;20:AO7cljt3qkHu0FWsrnNObXUDdkNStR4sF7i4MQJ9NOMCVCwv0hnLJHhfKtzz/MT3MGix6iQXjucQe/ePOSGb0A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2015 03:02:55.0465 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0687 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1609 Lines: 49 On Tue, Nov 03, 2015 at 07:56:55AM -0600, Felipe Balbi wrote: > > Hi, > > Nathan Sullivan writes: > > The USB OTG support currently depends on power management > > (CONFIG_PM) being enabled, but does not actually need it enabled. > > Remove this dependency. > > > > Tested on Bay Trail hardware with dwc3 USB. > > > > Signed-off-by: Nathan Sullivan > > --- > > drivers/usb/core/Kconfig | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig > > index a99c89e..9c5cdf3 100644 > > --- a/drivers/usb/core/Kconfig > > +++ b/drivers/usb/core/Kconfig > > @@ -43,7 +43,6 @@ config USB_DYNAMIC_MINORS > > > > config USB_OTG > > bool "OTG support" > > - depends on PM > > I don't think this is correct. OTG depends on USB bus suspend, which is > only available on PM builds. Care to further detail why you think PM is > not needed on OTG ? > OTG depends on USB bus suspend is not a must, the hardware controlled OTG design do HNP when the bus goes to suspend; but if the software implements OTG FSM, it is the user option whether do HNP, and bus suspend is controlled by OTG FSM software (stop SOF), but not by host stack (eg, ehci). I am sorry I did not consider the legacy OTG design, this patch should be dropped. -- Best Regards, Peter Chen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/