Commit 9700b0f
Bartosz Golaszewski
gpiolib: allow multiple lookup tables per consumer
The GPIO machine lookup mechanism dates back to old ARM board files
where lookup tables would all be defined in a single place. Since then,
lookup tables have also been used to address various DT and ACPI quirks
like missing GPIOs and - as of recently - setting up shared GPIO proxy
devices.
The lookup itself stops when we find the first matching table for a
consumer and - if it doesn't contain the right entry - the lookup fails.
Since the tables can now be defined in multiple places and we can't know
how many there are, effectively limiting a consumer to only a single
lookup table is no longer viable.
Rework the code to always look through all tables matching the consumer.
Link: https://lore.kernel.org/r/20251222-gpio-shared-reset-gpio-proxy-v1-1-8d4bba7d8c14@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>1 parent a05543d commit 9700b0f
1 file changed
Lines changed: 56 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4508 | 4508 | | |
4509 | 4509 | | |
4510 | 4510 | | |
4511 | | - | |
| 4511 | + | |
| 4512 | + | |
4512 | 4513 | | |
4513 | 4514 | | |
4514 | | - | |
4515 | 4515 | | |
4516 | | - | |
4517 | | - | |
4518 | | - | |
4519 | | - | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
4525 | | - | |
4526 | | - | |
4527 | | - | |
4528 | | - | |
4529 | | - | |
4530 | | - | |
4531 | | - | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
4532 | 4532 | | |
4533 | 4533 | | |
4534 | | - | |
| 4534 | + | |
4535 | 4535 | | |
4536 | 4536 | | |
4537 | | - | |
4538 | | - | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
4539 | 4540 | | |
4540 | | - | |
4541 | | - | |
| 4541 | + | |
4542 | 4542 | | |
4543 | 4543 | | |
4544 | 4544 | | |
4545 | | - | |
4546 | | - | |
4547 | | - | |
4548 | | - | |
4549 | | - | |
| 4545 | + | |
4550 | 4546 | | |
4551 | 4547 | | |
4552 | 4548 | | |
| |||
4600 | 4596 | | |
4601 | 4597 | | |
4602 | 4598 | | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
4603 | 4622 | | |
4604 | 4623 | | |
4605 | 4624 | | |
| |||
4610 | 4629 | | |
4611 | 4630 | | |
4612 | 4631 | | |
4613 | | - | |
4614 | | - | |
4615 | | - | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
4616 | 4635 | | |
4617 | | - | |
4618 | | - | |
4619 | | - | |
4620 | | - | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
4621 | 4642 | | |
4622 | 4643 | | |
4623 | 4644 | | |
| |||
0 commit comments