Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1038824ybb; Fri, 3 Apr 2020 17:00:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIaB7hzJoIbrQ1U9vhPY7JVP7xLI+c3NObhqUU1WGcSWHlD7S1joLllQLg71GGU4Woskgsx X-Received: by 2002:aca:4858:: with SMTP id v85mr4865932oia.51.1585958450033; Fri, 03 Apr 2020 17:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585958450; cv=none; d=google.com; s=arc-20160816; b=fhPl5gf93pwls/nF5DfrZpyzYrzTiq3nfBC8wyJGNXHfQ/bLaiXpWtsBhiv8EbzQQv tlQn9nn7demqciBmcfnKVmIcB1xhCZAHzfCJRVQp8tqRf5Zdqti/UPezwz6gD1jZzBPj 6uh2Rs12CxU+T0xA1UvrNBk0H2jnbfMfiSC6lZ1kVDumDuaqGyt7BTWYtz9SDjlL7Nmt Nfid04IMSrqKa4tMc2oVWrFzu5Xa4jusDt59+AGm/coGKYBWCcTKlZSPLPEH7jRWqYiU skEkKxXB6cNozZ6Yl82yd6WCQ+hscdTEE+Ku1BS2B/HeY1I9A42XVhhJI5uJweR4xskn mxBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:references:in-reply-to:message-id:date :dkim-signature; bh=5u55qmN0gMRWJEFDTH0C5cTvZjRKIFGidQWDTnzs9XE=; b=rjHwalkr/j9rjJ26xV0VUsUx41JikNGFuyFJDlY5Vz+XJV2OwHZTL2n6XMNn4Sa1i4 dvBiSAr/EOFyBGt7k9TpSJFHj55r0zxjVrRm3IK6rEbGn0D8CgEBZwpuZ8CCuiaeMqLB p3txc+5fw6GS5YYKSo19wuoqGm8YVlQi7xD0c/hkH45jACC7ziU61Y182zK13YYXrxPA b6v3tJYQPDq9nGvfEErkT3/S5o1IjaT5i8QtjixNxN4X500gT8bwwj8LiKnQPcxlRlC5 xgLJ/ZVr4weaZR8mQyYu7RW/Fn/YHwtkRuO4DR6txERbPs9BXryj45qIlxhAD2CJGgVe K3dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=T0YSsb4j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si4546947oib.146.2020.04.03.17.00.38; Fri, 03 Apr 2020 17:00:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=T0YSsb4j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726536AbgDDAAO (ORCPT + 99 others); Fri, 3 Apr 2020 20:00:14 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:2456 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbgDDAAJ (ORCPT ); Fri, 3 Apr 2020 20:00:09 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 48vH465jf5zqB; Sat, 4 Apr 2020 02:00:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1585958406; bh=ERaR7ygM77SbTRq+ee9gcCX1NXRy6uMU4qvMkPRl8pk=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=T0YSsb4jOs8jPx/dRCcVRaaPL+VAs1GTk4ed+4c/4HbhcftgsFR0WcFvaxOam/jp1 CyEhpbfGmYOoWbNLX4E0zAGcD4UK5SIpBYZYZlqPuDxhUzR4YvYfefasta6eD6BjfV ZZECMM2LnpioEIDw+62+FGj95JRGg5TPuomH04jY+m/kLmbI5p6PR6W6MGzMu0FjYZ 7oLoSmFw3ivPVZR0wIWWU4X61jfKFV+72RM8kv5ea6ZJDS1ZRfzPb5BS9zeJ2H8KSA YqDMyA6IXPAxE6ncUnCJ7yV6iOqdlqXIQLVXDKrWcj58tHBopE2uVMFUdQ1BWdVVcF Oho3eV0ciBzeA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sat, 04 Apr 2020 02:00:06 +0200 Message-Id: <1bf89d4301baa8632daf48b3e28858aff5371954.1585958250.git.mirq-linux@rere.qmqm.pl> In-Reply-To: <2b6d70595475a3ddbd5bb8ae1765868a98c404b6.1585958250.git.mirq-linux@rere.qmqm.pl> References: <2b6d70595475a3ddbd5bb8ae1765868a98c404b6.1585958250.git.mirq-linux@rere.qmqm.pl> From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 5/5] usb: chipidea: allow disabling glue drivers if EMBEDDED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Greg Kroah-Hartman , Peter Chen Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow to cut down on driver size for embedded config. Signed-off-by: Michał Mirosław --- drivers/usb/chipidea/Kconfig | 37 ++++++++++++++++++++++++----------- drivers/usb/chipidea/Makefile | 12 +++++------- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig index d53db520e209..8bafcfc6080d 100644 --- a/drivers/usb/chipidea/Kconfig +++ b/drivers/usb/chipidea/Kconfig @@ -18,17 +18,6 @@ config USB_CHIPIDEA if USB_CHIPIDEA -config USB_CHIPIDEA_OF - tristate - depends on OF - default USB_CHIPIDEA - -config USB_CHIPIDEA_PCI - tristate - depends on USB_PCI - depends on NOP_USB_XCEIV - default USB_CHIPIDEA - config USB_CHIPIDEA_UDC bool "ChipIdea device controller" depends on USB_GADGET @@ -43,4 +32,30 @@ config USB_CHIPIDEA_HOST help Say Y here to enable host controller functionality of the ChipIdea driver. + +config USB_CHIPIDEA_PCI + tristate "Enable PCI glue driver" if EMBEDDED + depends on USB_PCI + depends on NOP_USB_XCEIV + default USB_CHIPIDEA + +config USB_CHIPIDEA_MSM + tristate "Enable MSM hsusb glue driver" if EMBEDDED + default USB_CHIPIDEA + +config USB_CHIPIDEA_IMX + tristate "Enable i.MX USB glue driver" if EMBEDDED + depends on OF + default USB_CHIPIDEA + +config USB_CHIPIDEA_GENERIC + tristate "Enable generic USB2 glue driver" if EMBEDDED + default USB_CHIPIDEA + +config USB_CHIPIDEA_TEGRA + tristate "Enable Tegra UDC glue driver" if EMBEDDED + depends on OF + depends on USB_CHIPIDEA_UDC + default USB_CHIPIDEA + endif diff --git a/drivers/usb/chipidea/Makefile b/drivers/usb/chipidea/Makefile index 985663ba6e68..fae779a23866 100644 --- a/drivers/usb/chipidea/Makefile +++ b/drivers/usb/chipidea/Makefile @@ -8,10 +8,8 @@ ci_hdrc-$(CONFIG_USB_OTG_FSM) += otg_fsm.o # Glue/Bridge layers go here -obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_usb2.o -obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_msm.o - -obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o - -obj-$(CONFIG_USB_CHIPIDEA_OF) += usbmisc_imx.o ci_hdrc_imx.o -obj-$(CONFIG_USB_CHIPIDEA_OF) += ci_hdrc_tegra.o +obj-$(CONFIG_USB_CHIPIDEA_GENERIC) += ci_hdrc_usb2.o +obj-$(CONFIG_USB_CHIPIDEA_MSM) += ci_hdrc_msm.o +obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o +obj-$(CONFIG_USB_CHIPIDEA_IMX) += ci_hdrc_imx.o usbmisc_imx.o +obj-$(CONFIG_USB_CHIPIDEA_TEGRA) += ci_hdrc_tegra.o -- 2.20.1