* [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle()
@ 2024-05-10 20:49 Andy Shevchenko
2024-06-05 21:08 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2024-05-10 20:49 UTC (permalink / raw)
To: Mark Brown, linux-spi, linux-kernel; +Cc: Andy Shevchenko
Since driver core provides a generic device_match_acpi_handle()
we may replace the custom code with it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/spi/spi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index ef0027b9cae5..b2efd4964f7c 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2712,7 +2712,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
return -ENODEV;
if (ctlr) {
- if (ACPI_HANDLE(ctlr->dev.parent) != parent_handle)
+ if (!device_match_acpi_handle(ctlr->dev.parent, parent_handle))
return -ENODEV;
} else {
struct acpi_device *adev;
@@ -2811,7 +2811,7 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
if (!lookup.max_speed_hz &&
ACPI_SUCCESS(acpi_get_parent(adev->handle, &parent_handle)) &&
- ACPI_HANDLE(lookup.ctlr->dev.parent) == parent_handle) {
+ device_match_acpi_handle(lookup.ctlr->dev.parent, parent_handle)) {
/* Apple does not use _CRS but nested devices for SPI slaves */
acpi_spi_parse_apple_properties(adev, &lookup);
}
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle()
2024-05-10 20:49 [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle() Andy Shevchenko
@ 2024-06-05 21:08 ` Andy Shevchenko
2024-06-05 21:22 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2024-06-05 21:08 UTC (permalink / raw)
To: Mark Brown, linux-spi, linux-kernel
On Fri, May 10, 2024 at 11:49:52PM +0300, Andy Shevchenko wrote:
> Since driver core provides a generic device_match_acpi_handle()
> we may replace the custom code with it.
Hmm... Other more recent patches went through, is this lost in cracks?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle()
2024-06-05 21:08 ` Andy Shevchenko
@ 2024-06-05 21:22 ` Mark Brown
2024-06-06 10:49 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2024-06-05 21:22 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
On Thu, Jun 06, 2024 at 12:08:35AM +0300, Andy Shevchenko wrote:
> On Fri, May 10, 2024 at 11:49:52PM +0300, Andy Shevchenko wrote:
> > Since driver core provides a generic device_match_acpi_handle()
> > we may replace the custom code with it.
> Hmm... Other more recent patches went through, is this lost in cracks?
Please don't send content free pings and please allow a reasonable time
for review. People get busy, go on holiday, attend conferences and so
on so unless there is some reason for urgency (like critical bug fixes)
please allow at least a couple of weeks for review. If there have been
review comments then people may be waiting for those to be addressed.
Sending content free pings adds to the mail volume (if they are seen at
all) which is often the problem and since they can't be reviewed
directly if something has gone wrong you'll have to resend the patches
anyway, so sending again is generally a better approach though there are
some other maintainers who like them - if in doubt look at how patches
for the subsystem are normally handled.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle()
2024-06-05 21:22 ` Mark Brown
@ 2024-06-06 10:49 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2024-06-06 10:49 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-spi, linux-kernel
On Wed, Jun 05, 2024 at 10:22:13PM +0100, Mark Brown wrote:
> On Thu, Jun 06, 2024 at 12:08:35AM +0300, Andy Shevchenko wrote:
> > On Fri, May 10, 2024 at 11:49:52PM +0300, Andy Shevchenko wrote:
> > > Since driver core provides a generic device_match_acpi_handle()
> > > we may replace the custom code with it.
>
> > Hmm... Other more recent patches went through, is this lost in cracks?
Found it, it's an announce that is missing, thanks!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-06 10:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 20:49 [PATCH v1 1/1] spi: Replace custom code with device_match_acpi_handle() Andy Shevchenko
2024-06-05 21:08 ` Andy Shevchenko
2024-06-05 21:22 ` Mark Brown
2024-06-06 10:49 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).