Re: [PATCH v8 11/13] mfd: nct6694: Introduce regmap-based transport abstraction

From: Andi Shyti

Date: Sun Oct 11 2026 - 01:39:44 EST


Hi Ming,

On Wed, Oct 07, 2026 at 05:21:00PM +0800, a0282524688@xxxxxxxxx wrote:
> From: Ming Yu <a0282524688@xxxxxxxxx>
>
> Sub-device drivers call into the USB transport directly, so a second
> transport cannot be added without touching all of them.
>
> Wrap the transport behind a regmap bus. The command header is mapped
> onto a single 32-bit register by packing the host control byte, the
> module id and the 16-bit offset, so that the sub-device drivers can use
> the regmap bulk accessors. The access_lock is dropped as regmap already
> serialises the bus accesses.
>
> Add nct6694_write_read_msg() for the commands that send a request and
> read the reply back in the same firmware message, and use it for the
> I2C deliver command.
>
> Signed-off-by: Ming Yu <a0282524688@xxxxxxxxx>

Acked-by: Andi Shyti <andi.shyti@xxxxxxxxxx>

Andi