Merge the unused helper 'rtpcs_931x_sds_fiber_disable' into Fiber mode
setting, and drop the helper itself. As with the MII helper in a
previous commit, functionality is basically the same just with a value
for OFF mode. If functionality is required later, Fiber mode setting can
be used with the OFF mode instead of carrying the unused helper until
it's used.
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20736
Signed-off-by: Robert Marko <robimarko@gmail.com>
rtpcs_931x_sds_mii_mode_set(sds, RTPCS_SDS_MODE_OFF);
switch (hw_mode) {
+ case RTPCS_SDS_MODE_OFF:
+ val = 0x3f;
+ break;
+
case RTPCS_SDS_MODE_SGMII:
val = 0x5;
break;
mdelay(50);
}
-__always_unused
-static void rtpcs_931x_sds_fiber_disable(struct rtpcs_serdes *sds)
-{
- u32 v = 0x3F;
-
- rtpcs_sds_write_bits(sds, 0x1F, 0x9, 11, 6, v);
-}
-
static int rtpcs_931x_sds_cmu_page_get(phy_interface_t mode)
{
switch (mode) {