From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4035D606A32C for ; Mon, 30 Nov 2026 13:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=rlJT5y6/; dkim=fail reason="signature verification failed" (1024-bit key) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=NVIGg6VF DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=2hGYoQBeDaQZKzPTyDSEDUuIXWrkLg2GaFth7oPC5h8=; b=rlJT5y6/E1I+DfiAml1N0f4abh JayLwsiDDYiuAW6AsEOhQVL0395nYon6icW/fPeEGbua//7zNZ4W7HKq7ZlORdf2PMrbf2klmPd2d ZoyMvPrV4Nx++arCdOCiJgd6V/h6WbcqzIav8CWV1xunFvElPPAxwBLm4W44MjHXnSJkzavsmqLLV nPKek9kEic4aCWZCpKubEoBZOCHqd5a7NtKwz+7THm6YNiG/SXWSGFSQdc68GsJ1/4ouJ3Fzpl68N E+3oTKHJ/9/b1H7KK3gcr0Z99HU8GRaCNImzbxCxSyfKb8wNko63bvZAmORjoP1VizEUAcFKsTPPs wmR/Or9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1LD-00000004h19-2SqR; Mon, 30 Nov 2026 13:22:49 +0000 Received: from m16.mail.163.com ([117.135.210.4]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1LA-00000004gzs-3sAH for linux-amlogic@lists.infradead.org; Mon, 30 Nov 2026 13:22:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=AX TcwDj085Ukq94K3f6SXRapAWlpiWz7+nS6L+K9ODU=; b=NVIGg6VFPv05LsSci0 xWCCt2nLY4qDRLeMIk57EJJGRCnAY3w7rAhkdp5T3ahuBTN63gJJTSQUUTQbs8yq vslMSbZMWFgLoyaYA/Std1JJagWLCGp6jzyMZ0GOej3Sgv8PCof+FfcTLx/7VqGb c21cQY9cplrEhaLtg8O3x2+l8= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g0-2 (Coremail) with SMTP id _____wDHpCGJeA1rLpaZLQ--.55325S2; Mon, 30 Nov 2026 21:22:18 +0800 (CST) From: Pengpeng Hou To: broonie@kernel.org Cc: sunny.luo@amlogic.com, xianwei.zhao@amlogic.com, linux-spi@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, hppiscas@163.com Subject: [PATCH] spi: amlogic-spisg: select REGMAP_MMIO Date: Mon, 30 Nov 2026 21:22:16 +0800 Message-ID: <20261130132216.83127-1-hppiscas@163.com> X-Mailer: git-send-email 2.50.1 X-Archived-By: MIME-Version: 1.0 X-CM-TRANSID: _____wDHpCGJeA1rLpaZLQ--.55325S2 X-Coremail-Antispam: 1Uf129KBjvJXoWrKw4DCr18uryfCF4fXw18Xwb_yoW8Jr43pF Zagay8AF1xt3yFyF4xZ3y8uFy5u39agrWUAr1ktwsI9as8uFy7ua4Fqa12qay3AFs7Jry3 t34j93ZrtayUZrUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRmZX5UUUUU= X-CM-SenderInfo: 5kssx2xfdvqiywtou0bp/xtbC7gpeJ2sNeIrr+QAA3b X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_052245_858566_3C19AEC1 X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 spi-amlogic-spisg.c initializes an MMIO regmap using devm_regmap_init_mmio(), but SPI_AMLOGIC_SPISG does not select REGMAP_MMIO. The driver can therefore be enabled without the required register-transport implementation and fail to build. Select REGMAP_MMIO so the backend is enabled at the linkage level required by this consumer, rather than relying on another driver to pull it in. The issue was found by our static-analysis tool and manually reviewed. Fixes: cef9991e04ae ("spi: Add Amlogic SPISG driver") Signed-off-by: Pengpeng Hou --- AI assistance: gpt 5 (patch preparation and review). drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 49088e5..5ba5452 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -120,6 +120,7 @@ config SPI_AMLOGIC_SPISG tristate "Amlogic SPISG controller" depends on COMMON_CLK depends on ARCH_MESON || COMPILE_TEST + select REGMAP_MMIO help This enables master mode support for the SPISG (SPI scatter-gather communication controller), which is available on platforms such as base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic