All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org,
	linux-kernel@vger.kernel.org, Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>
Subject: Re: [PATCH v1 3/6] spi: pxa2xx: Remove no more needed PCI ID table
Date: Thu, 20 Oct 2022 20:03:37 +0300	[thread overview]
Message-ID: <Y1F/aVEYn3GIVEN2@smile.fi.intel.com> (raw)
In-Reply-To: <Y1F+Pw52nN195qDO@sirena.org.uk>

On Thu, Oct 20, 2022 at 05:58:39PM +0100, Mark Brown wrote:
> On Thu, Oct 20, 2022 at 07:42:09PM +0300, Andy Shevchenko wrote:
> > On Thu, Oct 20, 2022 at 05:25:15PM +0100, Mark Brown wrote:
> 
> > > That's true currently since you're matching based on ACPI ID and then
> > > have the lookup done with the ID information in the acpi_device_id table
> > > but IIRC the patch was replacing that with some device property stuff.
> 
> > But that one also based on the IDs, it's not assigned without real IDs of
> > the devices on the certain platforms. I don't see how it's different in
> > this sense.
> 
> The driver won't even match and therefore load if it doesn't have a
> lookup for the device with the current code, the type code comes from
> the match.  If it has to go querying a device property then the driver
> can load but end up with a device property it hasn't ever heard of and
> end up misbehaving as a result.

That's how all MFD devices work nowadays, right? What's so special about
this driver? It's being used as a child by MFD. If what you are telling
is a real concern, we have to have a way to assure that all drivers that
are children of the MFDs should provide a match. IIRC there is no such
mechanism exists in the kernel these days.

-- 
With Best Regards,
Andy Shevchenko



WARNING: multiple messages have this Message-ID (diff)
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org,
	linux-kernel@vger.kernel.org, Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Robert Jarzmik <robert.jarzmik@free.fr>
Subject: Re: [PATCH v1 3/6] spi: pxa2xx: Remove no more needed PCI ID table
Date: Thu, 20 Oct 2022 20:03:37 +0300	[thread overview]
Message-ID: <Y1F/aVEYn3GIVEN2@smile.fi.intel.com> (raw)
In-Reply-To: <Y1F+Pw52nN195qDO@sirena.org.uk>

On Thu, Oct 20, 2022 at 05:58:39PM +0100, Mark Brown wrote:
> On Thu, Oct 20, 2022 at 07:42:09PM +0300, Andy Shevchenko wrote:
> > On Thu, Oct 20, 2022 at 05:25:15PM +0100, Mark Brown wrote:
> 
> > > That's true currently since you're matching based on ACPI ID and then
> > > have the lookup done with the ID information in the acpi_device_id table
> > > but IIRC the patch was replacing that with some device property stuff.
> 
> > But that one also based on the IDs, it's not assigned without real IDs of
> > the devices on the certain platforms. I don't see how it's different in
> > this sense.
> 
> The driver won't even match and therefore load if it doesn't have a
> lookup for the device with the current code, the type code comes from
> the match.  If it has to go querying a device property then the driver
> can load but end up with a device property it hasn't ever heard of and
> end up misbehaving as a result.

That's how all MFD devices work nowadays, right? What's so special about
this driver? It's being used as a child by MFD. If what you are telling
is a real concern, we have to have a way to assure that all drivers that
are children of the MFDs should provide a match. IIRC there is no such
mechanism exists in the kernel these days.

