Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc9cd395 authored by Venkatesh Yadav Abbarapu's avatar Venkatesh Yadav Abbarapu
Browse files

net: qfec: Fix error in GMAC_N_CLKDIV_SHFT macro



Fix incorrect bit shift in GMAC_N_CLKDIV_SHFT macro to set up the
correct clock divider for 100Mbps and 10Mbps operation.

Change-Id: I53bff914402a1f4960149f00ca61dc3d814a1996
Acked-by: default avatarJie Luo <jluo@qti.qualcomm.com>
Signed-off-by: default avatarVenkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
parent 975e2eb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -732,7 +732,7 @@ struct qfec_enh_buf_desc {
#define CLKDIV_SGMII_100           0x0004
#define CLKDIV_SGMII_10            0x0031
#define CLKDIV_BMSK                0x007f
#define GMAC_N_CLKDIV_SHFT(n)      ((n) << 8)
#define GMAC_N_CLKDIV_SHFT(n)      ((n) * 8)
#define GMAC_N_CLKDIV_BMSK(n)      (CLKDIV_BMSK << GMAC_N_CLKDIV_SHFT(n))
#define GMAC_N_CLKDIV(v, n)        ((v) << GMAC_N_CLKDIV_SHFT(n))