forked from mirror/openwrt
realtek: pcs: rtl931x: merge and drop unused helper
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>
This commit is contained in:
parent
65dc1ecf49
commit
75493a812f
1 changed files with 4 additions and 8 deletions
|
|
@ -2424,6 +2424,10 @@ static void rtpcs_931x_sds_fiber_mode_set(struct rtpcs_serdes *sds,
|
|||
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;
|
||||
|
|
@ -2494,14 +2498,6 @@ static void rtpcs_931x_sds_rx_reset(struct rtpcs_serdes *sds)
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue