From: Jean Delvare <jdelvare@suse.de>
To: Linux I2C <linux-i2c@vger.kernel.org>
Cc: Wolfram Sang <wsa@kernel.org>
Subject: [PATCH v2 3/3] decode-vaio: Scan more i2c buses
Date: Mon, 31 Aug 2020 10:09:19 +0200 [thread overview]
Message-ID: <20200831100919.519f66a6@endymion> (raw)
In-Reply-To: <20200831100256.077ce253@endymion>
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 <jdelvare@suse.de>
---
eeprom/decode-vaio | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Changes since v1: New.
--- i2c-tools.orig/eeprom/decode-vaio 2020-08-31 09:50:38.961927999 +0200
+++ i2c-tools/eeprom/decode-vaio 2020-08-31 09:51:02.085179645 +0200
@@ -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")
{
--
Jean Delvare
SUSE L3 Support
next prev parent reply other threads:[~2020-08-31 8:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-31 8:02 [PATCH v2 1/3] There are several eeprom drivers Jean Delvare
2020-08-31 8:08 ` [PATCH v2 2/3] decode-vaio: Add support for the at24 driver Jean Delvare
2020-08-31 8:09 ` Jean Delvare [this message]
2020-08-31 9:48 ` [PATCH v2 3/3] decode-vaio: Scan more i2c buses Wolfram Sang
2020-08-31 13:04 ` Jean Delvare
2020-08-31 13:25 ` Wolfram Sang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200831100919.519f66a6@endymion \
--to=jdelvare@suse.de \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox