Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754976AbbKQWBH (ORCPT ); Tue, 17 Nov 2015 17:01:07 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:50136 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbbKQWA4 (ORCPT ); Tue, 17 Nov 2015 17:00:56 -0500 From: Arnd Bergmann To: Felipe Balbi Cc: Peter Chen , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: USB_OTG does not depend on PM Date: Tue, 17 Nov 2015 23:00:18 +0100 Message-ID: <5647698.81XCu85L5D@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <874mgkjoh2.fsf@saruman.tx.rr.com> References: <7521777.8ZmnT3AlIC@wuerfel> <874mgkjoh2.fsf@saruman.tx.rr.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:k/eopBq/EfYBjUXNLx0hlljuwlSJXsKUax5bWcUfdtXX88mLcCL YNRkQ5KCOcpiDn8OPiJ8fmd39C2aMmFmM99rpLU1zyIpk2RXehMvGmOlM8MmPEC6AfAN8Rx 5PSrhWjQe5JgipgQZB8C4CEtba9iamqn1099GNJoa5OTpnJuE3SiiIEAGJrbsy5H3mzk71a +YgO6Xf9VuvNo5zgp6K9A== X-UI-Out-Filterresults: notjunk:1;V01:K0:9Xb/0hd5C5s=:QpEOJ3iGoAE/s384Jkpits kzU5UZe3pJGGtiOMIjzC1Hv1zUaygo8sitUcKC9pHYfouxljTGbkO+YrZ4A47Pj5pHId/YmJh lcXJjkIpqw8saDp3BQrynK9SlFbmJFVB6us9GzLP479G+BJS/JVOdoDYo+Vp3Axc752iIsYUD USO3VWE1RJ8mSXAw1oYAXHPK5x3YVCyHKTlCIlYb1XPt1x8j2Z88ustCRibMUWsxa9OWUCj3u 07zkoZFKxwBmiJO1Zt4ayELmENxAnrEKDymDxw7c11LW1iy99ncO7qFJ9PnHMZt8sHzFRkLsC G2bUgj9B2j3R+hBUoP8f24c0htI6u9NQ6cX1jkSV9hsIrkXs68wJtOsx9rnmldPWSILgJEWFF a2+4xo7qUgf9Ks+rfvi/HMICuzb03CpbxbzYxiAiZlZg2Flm1CgP/xhp1y5okkEtJHDKJQtYZ RqQY/dGF5vWRoVanFJ35xMzqVIyvmClH4euvY2Wj5GE3SUmPGhWcKqixoWpEc07unslejt5cP zeLwxo9PJ/fSS/LBRPmCbKIi8damnUxm8+uAK3lO61tjclbIzRodWXPXFjM9JQni3fdxi9+Yc zPXhTQQ4+qXq3z0sus1Ilxq++416gmQO3o1WoYO094Q5yTWtC7MIFkR43el9wy7yHJmYiPvJD j5JMQIHgLo2yYii3teGG4Y78f/GRykkGLZPd8bmvrH+lOzPcfUjcthSbQbmS0J09w6c8Fnnwf /0pWOdEKqdmoWRZB Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1528 Lines: 35 On Tuesday 17 November 2015 15:38:33 Felipe Balbi wrote: > > Arnd Bergmann writes: > > USB_OTG initially depended on USB_SUSPEND, which was later turned into > > PM_RUNTIME and finally into PM. I don't know at what point the dependency > > became unnecessary but it appears to work fine without CONFIG_PM now. > > > > However, we get lots of warnings in randconfig kernels like: > > > > warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG which has unmet direct dependencies (USB_SUPPORT && USB && PM) > > > > whenever CONFIG_PM is disabled and something else selects USB_OTG. > > Let's just drop the dependency to avoid the warnings. > > > > Signed-off-by: Arnd Bergmann > > --- > > I keep seeing this one in my ARM randconfig test > > and how did you test this ? Did you make sure you're not breaking HNP ? > For HNP to happen we depend on a bus_suspend and bus_suspend is only > available on CONFIG_PM, unless that has changed. > > Seems like you've only compile tested this patch, is that correct ? Yes, I compile-tested only and inspected the code briefly without finding anything that contradicted this. It seems I missed the important part as you say, so we should instead add 'depends on PM' for the other symbols. Arnd -- 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/