[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YaoBEKJtuAb9xUAk@smile.fi.intel.com>
Date: Fri, 3 Dec 2021 13:35:44 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Stefan Binding <sbinding@...nsource.cirrus.com>
Cc: Mark Brown <broonie@...nel.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>,
Hans de Goede <hdegoede@...hat.com>,
Mark Gross <markgross@...nel.org>,
linux-kernel@...r.kernel.org, linux-spi@...r.kernel.org,
linux-acpi@...r.kernel.org, platform-driver-x86@...r.kernel.org,
patches@...nsource.cirrus.com
Subject: Re: [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
Powered by blists - more mailing lists