RE: [PATCH v6 5/8] gpio: regmap: Add gpio_regmap_operation and value_xlate support

Yu-Chun Lin [林祐君] <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
> On Tue, 21 Jul 2026 14:57:59 +0800
> Yu-Chun Lin <[email protected]> wrote:
> 
> > Extend the reg_mask_xlate callback with an operation type parameter
> > (enum gpio_regmap_operation) to allow drivers to return different
> > register/mask combinations depending on the specific GPIO operation.
> >
> > In addition, introduce a new optional 'value_xlate' callback. This
> > routine allows drivers to translate or modify the register value and
> > mask immediately before a write operation. It is particularly useful
> > for hardware that requires additional control bits, such as a
> > write-enable bit, to be appended to the data dynamically.
> >
> > Consequently, update all existing drivers utilizing the gpio-regmap
> > framework (across drivers/gpio, drivers/iio, and drivers/pinctrl) to
> > accommodate the new reg_mask_xlate function signature.
> >
> > Suggested-by: Linus Walleij <[email protected]>
> > Signed-off-by: Yu-Chun Lin <[email protected]>
> Acked-by: Jonathan Cameron <[email protected]>
> #for-iio

Hi Jonathan,

Thanks for the Acked-by tag on v6!

However, I have split this patch into two separate patches in the v7.
The the core logic remains the same as in v6.
Just divided for better structure. 

Here are the links to the v7 patches:
Link: https://lore.kernel.org/lkml/[email protected]/
Link: https://lore.kernel.org/lkml/[email protected]/

Best regards,
Yu Chun
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.