aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wwan/iosm/iosm_ipc_debugfs.c
diff options
context:
space:
mode:
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>2022-02-13 23:20:11 -0300
committerDavid S. Miller <davem@davemloft.net>2022-02-14 14:06:11 +0000
commit9a236b543f6b1e85bb18b00ce5c92bfff84a47ab (patch)
tree6cd12c4d61bd9813f37dc3bd4bc79722d3fb2f49 /drivers/net/wwan/iosm/iosm_ipc_debugfs.c
parentdd263a8cb1941d2d34a55633bd5366d9bebf4be8 (diff)
net: dsa: realtek: realtek-smi: clean-up reset
When reset GPIO was missing, the driver was still printing an info message and still trying to assert the reset. Although gpiod_set_value() will silently ignore calls with NULL gpio_desc, it is better to make it clear the driver might allow gpio_desc to be NULL. The initial value for the reset pin was changed to GPIOD_OUT_LOW, followed by a gpiod_set_value() asserting the reset. This way, it will be easier to spot if and where the reset really happens. A new "asserted RESET" message was added just after the reset is asserted, similar to the existing "deasserted RESET" message. Both messages were demoted to dbg. The code comment is not needed anymore. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_debugfs.c')
0 files changed, 0 insertions, 0 deletions