hwmon: pmbus: Drop unnecessary clear fault page
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 17 Aug 2023 09:25:25 +0000 (11:25 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 Aug 2023 13:04:31 +0000 (06:04 -0700)
The pmbus_check_byte_register function already calls clear
fault page, so there's no need to do it again in
pmbus_identify_common.

TEST: Verified using an I2C bus analyser to confirm that only
      one clear fault page is being send instead of two in a row.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Naresh Solanki <Naresh.Solanki@9elements.com>
Link: https://lore.kernel.org/r/20230817092527.808631-2-Naresh.Solanki@9elements.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c

index cbfabdd69056cd2a598a98e0d81706fb558e37a3..1363d9f89181d231d2cdc77d40af8d486052cbbe 100644 (file)
@@ -2541,7 +2541,6 @@ static int pmbus_identify_common(struct i2c_client *client,
                }
        }
 
-       pmbus_clear_fault_page(client, page);
        return 0;
 }