w1: w1-gpio: Make GPIO an output for strong pullup
authorPhil Elwell <phil@raspberrypi.org>
Wed, 12 Jun 2019 16:15:05 +0000 (17:15 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:52 +0000 (11:32 +0000)
commit9871db0b39da026fc284363c08682639b9c72a55
tree8d2944b3e3e850f635c8a5c6906d744839f3c4c8
parente61302f9d3fff7b7c8b33f5520e41dd3d91b6889
w1: w1-gpio: Make GPIO an output for strong pullup

The logic to drive the data line high to implement a strong pullup
assumed that the pin was already an output - setting a value does
not change an input.

See: https://github.com/raspberrypi/firmware/issues/1143

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/w1/masters/w1-gpio.c