From 26bcc85221d83402cd4a7658c00dc06347b45dd6 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 10 Sep 2020 15:06:04 +0200 Subject: [PATCH] decode-vaio: Scan more i2c buses While the laptop I originally developed decode-vaio on, only had 5 i2c buses, there could be more on other models, and there are definitely more on the system I use to test the script (using i2c-stub) these days. So look for the VAIO EEPROM on up to 32 i2c buses to be on the safe side. Signed-off-by: Jean Delvare --- eeprom/decode-vaio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeprom/decode-vaio b/eeprom/decode-vaio index 84e4590..c2aefb8 100755 --- a/eeprom/decode-vaio +++ b/eeprom/decode-vaio @@ -237,7 +237,7 @@ END print("\n"); } -for (my $i = 0, $found=0; $i <= 4 && !$found; $i++) +for (my $i = 0, $found=0; $i <= 31 && !$found; $i++) { if (-r "/sys/bus/i2c/devices/$i-0057/eeprom") {