[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7ca68ba756672ab937550f6ffd2b07dbd1b021d1.camel@fi.rohmeurope.com>
Date: Mon, 08 Mar 2021 17:50:54 +0200
From: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>
To: Arnd Bergmann <arnd@...nel.org>,
Sebastian Reichel <sre@...nel.org>,
Timon Baetz <timon.baetz@...tonmail.com>,
Krzysztof Kozlowski <krzk@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>,
Andy Shevchenko <andy.shevchenko@...il.com>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] power: supply: max8997_charger: make EXTCON dependency
unconditional
Hello Arnd,
On Mon, 2021-03-08 at 16:29 +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> I assume there is no reason to actually build this driver without
> extcon
> support, so a hard dependency is the easiest fix. Alternatively the
> header file could be extended to provide additional inline stubs.
I am absolutely not insisting this but it would be better if there was
no hard dependency. I've tried couple of times to do changes to bunch
of drivers (added some devm-functionality or generic definitions or -
you name it) and I always end up at least compile-testing changes to
multiple drivers. I always repeat following:
1. Manually hack the Makefiles to compile changed drivers as modules
2. Try CONFIG_COMPLILE_TEST
- unfortunately not too widely supported
3. Manually hack more to get drivers with 'hard dependencies' compiled
- occasionally ending up to commenting out the calls with dependencies.
So, if adding the stub is straightforward I'd vote for it.
But I guess you know this quite well so I am just giving my 10 cents -
decision can be yours :)
Best Regards
Matti Vaittinen
--
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland
SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND
~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
"non cogito me" dixit Rene Descarte, deinde evanescavit
(Thanks for the translation Simon)
Powered by blists - more mailing lists