Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756904AbbKRU2b (ORCPT ); Wed, 18 Nov 2015 15:28:31 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:53080 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753515AbbKRU2a (ORCPT ); Wed, 18 Nov 2015 15:28:30 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Bin Liu , George Cherian , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, balbi@ti.com Subject: Re: [PATCH] usb: musb: USB_TI_CPPI41_DMA requires dmaengine support Date: Wed, 18 Nov 2015 21:27:59 +0100 Message-ID: <3958456.qUtBLJFy2S@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <4370741.70D0kgBgnp@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:kZhYvIJoTvUW/PmyN6FjitslDaH1++09pn/zoThSgsfVZbZ7+lT MDUZTyS4B9ev3y7qI42qLFUnTP3mOPh7SdDqKwmy3D6vAwT64ANeHuFSG/pmfDZvW5uwUQB Xf7MP8+ua5k2fXsibwhsfMTASHP93855aPc+SMvrZDNe5q+nzvMsB9jRE1eYIIHW2e9vxYi zw++dV759zhVjQZEQzLhg== X-UI-Out-Filterresults: notjunk:1;V01:K0:UdAbFcqlXME=:X70zEtfIc6Wgi9JdlbpfU6 NjYoNr5eYc833RStNyW8+WtDVp0dPqligf9dydq3ZoGrAGgq3sxa2mcdj/WUDzAei/NgXOkT1 wbqIGn2UxbPHbwSxrmOyYtQ9BxyxS+klCDJtmuWdlcpRHzKGlsX04uTUtylGmwTjagf05dzW0 iDdKDAwzju6uw4tCmVBs+zWC72V9kzL6KUMQ1OEa4A3wz18CY9SjHFWgm/W7YEArprq+2aoyH 70ePO5IKZGCq6/Yir52B8ejbMBOvKqpdDmJlIVfGMl+8Dvf6Bon2JRRNIannvaQfrj/Uz2ou2 ZWcdtVfqYfL32pNKdJpOUa0/VzUz3paft82cxaXYkQoAAJ1BcNdHF84n3DjJHKfJB/20dFSXL mqs8pzP288Fw0tZie8Pxz8fHf1MLdnc81855UcBYonmh1v1Kd8sxqHe/GHSxiJsAICYnw4mHH 2YyTLVnc2V6m1q05sS/IdzTz1iIbF9jRF61kfQ2t9Y+u9IQO8gpZg0XktJe6IVH7IXZF70Mii rZR2n57xBSQyTn7rJcltvyWGnDTNQ7GV5r3UAzzrwKLpYH7zExHXil7/JNobjz3l5M2oJ0e2o VQxlEwmMuDFW0xP32suTzhm4gy8H+668npJYq4k3OMoJLM9cM7h9L1of75G8DaCuBZsXtYBrM KIZKnt+2Fl0zj2YGZR8rAmWpwv35ByAHeST1Vdh818rHmRP2z/e8E/wbuTa3bTlktwJXwjKyV T6RgA/LL4mvd2csE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1382 Lines: 34 On Wednesday 18 November 2015 12:29:27 Bin Liu wrote: > > diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig > > index 1f2037bbeb0d..45c83baf675d 100644 > > --- a/drivers/usb/musb/Kconfig > > +++ b/drivers/usb/musb/Kconfig > > @@ -159,7 +159,7 @@ config USB_TI_CPPI_DMA > > > > config USB_TI_CPPI41_DMA > > bool 'TI CPPI 4.1 (AM335x)' > > - depends on ARCH_OMAP > > + depends on ARCH_OMAP && DMADEVICES > > select TI_CPPI41 > > I am not sure what the generic policy is, but instead of hiding > USB_TI_CPPI41_DMA if DMADEVICES is disabled, I'd like to enable > DMADEVICES if USB_TI_CPPI41_DMA is enabled, from user experience > perspective. General policy is that you should not 'select' a symbol that is also user-visible, as that tends to cause dependency loops and other problems when something is enabled without the user being aware of that. Ideally we should remove the 'select TI_CPPI41' here as well, but what we could do instead is to make that a silent symbol and remove the prompt so it always gets enabled implicitly when USB_TI_CPPI41_DMA and DMADEVICES are both enabled. 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/