A patch was submitted by Naveen for the goldfish serial driver to
return an error immediately in of_to_plat() when dev_read_addr() fails,
rather than deferring the failure to the probe() stage.

To maintain consistency across the goldfish driver family and better
align with the driver model's fail fast design, this series applies the
exact same logic to the goldfish timer and rtc drivers.

Inspired by Naveen's patch for the serial driver:
https://lore.kernel.org/u-boot/vgwnt6mnls3lf3zdm6mz5siztzkvppte4ykszbvifjzukvmksf@maaxe5agqpim/
 

Tested on qemu m68k virt board with date and sleep commands.

Kuan-Wei Chiu (2):
  timer: goldfish: Return error when device address is invalid
  rtc: goldfish: Return error when device address is invalid

 drivers/rtc/goldfish_rtc.c     | 8 ++++++--
 drivers/timer/goldfish_timer.c | 6 ++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

-- 
2.54.0.1032.g2f8565e1d1-goog

Reply via email to