-- 
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2022-10-20 17:04 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17 17:12 [PATCH v1 1/6] spi: pxa2xx: Simplify with devm_platform_get_and_ioremap_resource() Andy Shevchenko
2022-10-17 17:12 ` Andy Shevchenko
2022-10-17 17:12 ` [PATCH v1 2/6] spi: pxa2xx: Respect Intel SSP type given by a property Andy Shevchenko
2022-10-17 17:12   ` Andy Shevchenko
2022-10-17 17:17   ` Mark Brown
2022-10-17 17:17     ` Mark Brown
2022-10-17 17:34     ` Andy Shevchenko
2022-10-17 17:34       ` Andy Shevchenko
2022-10-17 17:12 ` [PATCH v1 3/6] spi: pxa2xx: Remove no more needed PCI ID table Andy Shevchenko
2022-10-17 17:12   ` Andy Shevchenko
2022-10-17 17:18   ` Mark Brown
2022-10-17 17:18     ` Mark Brown
2022-10-17 17:35     ` Andy Shevchenko
2022-10-17 17:35       ` Andy Shevchenko
2022-10-17 17:39       ` Mark Brown
2022-10-17 17:39         ` Mark Brown
2022-10-17 17:41         ` Andy Shevchenko
2022-10-17 17:41           ` Andy Shevchenko
2022-10-18 11:42           ` Mark Brown
2022-10-18 11:42             ` Mark Brown
2022-10-19 15:06             ` Andy Shevchenko
2022-10-19 15:06               ` Andy Shevchenko
2022-10-19 15:50               ` Mark Brown
2022-10-19 15:50                 ` Mark Brown
2022-10-20 16:18                 ` Andy Shevchenko
2022-10-20 16:18                   ` Andy Shevchenko
2022-10-20 16:25                   ` Mark Brown
2022-10-20 16:25                     ` Mark Brown
2022-10-20 16:42                     ` Andy Shevchenko
2022-10-20 16:42                       ` Andy Shevchenko
2022-10-20 16:58                       ` Mark Brown
2022-10-20 16:58                         ` Mark Brown
2022-10-20 17:03                         ` Andy Shevchenko [this message]
2022-10-20 17:03                           ` Andy Shevchenko
2022-10-20 17:26                           ` Mark Brown
2022-10-20 17:26                             ` Mark Brown
2022-10-20 17:41                             ` Andy Shevchenko
2022-10-20 17:41                               ` Andy Shevchenko
2022-10-20 17:45                               ` Mark Brown
2022-10-20 17:45                                 ` Mark Brown
2022-10-20 17:55                                 ` Andy Shevchenko
2022-10-20 17:55                                   ` Andy Shevchenko
2022-10-20 18:07                                   ` Mark Brown
2022-10-20 18:07                                     ` Mark Brown
2022-10-20 18:19                                     ` Andy Shevchenko
2022-10-20 18:19                                       ` Andy Shevchenko
2022-10-21 10:42                                       ` Mark Brown
2022-10-21 10:42                                         ` Mark Brown
2022-10-21 10:51                                         ` Andy Shevchenko
2022-10-21 10:51                                           ` Andy Shevchenko
2022-10-21 10:59                                           ` Mark Brown
2022-10-21 10:59                                             ` Mark Brown
2022-10-21 11:15                                             ` Andy Shevchenko
2022-10-21 11:15                                               ` Andy Shevchenko
2022-10-21 12:28                                               ` Mark Brown
2022-10-21 12:28                                                 ` Mark Brown
2022-10-21 12:46                                                 ` Andy Shevchenko
2022-10-21 12:46                                                   ` Andy Shevchenko
2022-10-17 17:42         ` Mark Brown
2022-10-17 17:42           ` Mark Brown
2022-10-17 17:12 ` [PATCH v1 4/6] spi: pxa2xx: Remove no more needed driver data Andy Shevchenko
2022-10-17 17:12   ` Andy Shevchenko
2022-10-17 17:12 ` [PATCH v1 5/6] spi: pxa2xx: Move OF and ACPI ID tables closer to their user Andy Shevchenko
2022-10-17 17:12   ` Andy Shevchenko
2022-10-18  9:16   ` Jonathan Cameron
2022-10-18  9:16     ` Jonathan Cameron
2022-10-17 17:12 ` [PATCH v1 6/6] spi: pxa2xx: Switch from PM ifdeffery to pm_ptr() Andy Shevchenko
2022-10-17 17:12   ` Andy Shevchenko
2022-10-17 17:19   ` Mark Brown
2022-10-17 17:19     ` Mark Brown
2022-10-17 17:35     ` Andy Shevchenko
2022-10-17 17:35       ` Andy Shevchenko
2022-10-18  9:14   ` Jonathan Cameron
2022-10-18  9:14     ` Jonathan Cameron
2022-10-18 12:23     ` Andy Shevchenko
2022-10-18 12:23       ` Andy Shevchenko
2022-10-19 12:05 ` (subset) [PATCH v1 1/6] spi: pxa2xx: Simplify with devm_platform_get_and_ioremap_resource() Mark Brown
2022-10-19 12:05   ` Mark Brown

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=Y1F/aVEYn3GIVEN2@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=daniel@zonque.org \
    --cc=haojian.zhuang@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robert.jarzmik@free.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.