Re: Assigning fixed numbers to i2c buses via ACPI code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 12, 2025 at 03:37:22PM +0300, Konstantin Aladyshev wrote:
> Don't get me wrong, I'm not trying to defend a solution with aliases.

I'm not assuming you defend it, just telling you that, yeah, design of
some solutions in the user space WRT HW finding and identification is
broken. And OF alias approach was maybe a mistake to work around that.

> It is just there is existing code that relies on fixed i2c bus
> numbers, and I was just trying to understand if it can be ported to
> x86 easily.

If you do it correctly from day 1, there porting will not be needed *at all*
independently on the architecture (it will work even on legacy non-OF/non-ACPI
platforms as good as on newest ones). That's my point.

> Apparently it can't.

It can't be done in current code base, but one may patch the kernel and
the ACPI tables to achieve that. I do not think it's a practical solution,
though.

> Thanks for the answer!

You're welcome!

-- 
With Best Regards,
Andy Shevchenko






[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux