Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752713AbdLKQJ3 (ORCPT ); Mon, 11 Dec 2017 11:09:29 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:43817 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbdLKQJ0 (ORCPT ); Mon, 11 Dec 2017 11:09:26 -0500 X-IronPort-AV: E=Sophos;i="5.45,392,1508774400"; d="scan'208";a="64477488" From: Bart Van Assche To: "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "balbi@kernel.org" CC: "romain.izard.pro@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-media@vger.kernel.org" , "mchehab@kernel.org" , "ruslan.bilovol@gmail.com" , "hare@suse.com" , "cascardo@cascardo.eti.br" Subject: Re: [PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets Thread-Topic: [PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets Thread-Index: AQHTcnOEzlKM72dCuUOdAfpC+lmT+qM+T+WA Date: Mon, 11 Dec 2017 16:09:20 +0000 Message-ID: <1513008559.2747.0.camel@wdc.com> References: <20171211113048.3514863-1-arnd@arndb.de> In-Reply-To: <20171211113048.3514863-1-arnd@arndb.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; x-originating-ip: [199.255.44.171] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1535;20:QwrBocCRXkmr8VbIYsMigA9L5PzF41cWmuVn3IfLyotI9Q5f8K5kLWaWWpGciBH1t+4OoWdFWdgR7TSuu4MNdLpscELsm3YIIjzMpL4KDu0znKXiPacWC16sbuFwxVhQcUXqunOHcs+uqh7SQREgTHMGnewVy4Aa4VKZ9wC54Eg= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 3fcc8ee8-c928-48b2-c109-08d540b1899e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307);SRVR:CY1PR0401MB1535; x-ms-traffictypediagnostic: CY1PR0401MB1535: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231022)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CY1PR0401MB1535;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR0401MB1535; x-forefront-prvs: 0518EEFB48 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(366004)(39860400002)(189003)(24454002)(199004)(377424004)(106356001)(8676002)(5660300001)(2950100002)(68736007)(2906002)(54906003)(7416002)(110136005)(316002)(66066001)(8936002)(76176011)(86362001)(102836003)(2201001)(59450400001)(53936002)(4001150100001)(3846002)(6512007)(36756003)(6116002)(2501003)(2900100001)(25786009)(14454004)(99286004)(6246003)(97736004)(305945005)(6436002)(6506006)(478600001)(72206003)(6486002)(229853002)(3660700001)(77096006)(81156014)(81166006)(39060400002)(105586002)(7736002)(4326008)(3280700002)(103116003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1535;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fcc8ee8-c928-48b2-c109-08d540b1899e X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2017 16:09:20.3814 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1535 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vBBG9avf002482 Content-Length: 1371 Lines: 30 On Mon, 2017-12-11 at 12:30 +0100, Arnd Bergmann wrote: > One patch that was meant as a cleanup apparently did more than it intended, > allowing all combinations of legacy gadget drivers to be built into the > kernel, and leaving an empty 'choice' statement behind: > > drivers/usb/gadget/Kconfig:487:warning: choice default symbol 'USB_ETH' is not contained in the choice > > The description of commit 7a9618a22aad ("usb: gadget: allow to enable legacy > drivers without USB_ETH") was a bit cryptic, as it did not change the > behavior of USB_ETH other than allowing it to be built into the kernel > alongside other legacy gadgets, which is not a valid configuration. > > As Felipe explained in the description for commit bc49d1d17dcf ("usb: > gadget: don't couple configfs to legacy gadgets"), the configfs based > gadgets can be freely configured as loadable modules or built-in > drivers, but the legacy gadgets can only be modules if there is more > than one of them, so we require the 'choice' statement here. > > This leaves the added USB_GADGET_LEGACY menuconfig symbol in place, > but then restores the 'choice' below it, so we can enforce the > single-legacy-gadget rule as before. Hello Arnd, A discussion is ongoing about whether or not commit 7a9618a22aad should be reverted. Please drop this patch until a conclusion has been reached. Thanks, Bart.