mbox series

[v3,0/4] i2c: Replace lists of special clients with flagging of such clients

Message ID 97970201-24fd-473d-b20a-d21d2cd468f3@gmail.com
Headers show
Series i2c: Replace lists of special clients with flagging of such clients | expand

Message

Heiner Kallweit Nov. 1, 2024, 10:05 p.m. UTC
So far lists are used to track special clients, i.e. auto-detected and
userspace-created clients. The same functionality can be achieved much
simpler by flagging such clients.

v2:
- The i2c_driver.clients list is core-internal, however there's an ALSA
  driver using it. So add patch 1 to address this first.

v3:
- Add missing mutex locks to patches 2 and 3

Heiner Kallweit (4):
  ALSA: ppc: Remove i2c client removal hack
  i2c: Replace list-based mechanism for handling auto-detected clients
  i2c: Replace list-based mechanism for handling userspace-created
    clients
  i2c: core: Remove obsolete members of i2c_adapter and i2c_client

 drivers/i2c/i2c-core-base.c | 115 +++++++++++++-----------------------
 include/linux/i2c.h         |  10 +---
 sound/ppc/keywest.c         |   7 +--
 3 files changed, 43 insertions(+), 89 deletions(-)

Comments

Wolfram Sang Nov. 24, 2024, 3:48 p.m. UTC | #1
Hi Heiner,

On Fri, Nov 01, 2024 at 11:05:53PM +0100, Heiner Kallweit wrote:

> So far lists are used to track special clients, i.e. auto-detected and
> userspace-created clients. The same functionality can be achieved much
> simpler by flagging such clients.

Sorry for not having the time to review it in time for 6.13. As we found
with the last version, this really needs in-depth thinking. We will try
again for 6.14.

Thanks and happy hacking,

   Wolfram