[PATCH v3 0/4] serial: mtk: clock rate fixes

David Lechner <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260807-serial-mtk-clock-fixes-v3-0-8cc94d313b57__44111.4261558809$1786129238$gmane$org@baylibre.com>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.