lkml.org 
[lkml]   [2021]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] platform/x86: Support Spi in i2c-multi-instantiate driver
On Thu, Dec 02, 2021 at 04:24:21PM +0000, Stefan Binding wrote:
> Add support for spi bus in i2c-multi-instantiate driver
> and rename it for a multiple purpose driver name
> By adding spi support into this driver enables devices
> to use the same _HID string for i2c and spi uses and
> minimize the support for two drivers doing the same thing
> for different busses

Please take care about periods at the end of sentences.
But this is minor in comparison to the following issues:

- you enable this for existing I²C multi-instantiate devices,
are you sure it is fine?

- continuing above, how can you guarantee that the same ID would
be used I²C and SPI versions of the same chip and not, let's say,
for UART?

- or other way around, how do we know that the same component will
have the same ID for different bus types? (Yes, I understand that
this is logically appropriate assumption, but you never know OEMs
and others in their ways to (ab)use ACPI specifications and common
sense)

- if we even go this way, it should be under drivers/acpi


--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2021-12-03 12:37    [W:0.095 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site