[PATCH 2/2] w1: sgi_w1: Search the bus only once
From: Imre Kaloz
Date: Tue Oct 13 2026 - 06:04:33 EST
The slaves on this bus are soldered to the board, so rescanning it
every timeout period only busy-waits through the time slots.
Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
---
drivers/w1/masters/sgi_w1.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/w1/masters/sgi_w1.c b/drivers/w1/masters/sgi_w1.c
index 48c10062022c..a583821d2421 100644
--- a/drivers/w1/masters/sgi_w1.c
+++ b/drivers/w1/masters/sgi_w1.c
@@ -90,6 +90,9 @@ static int sgi_w1_probe(struct platform_device *pdev)
sdev->bus_master.reset_bus = sgi_w1_reset_bus;
sdev->bus_master.touch_bit = sgi_w1_touch_bit;
+ /* The slaves are soldered on; one search finds them all. */
+ sdev->bus_master.search_count = 1;
+
pdata = dev_get_platdata(&pdev->dev);
if (pdata) {
strscpy(sdev->dev_id, pdata->dev_id, sizeof(sdev->dev_id));
--
2.47.3