While working on SPL support, we noticed a few bugs in the MediaTek
serial driver related to clock rate handling. Here are the fixes.

Signed-off-by: David Lechner <[email protected]>
---
Changes in v3:
- Use clk_is_valid().
- Drop the check before calling clk_enable().
- Add a new patch to remove an existing redundant check before a
  different clk_enable().
- Link to v2: 
https://patch.msgid.link/[email protected]

Changes in v2:
- Moved return value change to a new patch.
- Link to v1: 
https://patch.msgid.link/[email protected]

---
David Lechner (2):
      serial: mtk: return error value from clk_get_rate()
      serial: serial_mtk: drop check before clk_bus enable

Suhrid Subramaniam (2):
      serial: mtk: use ulong for clk_rate
      serial: mtk: guard clk ops on clk.dev

 drivers/serial/serial_mtk.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
---
base-commit: 5c215cb75c3723cbf77c36cbac3e60b001721c79
change-id: 20260727-serial-mtk-clock-fixes-266e61d2d917

Best regards,
--  
David Lechner <[email protected]>

Reply via email to