public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* Re: gather_i2c_busses()
       [not found] <CAGJPcGaO1j57dZvRGR789m5HZ5s5tUaSomxKVGuhFhimQhGC5Q@mail.gmail.com>
@ 2022-07-26  8:23 ` Jean Delvare
  0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2022-07-26  8:23 UTC (permalink / raw)
  To: Tommy Lee; +Cc: linux-i2c

Hi Tommy,

On Mon, 25 Jul 2022 18:00:55 -0700, Tommy Lee wrote:
> Hi Linux-i2c,

You got the list address wrong, I'm fixing it (it's a dash, not an
underscore).

> My platform is ASUS Vivobook e203 running Ubuntu 22.04 LTS. The i2c-tools
> src package I installed is 3.1.2. The make command works. But the
> "i2cdetect -l" execution gave me the following alert. I discovered that
> the /proc/bus/i2c used by the 3.1.2 gather_i2c_busses() has been moved
> to /sys/bus/i2c in Ubuntu22.04 LTS.

/proc/bus/i2c has not been replaced by /sys/bus/i2c in Ubuntu 22.04.
It's a changed that happened almost 2 decades ago. Even kernel 2.6.0
had it already.

> I replaced /proc/bus/i2c with
> /sys/bus/i2c in gather_i2c_busses() and replaced adapters[count].name with
> adapters->nr.  Running tools/i2cdetect shows 0 on adapters->nr.

That change makes no sense at all, so it's not surprising it doesn't
work.

The problem is that you are using i2c-tools-3.1 which is a legacy
branch that can only work with very old kernels. It is in maintenance
mode, hasn't received any development since 8 years and really nobody
should be using it any longer.

Why don't you just use i2c-tools version 4.3 which is already packaged
in your distribution?

-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-26  8:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAGJPcGaO1j57dZvRGR789m5HZ5s5tUaSomxKVGuhFhimQhGC5Q@mail.gmail.com>
2022-07-26  8:23 ` gather_i2c_busses() Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox