From patchwork Mon Jan 30 13:03:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 50273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2171240wrn; Mon, 30 Jan 2023 05:13:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXs98eV9uJ6uSy1i1/jq3Iwvu+7aFUvyBU+Ge/34axbLNOxBTCcLGmyR/UUhDYaJAKu4jVbe X-Received: by 2002:a17:902:a514:b0:194:476b:1af0 with SMTP id s20-20020a170902a51400b00194476b1af0mr45717629plq.65.1675084424613; Mon, 30 Jan 2023 05:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675084424; cv=none; d=google.com; s=arc-20160816; b=o2pwVCreZx3AzCCZx50O7ar9TAtI4dPyh1ALTFfEemUxLbL5CyQbaffIm2NZnDwn+S ks1vxesdap6dL7cQjXVzZv7NRvK854UDjGB3btSnxOPYbmddoYDYS9cqtQNv9YQDapos atWRB1F9Yeyy7hG8actTT5k6QT5CNJafyQHl+GJOtl+oTTqvfQWqp7pGovROSy0kBISC tBhwT9kU1JYV72X0ZXSjTPwkTCh7fZLWb+r8i2YKhhMgyNARdPT7KP5b5HnWLXR4s1q6 7QBGSA70kZsJ/+3wojNPmtESat5j/QFjUnKGK6iRI8J4u5dqXFQaFcth4aykX73A3XmC JLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pS6k13SUfySpA7/EpIhXQj+xJGKvCTMi+T4Y4o+sxhc=; b=rfyijuNryLrARDZPlhqOLCxLCYkottuptgjoXc8f4hdRAgZ6soUwedtISgbzfW/N5I sKm0wnNzjm2abp9oy8HLflpB9himo64w5X4nANtIfAtQAASt51vwHoLjVrjB8AniU493 uJ7PYdlhdeqTLXc+qpl0EZNRbJL3ED9tk/OdDTI5y6v7QRF7zuzxT6xwfprFNbEAoihH O8uWMEyIOJF38hs93hdDLJpxRdOYQ+ca4wA9FT+mLkKLSZOojLeCHAnn5H79p//mFwVL vJH+Dk7PHFaaJNLrpCuaL4eFLcfgfBgYGl85uwzuHoLLj2y5lsCQlyX/wRI3JYJD7b98 Aj/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JhtvhfdT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b00194548ad2c9si12983436plr.61.2023.01.30.05.13.31; Mon, 30 Jan 2023 05:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JhtvhfdT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236510AbjA3NEi (ORCPT + 99 others); Mon, 30 Jan 2023 08:04:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjA3NEh (ORCPT ); Mon, 30 Jan 2023 08:04:37 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5537C1724; Mon, 30 Jan 2023 05:04:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 5A91BCE13AA; Mon, 30 Jan 2023 13:04:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77EFDC433D2; Mon, 30 Jan 2023 13:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675083872; bh=5mD/bBnB3Pzdve9B8z6/18LEwPDu/XSyvFNljbftvFs=; h=From:To:Cc:Subject:Date:From; b=JhtvhfdT4RoDqW2uaa6eMUqgqIQfikTNGfHGSRs8XBkPOyso+srzHhn/bmOZXC4J8 vkCfDP3kJp4eslTbO+d3tFVWSucJsSFSj304GJcxS+oMolg5SQumTcHCbN5bbwwTG0 TqBbYYtcs/0Dh+T2BeNrexrsN+GNmwRnGrsjuFYqi/TAeb96ZtLSF07H+NqGBHkcnV f9FvZ7b7ustilJNk/afB/ly9BF4d29m7H5zBg1/OlOR4LDG3dnEbc2WtFcTyTFI1cA Z2jbPusJ7ZwKkTPbpnqqi8oUCnAsaGhyswjuu9T+iZanwMkNc5aFRskNAb5phCiNhj Z2ojA+rIjlFbQ== From: Arnd Bergmann To: Greg Kroah-Hartman , Biju Das Cc: Arnd Bergmann , Tony Lindgren , Randy Dunlap , Felipe Balbi , Linus Walleij , Krzysztof Kozlowski , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] xhci: host: renesas: drop excessive Kconfig selects Date: Mon, 30 Jan 2023 14:03:41 +0100 Message-Id: <20230130130425.310410-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756453325364253281?= X-GMAIL-MSGID: =?utf-8?q?1756453325364253281?= From: Arnd Bergmann The USB_XHCI_RZV2M and USB_RENESAS_USB3 select other drivers based on the enabled SoC types, which leads to build failures when the dependencies are not met: WARNING: unmet direct dependencies detected for USB_RZV2M_USB3DRD Depends on [n]: USB_SUPPORT [=y] && USB_GADGET [=n] && (ARCH_R9A09G011 [=n] || COMPILE_TEST [=y]) Selected by [m]: - USB_XHCI_RZV2M [=m] && USB_SUPPORT [=y] && USB [=y] && USB_XHCI_HCD [=m] && USB_XHCI_PLATFORM [=m] && (ARCH_R9A09G011 [=n] || COMPILE_TEST [=y]) ERROR: modpost: "rzv2m_usb3drd_reset" [drivers/usb/host/xhci-plat-hcd.ko] undefined! All the selected symbols are actually user visible, so the correct approach here is to drop the incorrect 'select' statements and have users turn on those drivers during kernel configuration as they would for any other driver. Fixes: c52c9acc415e ("xhci: host: Add Renesas RZ/V2M SoC support") Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/udc/Kconfig | 1 - drivers/usb/host/Kconfig | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index 9b7a1681550f..1821004dd325 100644 --- a/drivers/usb/gadget/udc/Kconfig +++ b/drivers/usb/gadget/udc/Kconfig @@ -195,7 +195,6 @@ config USB_RENESAS_USB3 tristate 'Renesas USB3.0 Peripheral controller' depends on ARCH_RENESAS || COMPILE_TEST depends on EXTCON - select USB_RZV2M_USB3DRD if ARCH_R9A09G011 select USB_ROLE_SWITCH help Renesas USB3.0 Peripheral controller is a USB peripheral controller diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 4b5c5b1feb40..b975178b38bf 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -53,8 +53,6 @@ config USB_XHCI_PCI_RENESAS config USB_XHCI_PLATFORM tristate "Generic xHCI driver for a platform device" - select USB_XHCI_RCAR if ARCH_RENESAS - select USB_XHCI_RZV2M if ARCH_R9A09G011 help Adds an xHCI host driver for a generic platform device, which provides a memory space and an irq. @@ -100,7 +98,6 @@ config USB_XHCI_RZV2M tristate "xHCI support for Renesas RZ/V2M SoC" depends on USB_XHCI_PLATFORM depends on ARCH_R9A09G011 || COMPILE_TEST - select USB_RZV2M_USB3DRD help Say 'Y' to enable the support for the xHCI host controller found in Renesas RZ/V2M SoC.