Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937219AbdCJNME (ORCPT ); Fri, 10 Mar 2017 08:12:04 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35999 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935931AbdCJNL7 (ORCPT ); Fri, 10 Mar 2017 08:11:59 -0500 From: Romain Izard To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Felipe Balbi , Greg Kroah-Hartman Cc: Romain Izard , "# 4 . 9+" Subject: [PATCH v3 1/2] usb: gadget: legacy gadgets are optional Date: Fri, 10 Mar 2017 14:11:41 +0100 Message-Id: <20170310131142.28816-2-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170310131142.28816-1-romain.izard.pro@gmail.com> References: <20170310131142.28816-1-romain.izard.pro@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1272 Lines: 37 With commit bc49d1d17dcf ("usb: gadget: don't couple configfs to legacy gadgets"),it is possible to build a modular kernel with both built-in configfs support and modular legacy gadget drivers. But when building a kernel without modules, it is also necessary to be able to build with configfs but without any legacy gadget driver. This was a possible configuration when the USB_CONFIGFS was a part of the choice options, but not anymore. Mark the choice for legacy gadget drivers as optional restores this. Fixes: bc49d1d17dcf ("usb: gadget: don't couple configfs to legacy gadgets") Cc: # 4.9+ Signed-off-by: Romain Izard --- Changes in v2: - Reword description Changes in v3: - Remove comment changes drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 8ad203296079..f3ee80ece682 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -460,6 +460,7 @@ config USB_CONFIGFS_F_TCM choice tristate "USB Gadget Drivers" default USB_ETH + optional help A Linux "Gadget Driver" talks to the USB Peripheral Controller driver through the abstract "gadget" API. Some other operating -- 2.9.3