Thread (35 messages) 35 messages, 5 authors, 2020-07-28

Re: [PATCH v6 01/13] mfd: add simple regmap based I2C driver

From: Lee Jones <hidden>
Date: 2020-07-28 08:35:25
Also in: linux-devicetree, linux-gpio, linux-hwmon, linux-pwm, linux-watchdog, lkml

On Tue, 28 Jul 2020, Michael Walle wrote:
Am 2020-07-28 10:15, schrieb Lee Jones:
quoted
On Tue, 28 Jul 2020, Michael Walle wrote:
quoted
Am 2020-07-28 09:19, schrieb Lee Jones:
quoted
On Sun, 26 Jul 2020, Michael Walle wrote:
quoted
There are I2C devices which contain several different functions but
doesn't require any special access functions. For these kind of
drivers
an I2C regmap should be enough.

Create an I2C driver which creates an I2C regmap and enumerates its
children. If a device wants to use this as its MFD core driver, it has
to add an individual compatible string. It may provide its own regmap
configuration.

Subdevices can use dev_get_regmap() on the parent to get their regmap
instance.

Signed-off-by: Michael Walle <redacted>
---
Changes since v5:
 - removed "select MFD_CORE" in Kconfig
 - removed help text in Kconfig, we assume that the users of this
That's the opposite of what I asked for.
What is the use to describe the symbol, if it is not user selectable?
I'm not aware this is done anywhere in the kernel, am I missing
something?
You mean in menuconfig?

I find 'help's helpful even outside of menuconfig.

Surely I'm not the only one who reads them 'raw'?
Its already available in the header of the file. But sure, I can
copy it.
Thanks.

[...]
quoted
quoted
Why would you remove information about the intention of this driver?
If
someone
looks for a place to implement its SPI/I3C/Slimbus MFD driver this
might
come
in handy.
By all means put something similar in the commit log, but it has no
place in the driver itself.  Besides, if we were to add support for
SPI, it is likely to be a completely separate/unrelated driver.
Why would that be another driver? It would be 90% copy paste with
regmap_init_i2c() replaced by regmap_init_spi() and i2c_driver replaced
by spi_driver.
We'll investigate options if/when the time comes.  If 'spi_driver' and
'i2c_driver' can *sensibly* co-exist, then that is certainly an option
we can explore.
But I don't care. I'll remove it.
Please.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help