mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH] mci: Kconfig: MCI_ARASAN needs COMMON_CLK
Date: Tue,  1 Dec 2026 14:54:02 +0300	[thread overview]
Message-ID: <20261201115402.984975-1-eagle.alexander923@gmail.com> (raw)

The Arasan SDHCI driver registers clocks via the common clock framework
and embeds struct clk_hw and struct clk_ops in its host data. Both types
are only defined with CONFIG_COMMON_CLK, so building the driver without
it fails to compile:

  drivers/mci/arasan-sdhci.c:151:20: error: invalid use of undefined type
  'struct clk_hw'

All boards that currently enable MCI_ARASAN select COMMON_CLK, so make
the dependency explicit instead of relying on that.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 drivers/mci/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
index eebf85db9f..7b88672c9d 100644
--- a/drivers/mci/Kconfig
+++ b/drivers/mci/Kconfig
@@ -234,6 +234,7 @@ config MCI_TEGRA
 
 config MCI_ARASAN
 	bool "Arasan SDHCI Controller"
+	depends on COMMON_CLK
 	select MCI_SDHCI
 	help
 	  Enable this to support SD and MMC card read/write on systems with
-- 
2.54.0




                 reply	other threads:[~2026-12-01 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201115402.984975-1-eagle.alexander923@gmail.com \
    --to=eagle.alexander923@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox