From: Imre Kaloz <kaloz@kernel.org>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] w1: sgi_w1: Search the bus only once
Date: Tue, 13 Oct 2026 11:50:46 +0200 [thread overview]
Message-ID: <20261013095046.6006-3-kaloz@kernel.org> (raw)
In-Reply-To: <20261013095046.6006-1-kaloz@kernel.org>
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@kernel.org>
---
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
next prev parent reply other threads:[~2026-10-13 9:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 9:50 [PATCH 0/2] w1: Search the SGI 1-wire buses only once Imre Kaloz
2026-10-13 9:50 ` [PATCH 1/2] w1: Let bus masters set the search count Imre Kaloz
2026-10-13 9:50 ` Imre Kaloz [this message]
2026-11-02 14:09 ` [PATCH 0/2] w1: Search the SGI 1-wire buses only once Krzysztof Kozlowski
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=20261013095046.6006-3-kaloz@kernel.org \
--to=kaloz@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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.