Bartosz Golaszewski
d578b31856
gpio: shared: fix a false-positive sharing detection with reset-gpios
...
After scanning the devicetree, we remove all entries that have only one
reference, while creating GPIO shared proxies for the remaining, shared
entries. However: for the reset-gpio corner-case, we will have two
references for a "reset-gpios" pin that's not really shared. In this
case one will come from the actual consumer fwnode and the other from
the potential auxiliary reset-gpio device. This causes the GPIO core to
create unnecessary GPIO shared proxy devices for pins that are not
really shared.
Add a function that can detect this situation and remove entries that
have exactly two references but one of them is a reset-gpio.
Fixes: 7b78b26757e0 ("gpio: shared: handle the reset-gpios corner case")
Link: https://lore.kernel.org/r/20260108-gpio-shared-false-positive-v1-1-5dbf8d1b2f7d@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-01-09 09:56:46 +01:00
..
2025-02-24 14:57:39 +01:00
2025-02-24 14:57:39 +01:00
2025-08-07 10:07:06 +02:00
2025-07-07 09:43:53 +02:00
2024-12-02 11:34:44 -08:00
2025-10-21 11:46:50 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-05 11:34:26 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-12-06 09:01:27 -08:00
2025-09-12 09:22:44 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-12 09:19:56 +02:00
2025-11-25 14:10:06 +01:00
2025-10-23 09:56:05 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-07-07 09:43:53 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-04-17 13:58:55 +02:00
2025-11-25 14:10:06 +01:00
2025-08-07 10:07:06 +02:00
2025-11-19 14:08:51 +01:00
2025-08-07 10:07:06 +02:00
2025-07-07 09:43:53 +02:00
2025-09-12 09:19:56 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-12 09:19:56 +02:00
2025-11-20 14:15:30 +01:00
2025-09-24 13:52:35 +02:00
2024-12-02 11:34:44 -08:00
2025-08-07 10:07:06 +02:00
2025-10-13 17:33:50 +02:00
2025-08-07 10:07:06 +02:00
2025-09-24 13:52:35 +02:00
2025-09-24 13:52:35 +02:00
2025-11-25 14:10:06 +01:00
2024-12-02 11:34:44 -08:00
2025-08-07 10:07:06 +02:00
2025-10-22 08:52:32 +02:00
2025-09-12 09:19:56 +02:00
2025-08-07 10:07:06 +02:00
2025-12-18 11:29:42 +01:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-10-21 10:35:30 +02:00
2025-10-23 14:30:11 +02:00
2025-08-07 10:07:06 +02:00
2025-09-12 09:22:44 +02:00
2025-11-28 12:59:00 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-05-13 15:15:34 +02:00
2025-09-16 15:24:48 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-20 14:15:04 +01:00
2024-12-02 11:34:44 -08:00
2025-11-25 14:10:06 +01:00
2025-11-25 14:10:06 +01:00
2025-09-12 09:19:56 +02:00
2025-09-12 09:19:56 +02:00
2025-10-30 10:28:24 +01:00
2025-12-03 12:57:40 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-24 13:52:35 +02:00
2025-09-06 16:08:10 +05:30
2025-09-26 11:56:26 +02:00
2026-01-02 10:45:37 +01:00
2025-11-25 14:10:06 +01:00
2025-09-24 13:52:35 +02:00
2025-10-20 10:24:03 +02:00
2025-11-14 10:01:52 +01:00
2025-09-12 09:19:56 +02:00
2025-09-16 14:41:57 +01:00
2025-09-04 15:09:26 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:10:07 +01:00
2025-08-07 10:07:06 +02:00
2026-01-02 10:37:35 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:10:07 +01:00
2025-10-21 11:46:50 +02:00
2025-09-08 09:38:27 +02:00
2025-11-25 14:10:06 +01:00
2025-06-23 09:25:46 +02:00
2025-11-14 10:01:52 +01:00
2025-10-27 10:19:17 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-12-05 09:29:58 +01:00
2026-01-07 09:30:40 +01:00
2025-08-07 10:07:06 +02:00
2025-11-14 10:01:52 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-28 09:29:31 +01:00
2025-09-24 13:52:35 +02:00
2025-08-25 20:55:45 +02:00
2025-08-07 10:07:06 +02:00
2025-06-16 09:45:14 +02:00
2025-09-12 09:22:45 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-03 09:38:13 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-06 18:19:44 +01:00
2025-08-07 10:07:06 +02:00
2025-11-17 11:04:31 +01:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-26 12:03:09 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:10:07 +01:00
2025-09-12 09:19:56 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-08-11 11:09:23 +02:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:10:07 +01:00
2025-10-09 12:11:29 +02:00
2025-09-24 13:52:35 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-10-13 09:56:16 +02:00
2025-09-12 09:19:56 +02:00
2025-08-07 10:07:06 +02:00
2025-10-10 09:37:19 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-09-03 09:38:13 +02:00
2025-08-07 10:07:06 +02:00
2025-09-03 09:38:13 +02:00
2025-09-12 09:22:44 +02:00
2025-11-25 14:10:07 +01:00
2025-09-12 09:19:56 +02:00
2025-11-25 14:10:07 +01:00
2025-08-07 10:07:06 +02:00
2025-09-03 09:38:13 +02:00
2025-08-07 10:07:06 +02:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:10:07 +01:00
2025-08-07 10:07:06 +02:00
2025-11-25 14:04:05 +01:00
2025-12-08 05:45:56 +01:00
2025-05-21 12:25:24 +03:00
2025-12-04 12:33:38 -08:00
2025-07-17 09:22:46 +02:00
2025-11-17 10:57:28 +01:00
2025-10-16 16:47:18 +02:00
2025-07-24 11:53:29 +02:00
2026-01-09 09:56:46 +01:00
2026-01-02 10:34:31 +01:00
2025-11-20 16:51:48 +01:00
2025-10-21 10:35:57 +02:00
2026-01-08 15:23:15 +01:00
2025-11-17 10:37:37 +01:00
2025-12-06 11:48:19 +01:00
2025-11-17 10:37:37 +01:00
2025-10-16 16:47:18 +02:00