[PATCH v7 00/11] Congatec Board Controller: Add storage devices support

From: Thomas Richard (congatec GmbH)

Date: Fri Nov 27 2026 - 12:58:19 EST


This is the 7th (and hopefully the last) iteration. I did few changes in
I2C patches as requested by Andi, and collected his RB/AB tags. As
discussed in [1] I picked Markus' patch (PATCH 11). And I rebased on top of
for-mfd-next.

[1] https://lore.kernel.org/all/20261123-cgbc-i2c-write-status-v1-1-5b0fa0322b57@xxxxxxxxxxxxxxx/

Best Regards,
Thomas

Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@xxxxxxxxxxx>
---
Changes in v7:
- Rebased on top of for-mfd-next.
- PATCH 2: add Andi's RB tag.
- PATCH 3: add Andi's AB tag, also remove Cc and Fixes tags.
- PATCH 7: initialize data to '0' and prevent potential division by '0'.
- PATCH 10: make the I2C bus probe fail if device instantiation fails.
- PATCH 11: add Markus' patch.
- Link to v6: https://patch.msgid.link/20261117-cgbc-i2c-storage-devices-support-v6-0-bb070ad3e9aa@xxxxxxxxxxx

Changes in v6:
- rebased on top of next-20261116.
- add Lee's I2C patch (PATCH 2).
- Link to v5: https://patch.msgid.link/20261103-cgbc-i2c-storage-devices-support-v5-0-ac11f23fae51@xxxxxxxxxxx

Changes in v5:
- mfd: fix error message in case we fail to get session handle.
- fix I2C bus names earlier in the series.
- Link to v4: https://patch.msgid.link/20261002-cgbc-i2c-storage-devices-support-v4-0-eb42e0f1df59@xxxxxxxxxxx

Changes in v4:
- Fix struct cgbc_i2c_platform_data comment (kernel-doc warning)
- Move struct cgbc_i2c_platform_data from linux/platform_data/i2c-cgbc.h to
linux/mfd/cgbc.h
- Use MFD_CELL_NAME macros.
- Link to v3: https://patch.msgid.link/20260911-cgbc-i2c-storage-devices-support-v3-0-594b53fbc5ea@xxxxxxxxxxx

Changes in v3:
- rebased on v7.3-rc2
- use PLATFORM_DEVID_AUTO for child devices
- move I2C bus and I2C device definition in the MFD driver
- Link to v2: https://patch.msgid.link/20260811-cgbc-i2c-storage-devices-support-v2-0-3efa998e0ef5@xxxxxxxxxxx

Changes in v2:
- i2c: fix typo in CGBC BIOS EEPROM label.
- mfd: make cgbc_devs const
- Link to v1: https://patch.msgid.link/20260804-cgbc-i2c-storage-devices-support-v1-0-fed38510671c@xxxxxxxxxxx

To: Thomas Richard <thomas.richard@xxxxxxxxxxx>
To: Lee Jones <lee@xxxxxxxxxx>
To: Andi Shyti <andi.shyti@xxxxxxxxxx>
Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx>
Cc: Werner Gartner <Werner.Gartner@xxxxxxxxxxxx>
Cc: mfd@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-i2c@xxxxxxxxxxxxxxx

---
Lee Jones (1):
i2c: cgbc: Propagate hardware errors when polling read status

Markus Haberlander (1):
i2c: cgbc: Fetch the status of a write transfer

Thomas Richard (congatec GmbH) (9):
mfd: cgbc: Fix use of negative error code as valid session handle
i2c: cgbc: Use real I2C bus names
mfd: cgbc: Add I2C platform data
i2c: cgbc: Use plateform data to get bus ID and adapter name
mfd: cgbc: Use PLATFORM_DEVID_AUTO for child device registration
i2c: cgbc: Add support for fixed frequency buses
mfd: cgbc: Add virtual I2C bus support
mfd: cgbc: Add virtual storage devices on the virtual I2C bus
i2c: cgbc: Register known I2C devices on the bus

drivers/i2c/busses/i2c-cgbc.c | 165 +++++++++++++++++++++++--------------
drivers/mfd/cgbc-core.c | 187 +++++++++++++++++++++++++++++++++++++++---
include/linux/mfd/cgbc.h | 16 ++++
3 files changed, 295 insertions(+), 73 deletions(-)
---
base-commit: 5a8fc2b762fdd22698dc10449a960a892e43192e
change-id: 20260717-cgbc-i2c-storage-devices-support-b3ee7cea3320

Best regards,
--
Best Regards,
Thomas Richard