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 @@ -430,18 +430,17 @@ static int wiz_mode_select(struct wiz *wiz)
430
430
int i ;
431
431
432
432
for (i = 0 ; i < num_lanes ; i ++ ) {
433
- if (wiz -> lane_phy_type [i ] == PHY_TYPE_DP )
433
+ if (wiz -> lane_phy_type [i ] == PHY_TYPE_DP ) {
434
434
mode = LANE_MODE_GEN1 ;
435
- else if (wiz -> lane_phy_type [i ] == PHY_TYPE_QSGMII )
435
+ } else if (wiz -> lane_phy_type [i ] == PHY_TYPE_QSGMII ) {
436
436
mode = LANE_MODE_GEN2 ;
437
- else
438
- continue ;
439
-
440
- if (wiz -> lane_phy_type [i ] == PHY_TYPE_USXGMII ) {
437
+ } else if (wiz -> lane_phy_type [i ] == PHY_TYPE_USXGMII ) {
441
438
ret = regmap_field_write (wiz -> p0_mac_src_sel [i ], 0x3 );
442
439
ret = regmap_field_write (wiz -> p0_rxfclk_sel [i ], 0x3 );
443
440
ret = regmap_field_write (wiz -> p0_refclk_sel [i ], 0x3 );
444
441
mode = LANE_MODE_GEN1 ;
442
+ } else {
443
+ continue ;
445
444
}
446
445
447
446
ret = regmap_field_write (wiz -> p_standard_mode [i ], mode );
You can’t perform that action at this time.
0 commit comments