From patchwork Mon Jan 25 11:32:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 370219 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3953689jam; Mon, 25 Jan 2021 04:46:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTyKK1ZI8yDOdyM5aFEkypFAPHO/aPsUSKQ+5i0JchF6EMlC/hTHbi3eEnEwS4KBtXxLtI X-Received: by 2002:a17:906:b74f:: with SMTP id fx15mr233341ejb.257.1611578811568; Mon, 25 Jan 2021 04:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611578811; cv=none; d=google.com; s=arc-20160816; b=Fl7hQkFI24aocHJZL9gMWYH9snizVDwsgxwszR9YMNZ8dqrXIVoq6JeSP15E4Tz1Py UTAoCRHgTNc3ETn3+lquL8VgkuedwQMiXt3XjDmrpp0l9Eb8CWiDtEi3PAIrbsQdYPjC zVosgq8N0IO0GYubBGqVOmxHHQWJ0BvcPHB2ZjJBbFGYf3unN2pCc2SiIRBjNW1Zd3NU Z6Sl8nSMuqW637bLYB7NoHwbd7W8LJO3d6zAM1mv9ewfq1qqVXKyP5CZj3eDYZshtY6H 3J5FwQzlFCSCI98ZKNTbmtPcAh+WRAeRhqJ7dCrPcQHFnjbMzqDv4X/ketaHTLJr+U81 MMDg== 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=E2UwX5wUDlTfdrGH0cs5B8/QPNKJDxuwQ80FDKBubS8=; b=ixl791ub+JMLCSbV6RuNb868XbdPdOCDqUo1dFipgMkMva91Wn1CEyyojlJVD6+SzX GsQ1e2JBf0jxuWlY+zwkMMyrLucd9hlJLZXm/w55pyhyMraXm/XCUo5QL5yKMnsp50CJ oZmgdya13iI3kn7vmJIoyAr1fftIVkU6jhPGil8B6+BDPYGuSwIinz4hR8uzP8VQTepH FEkYdUE6M0m9fEqB1/sg79U8yQVEVlkk8ja8WyX6lxn2+428lMc1HUsCK0kEfDBdxJ3D Zh2BfRjHUo4e4mrsIHEdrVnU0tJkrqN/EeRWszgBqNzU7pbu38mENq2asgggXJ3H5Sr5 xwIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUTFpQYw; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si7242771eds.299.2021.01.25.04.46.51; Mon, 25 Jan 2021 04:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUTFpQYw; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-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 S1728089AbhAYMoZ (ORCPT + 3 others); Mon, 25 Jan 2021 07:44:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:39074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728249AbhAYMoB (ORCPT ); Mon, 25 Jan 2021 07:44:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DFAD622A84; Mon, 25 Jan 2021 11:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611574372; bh=zvGcvAbZxeaS91GmqlrL8rhrbP5aTskoffAf2GJZ5Y0=; h=From:To:Cc:Subject:Date:From; b=kUTFpQYw5TdsBGw4F25VVK/zFKfvZetV3mcOIPt6QI1p+V7aEh/5b3ubkGvpGWZMy WFfX8JT+W7GsvCYdSEdBqvsXu6MZTD2xdSjm1WDsFsc+8dew+lnk6TwHFWNQq+K4qL 9BlaR2i02SEHome13p5tbBuDMdqziFKigs15ugFtqTJBT1cMFlRO0S46rk4NZIHwP+ 066eHnXPJiDiCb/VUwL/QoxLZBZdWXzOmpKGx104PjAHMIytEOkjqFoyHJVnJwvBEz s+rDBzjUQsiGlj4n8ClJis+KbQnF3gaR9+RfYRLEAurKs4XEHauhSG+DOK5oZBM/+w Zjt3NnQJxSfBQ== From: Arnd Bergmann To: Greg Kroah-Hartman , Alan Stern , Peter Chen , Dmitry Osipenko , Thierry Reding Cc: Arnd Bergmann , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: host: ehci-tegra: fix Kconfig depencies Date: Mon, 25 Jan 2021 12:32:30 +0100 Message-Id: <20210125113248.2268952-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Arnd Bergmann Selecting the chipidea driver from the old Kconfig symbol can lead to a missing dependency: WARNING: unmet direct dependencies detected for USB_CHIPIDEA Depends on [m]: USB_SUPPORT [=y] && (USB_EHCI_HCD [=y] && USB_GADGET [=m] || USB_EHCI_HCD [=y] && !USB_GADGET [=m] || !USB_EHCI_HCD [=y] && USB_GADGET [=m]) && HAS_DMA [=y] Selected by [y]: - USB_EHCI_TEGRA [=y] && USB_SUPPORT [=y] && USB [=y] && USB_EHCI_HCD [=y] && ARCH_TEGRA [=y] aarch64-linux-ld: drivers/usb/chipidea/otg.o: in function `ci_handle_vbus_change': otg.c:(.text+0x3c8): undefined reference to `usb_gadget_vbus_connect' aarch64-linux-ld: otg.c:(.text+0x42c): undefined reference to `usb_gadget_vbus_disconnect' aarch64-linux-ld: drivers/usb/chipidea/otg.o: in function `ci_otg_work': otg.c:(.text+0x5d4): undefined reference to `usb_gadget_vbus_disconnect' ... Duplicate the dependency to ensure that this driver can only be a loadable module if one of its dependencies is. Fixes: c3590c7656fb ("usb: host: ehci-tegra: Remove the driver") Signed-off-by: Arnd Bergmann --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 160e5d3927e2..66b01b619ecd 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -269,6 +269,7 @@ config USB_EHCI_HCD_AT91 config USB_EHCI_TEGRA tristate "NVIDIA Tegra HCD support" depends on ARCH_TEGRA + depends on ((USB_EHCI_HCD && USB_GADGET) || (USB_EHCI_HCD && !USB_GADGET) || (!USB_EHCI_HCD && USB_GADGET)) && HAS_DMA select USB_CHIPIDEA select USB_CHIPIDEA_HOST select USB_CHIPIDEA_TEGRA