lkml.org 
[lkml]   [2021]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] memory: tegra: Fixes for COMPILE_TEST
Date
From: Thierry Reding <treding@nvidia.com>

After COMPILE_TEST was enabled for the Tegra MC driver, Krzysztof
reported that this can fail to build on x86 configurations because some
dependencies are not explicitly pulled in.

Fix this by adding missing dependencies for OF_RESERVED_MEM and by
providing compile-test stubs for reset controller registration API.

Note that I was initially trying to fix the reset controller problem by
selecting RESET_CONTROLLER. This works but is discouraged because it can
create circular dependencies. And sure enough, changing that "select" to
a "depends on" triggered a circular dependency because there are already
quite a few drivers that select RESET_CONTROLLER. I suppose that's fine
as long as everybody uses "select" rather than "depends on", but it is
not a very robust solution.

Dmitry and Krzysztof were both in favour of adding the reset controller
stubs, so that's what I went with.

Thierry

Thierry Reding (2):
memory: tegra: Add missing dependencies
reset: Add compile-test stubs

drivers/memory/tegra/Kconfig | 2 ++
include/linux/reset-controller.h | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)

--
2.31.1

\
 
 \ /
  Last update: 2021-06-09 13:27    [W:0.076 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site