From patchwork Mon Oct 24 18:17:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 10105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp626991wru; Mon, 24 Oct 2022 12:58:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Pcv+hzayrOkdJPpWpsSNw585+Izs2XwnzxD66ezcB+WfSyF/4ecnXY2qoRPdYVjRoE7x7 X-Received: by 2002:a17:907:7b95:b0:731:113a:d7a2 with SMTP id ne21-20020a1709077b9500b00731113ad7a2mr28202014ejc.377.1666641494581; Mon, 24 Oct 2022 12:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666641494; cv=none; d=google.com; s=arc-20160816; b=Hmy+nTgz79lls3fgwnf7M0emwvEu1nEHtyqXJdXS7qPeXBRZSxtyhyFVavmMfDgTKe U3Ax4Up7qbJncaXozq3OTajdDVjNgOt2eLbg06wTpNWvGrfvT2O4PhDyl0P9maEVuEI2 4mdGxbmYrWBPupcMpMZ/SXOLpLbQpurpsVGnAV1/dJyQsy+JcFHPmI5GreC9hgYqQGpy iz73S3Vlnw1AHPSjOCWJ/1TQatT4pwrQuRqEthDlTRZRfdl/7xX/cYCMUxbJPPguE2x9 hPQoe8YUvBtRrP2yqUgZ2ge1AHfmvwHQudt6p8Qk2hN9eB5P4FEuIvgOThVb/U4Q48n6 7p2g== 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=RuKI5bp1FsoKhoX8KTyHPCH/WRbZz2nZbg0xRSkPhiI=; b=g6OlaEI+MDE5F8HyPcy34PbKRHS8J9FLWJPwV5kUSV8PgG4xGo06OS5ErRXoO7ZNcV Lqy/oHzF0xRQX+ruAhO/AV/Ft2/JF7XEQZ6FJ2Bfnpk0ZpQglEJcbW//XqxcFoMYMvkg 532+hE/0lhVjMEko/8avGNEV+20L+akE4otv0r3cRw1n5v+Y4wIFYuXBKJojtMqoOG7i U0QScWBSgxIUFTITxjQhVZO5YeNdm6FxwVbp8h6UZpbjPdhqw9F2xlmaohqDccDAgy2f +H5gMJW9++5pLB+U9dBNKDSUwnqNEuF445vbflmfQRR0B0mIAX+zssJRWkPMzaJWJ5Cp Jqsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SAsToB0U; 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=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go34-20020a1709070da200b00780e89ce0b0si566032ejc.600.2022.10.24.12.57.50; Mon, 24 Oct 2022 12:58:14 -0700 (PDT) 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=@chromium.org header.s=google header.b=SAsToB0U; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233714AbiJXT4I (ORCPT + 99 others); Mon, 24 Oct 2022 15:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233663AbiJXTyx (ORCPT ); Mon, 24 Oct 2022 15:54:53 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25999270237 for ; Mon, 24 Oct 2022 11:19:11 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id e4so5729987pfl.2 for ; Mon, 24 Oct 2022 11:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RuKI5bp1FsoKhoX8KTyHPCH/WRbZz2nZbg0xRSkPhiI=; b=SAsToB0UY7YN+KrCipRGgiZP1WEESaE1EbzE7YzlXSzfhgOGP7hTTSg70BQopQlwi4 j6h90asxgIpL99oGuXu0An6MsIVKP7y3kYBRMbpgPIkwHCNSuKEyr/f2IfqU+GjkaXGD EsPAgBL8w1tviNqPYB0W0zyrCBlgiS3nxM18o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RuKI5bp1FsoKhoX8KTyHPCH/WRbZz2nZbg0xRSkPhiI=; b=hVb+n/765ahbb/wRhq2ayk9HdMiB3RpmTtGPqlZPaoQY8y2aBQZJB4ib54kR7mr0W8 0W7vBNbIe8lxUjl4Y2xr+zFtcRw12QSL5uuVIbnYO6l9Mjc7JVciGpl5hdIQ73DVPREC IsjhrTc3EFHazt3HK+aI19bJYEIEqo/j/ttELTFN555YgCzAibheYnJR13SjLWAXVjFF dP3K+BuOku93/JlOywH/IOlbyGiJK89aDVneWpuH7oGFCplYCFxzXI8gnYzRA/brV3wT 5q46MTz2NjPxCBd6B+OVbVvSeKTuQ9Lq3AZex5udCxg5o3KHmgKi9cSIYIIIHydJzak4 yPpQ== X-Gm-Message-State: ACrzQf0peMVaWZ6yp1Eir+DAlUdrXebw9Dk2NJqdf7HavT2H1TatKkwC IBtWywCLPfXTuY115EZLlyDzCA== X-Received: by 2002:a63:581b:0:b0:464:a9a6:571b with SMTP id m27-20020a63581b000000b00464a9a6571bmr6774778pgb.560.1666635501718; Mon, 24 Oct 2022 11:18:21 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:808b:e2f6:edcf:ccb0]) by smtp.gmail.com with UTF8SMTPSA id a18-20020a170902b59200b00186b1bfbe79sm60642pls.66.2022.10.24.11.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 11:18:21 -0700 (PDT) From: Brian Norris To: Ulf Hansson , Florian Fainelli Cc: Al Cooper , linux-kernel@vger.kernel.org, Adrian Hunter , linux-arm-kernel@lists.infradead.org, Broadcom internal kernel review list , linux-mmc@vger.kernel.org, Brian Norris Subject: [PATCH] mmc: sdhci-brcmstb: Allow building with COMPILE_TEST Date: Mon, 24 Oct 2022 11:17:59 -0700 Message-Id: <20221024181759.2355583-1-briannorris@chromium.org> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1747600271966350573?= X-GMAIL-MSGID: =?utf-8?q?1747600271966350573?= This driver is pretty simple, and it can be useful to build it (for validation purposes) without BMIPS or ARCH_BRCMSTB. It technically depends on CONFIG_OF to do anything useful at runtime, but it still works out OK for compile-testing using the !OF stubs. Signed-off-by: Brian Norris Acked-by: Florian Fainelli Acked-by: Adrian Hunter --- drivers/mmc/host/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index f324daadaf70..453fba8d2d9d 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig @@ -1040,10 +1040,10 @@ config MMC_SDHCI_MICROCHIP_PIC32 config MMC_SDHCI_BRCMSTB tristate "Broadcom SDIO/SD/MMC support" - depends on ARCH_BRCMSTB || BMIPS_GENERIC + depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST depends on MMC_SDHCI_PLTFM select MMC_CQHCI - default y + default ARCH_BRCMSTB || BMIPS_GENERIC help This selects support for the SDIO/SD/MMC Host Controller on Broadcom STB SoCs.