Comment 117 for bug 1861610

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

@ferenc-szabo, thank you for figuring out the issue with the _STA method.

@kaihengfeng, it looks like we are both working on the same issue again :)

I've written a simple, clean kernel patch fixing this, and I just got confirmation from the reporter of:
https://bugzilla.redhat.com/show_bug.cgi?id=1842039

That this patch fixes this:

--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -1464,8 +1464,8 @@ static int i2c_register_adapter(struct i2c_adapter *adap)

  /* create pre-declared device nodes */
  of_i2c_register_devices(adap);
- i2c_acpi_register_devices(adap);
  i2c_acpi_install_space_handler(adap);
+ i2c_acpi_register_devices(adap);

  if (adap->nr < __i2c_first_dynamic_bus_num)
   i2c_scan_static_board_info(adap);

I'll Cc you on the upstream submission.