[PATCH 3/3] rtc: mt6397: select IRQ_DOMAIN instead of depending on it

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Feb 15 06:29:49 PST 2023


Il 13/02/23 05:15, Randy Dunlap ha scritto:
> IRQ_DOMAIN is a hidden (not user visible) symbol. Users cannot set
> it directly thru "make *config", so drivers should select it instead
> of depending on it if they need it.
> Relying on it being set for a dependency is risky.
> 
> Consistently using "select" or "depends on" can also help reduce
> Kconfig circular dependency issues.
> 
> Therefore, change the use of "depends on" for IRQ_DOMAIN to
> "select" for RTC_DRV_MT6397.
> 
> Fixes: 04d3ba70a3c9 ("rtc: mt6397: add IRQ domain dependency")
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Eddie Huang <eddie.huang at mediatek.com>
> Cc: Sean Wang <sean.wang at mediatek.com>
> Cc: Matthias Brugger <matthias.bgg at gmail.com>
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: linux-mediatek at lists.infradead.org
> Cc: Alessandro Zummo <a.zummo at towertech.it>
> Cc: Alexandre Belloni <alexandre.belloni at bootlin.com>
> Cc: linux-rtc at vger.kernel.org
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Philipp Zabel <p.zabel at pengutronix.de>
> Cc: Peter Rosin <peda at axentia.se>
> ---
> I have a similar patch (should be a series) for REGMAP.
> 
>   drivers/rtc/Kconfig |    3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)




More information about the linux-arm-kernel mailing list