Skip to content

Commit 9f5d146

Browse files
hramrachheftig
authored andcommitted
Revert 101bd90 ("misc: rtsx: judge ASPM Mode to set PETXCFG Reg")
References: boo#1214428 boo#1214397 Patch-mainline: Not yet, fix under discussion Causes inability to access Samsung NVMe drives. Source: https://bugzilla.kernel.org/show_bug.cgi?id=217802#c18 Cherry-picked-for: https://bugs.archlinux.org/task/79439
1 parent 475d06c commit 9f5d146

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

drivers/misc/cardreader/rts5228.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ static void rts5228_init_from_cfg(struct rtsx_pcr *pcr)
400400
if (option->ltr_enabled)
401401
rtsx_set_ltr_latency(pcr, option->ltr_active_latency);
402402
}
403+
404+
if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
405+
| PM_L1_1_EN | PM_L1_2_EN))
406+
option->force_clkreq_0 = false;
407+
else
408+
option->force_clkreq_0 = true;
403409
}
404410

405411
static int rts5228_extra_init_hw(struct rtsx_pcr *pcr)

drivers/misc/cardreader/rts5260.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,12 @@ static void rts5260_init_from_cfg(struct rtsx_pcr *pcr)
488488
if (option->ltr_enabled)
489489
rtsx_set_ltr_latency(pcr, option->ltr_active_latency);
490490
}
491+
492+
if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
493+
| PM_L1_1_EN | PM_L1_2_EN))
494+
option->force_clkreq_0 = false;
495+
else
496+
option->force_clkreq_0 = true;
491497
}
492498

493499
static int rts5260_extra_init_hw(struct rtsx_pcr *pcr)

drivers/misc/cardreader/rts5261.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,12 @@ static void rts5261_init_from_cfg(struct rtsx_pcr *pcr)
460460
if (option->ltr_enabled)
461461
rtsx_set_ltr_latency(pcr, option->ltr_active_latency);
462462
}
463+
464+
if (rtsx_check_dev_flag(pcr, ASPM_L1_1_EN | ASPM_L1_2_EN
465+
| PM_L1_1_EN | PM_L1_2_EN))
466+
option->force_clkreq_0 = false;
467+
else
468+
option->force_clkreq_0 = true;
463469
}
464470

465471
static int rts5261_extra_init_hw(struct rtsx_pcr *pcr)

0 commit comments

Comments
 (0)