File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4375,8 +4375,8 @@ static void ufshcd_init_pwr_info(struct ufs_hba *hba)
4375
4375
{
4376
4376
hba -> pwr_info .gear_rx = UFS_PWM_G1 ;
4377
4377
hba -> pwr_info .gear_tx = UFS_PWM_G1 ;
4378
- hba -> pwr_info .lane_rx = 1 ;
4379
- hba -> pwr_info .lane_tx = 1 ;
4378
+ hba -> pwr_info .lane_rx = UFS_LANE_1 ;
4379
+ hba -> pwr_info .lane_tx = UFS_LANE_1 ;
4380
4380
hba -> pwr_info .pwr_rx = SLOWAUTO_MODE ;
4381
4381
hba -> pwr_info .pwr_tx = SLOWAUTO_MODE ;
4382
4382
hba -> pwr_info .hs_rate = 0 ;
Original file line number Diff line number Diff line change @@ -305,8 +305,8 @@ EXPORT_SYMBOL_GPL(ufshcd_get_pwr_dev_param);
305
305
void ufshcd_init_pwr_dev_param (struct ufs_dev_params * dev_param )
306
306
{
307
307
* dev_param = (struct ufs_dev_params ){
308
- .tx_lanes = 2 ,
309
- .rx_lanes = 2 ,
308
+ .tx_lanes = UFS_LANE_2 ,
309
+ .rx_lanes = UFS_LANE_2 ,
310
310
.hs_rx_gear = UFS_HS_G3 ,
311
311
.hs_tx_gear = UFS_HS_G3 ,
312
312
.pwm_rx_gear = UFS_PWM_G4 ,
Original file line number Diff line number Diff line change @@ -230,6 +230,12 @@ enum ufs_hs_gear_tag {
230
230
UFS_HS_G5 /* HS Gear 5 */
231
231
};
232
232
233
+ enum ufs_lanes {
234
+ UFS_LANE_DONT_CHANGE , /* Don't change Lane */
235
+ UFS_LANE_1 , /* Lane 1 (default for reset) */
236
+ UFS_LANE_2 , /* Lane 2 */
237
+ };
238
+
233
239
enum ufs_unipro_ver {
234
240
UFS_UNIPRO_VER_RESERVED = 0 ,
235
241
UFS_UNIPRO_VER_1_40 = 1 , /* UniPro version 1.40 */
You can’t perform that action at this time.
0 commit comments