clk: meson-g12a: missing break
PATCH 1/1 clk: meson-g12a: missing break
Add missing break for CLKID_PCIE_PLL in switch statement.
Reported by CppCheck.
---
Looking at the code it seems obvious that something is wrong in commit 08e09c263fdf but I have no board for testing.
---
drivers/clk/meson/g12a.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/meson/g12a.c +1 -0
@@ -804,6 +804,7 @@ static ulong meson_clk_get_rate_by_id(struct clk *clk, unsigned long id)break ;case CLKID_PCIE_PLL : rate =meson_pcie_pll_get_rate (clk); +break ;case CLKID_VPU_0 : rate =meson_div_get_rate (clk,CLKID_VPU_0_DIV );break ;
--
2.25.0
PATCH 1/1 clk: meson-g12a: missing break
Quoted 28 lines · On Sat, 15 Feb 2020 21:10:54 +0100 Heinrich Schuchardt <[email protected]>…
Add missing break for
CLKID_PCIE_PLLin switch statement.Reported by CppCheck.
Cc Neil Armstrong <[email protected]>Fixes 08e09c263fdf ("clk: meson-g12a: Add PCIE PLL support")Signed-off-by Heinrich Schuchardt <[email protected]>---
Looking at the code it seems obvious that something is wrong in commit08e09c263fdfbut I have no board for testing.
---drivers/clk/meson/g12a.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/meson/g12a.c +1
-1@@ -804,6 +804,7 @@ static ulong meson_clk_get_rate_by_id(struct clk *clk, unsigned long id) break;case CLKID_PCIE_PLL : rate =meson_pcie_pll_get_rate (clk); +break ;case CLKID_VPU_0 : rate =meson_div_get_rate (clk,CLKID_VPU_0_DIV );break ; --
Quoted 2 lines
2.25.0
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200216/824a41c3/attachment.sig>
PATCH 1/1 clk: meson-g12a: missing break
In reply to Heinrich SchuchardtQuoted 28 lines · Heinrich Schuchardt
Add missing break for
CLKID_PCIE_PLLin switch statement.Reported by CppCheck.
Cc Neil Armstrong <[email protected]>Fixes 08e09c263fdf ("clk: meson-g12a: Add PCIE PLL support")Signed-off-by Heinrich Schuchardt <[email protected]>---
Looking at the code it seems obvious that something is wrong in commit08e09c263fdfbut I have no board for testing.
---drivers/clk/meson/g12a.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/meson/g12a.c +1
-1@@ -804,6 +804,7 @@ static ulong meson_clk_get_rate_by_id(struct clk *clk, unsigned long id)break ;case CLKID_PCIE_PLL : rate =meson_pcie_pll_get_rate (clk); +break ;case CLKID_VPU_0 : rate =meson_div_get_rate (clk,CLKID_VPU_0_DIV );break ; --
Quoted 2 lines
2.25.0
Thanks,
Applied to u-boot-amlogic
Neil