File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -443,18 +443,17 @@ static int wiz_mode_select(struct wiz *wiz)
443
443
int i ;
444
444
445
445
for (i = 0 ; i < num_lanes ; i ++ ) {
446
- if (wiz -> lane_phy_type [i ] == PHY_TYPE_DP )
446
+ if (wiz -> lane_phy_type [i ] == PHY_TYPE_DP ) {
447
447
mode = LANE_MODE_GEN1 ;
448
- else if (wiz -> lane_phy_type [i ] == PHY_TYPE_QSGMII )
448
+ } else if (wiz -> lane_phy_type [i ] == PHY_TYPE_QSGMII ) {
449
449
mode = LANE_MODE_GEN2 ;
450
- else
451
- continue ;
452
-
453
- if (wiz -> lane_phy_type [i ] == PHY_TYPE_USXGMII ) {
450
+ } else if (wiz -> lane_phy_type [i ] == PHY_TYPE_USXGMII ) {
454
451
ret = regmap_field_write (wiz -> p0_mac_src_sel [i ], 0x3 );
455
452
ret = regmap_field_write (wiz -> p0_rxfclk_sel [i ], 0x3 );
456
453
ret = regmap_field_write (wiz -> p0_refclk_sel [i ], 0x3 );
457
454
mode = LANE_MODE_GEN1 ;
455
+ } else {
456
+ continue ;
458
457
}
459
458
460
459
ret = regmap_field_write (wiz -> p_standard_mode [i ], mode );
You can’t perform that action at this time.
0 commit comments