forked from len0rd/rockbox
debug ata: Distinguish between Advanced power management and basic PM
The old debug menu item covered APM, which is optional in the ATA spec
However, despite basic power management being mandatory, several popular
ATA/CF->SD adapters do not advertise PM support and have problems when
it is used.
An earlier patch (g#2500 / 5462907) disabled sleep when the PM
capability bit was not set; this makes it visible in the debug menu.
Change-Id: I2f3dd1244798d7bbb8239ac159c6470774b0c05e
This commit is contained in:
parent
385d2eaa19
commit
4a1988d31b
1 changed files with 4 additions and 1 deletions
|
|
@ -1407,9 +1407,12 @@ static int disk_callback(int btn, struct gui_synclist *lists)
|
||||||
"Free: %ld MB", free / 1024);
|
"Free: %ld MB", free / 1024);
|
||||||
simplelist_addline(
|
simplelist_addline(
|
||||||
"Spinup time: %d ms", storage_spinup_time() * (1000/HZ));
|
"Spinup time: %d ms", storage_spinup_time() * (1000/HZ));
|
||||||
i = identify_info[83] & (1<<3);
|
i = identify_info[82] & (1<<3);
|
||||||
simplelist_addline(
|
simplelist_addline(
|
||||||
"Power mgmt: %s", i ? "enabled" : "unsupported");
|
"Power mgmt: %s", i ? "enabled" : "unsupported");
|
||||||
|
i = identify_info[83] & (1<<3);
|
||||||
|
simplelist_addline(
|
||||||
|
"Adv Power mgmt: %s", i ? "enabled" : "unsupported");
|
||||||
i = identify_info[83] & (1<<9);
|
i = identify_info[83] & (1<<9);
|
||||||
simplelist_addline(
|
simplelist_addline(
|
||||||
"Noise mgmt: %s", i ? "enabled" : "unsupported");
|
"Noise mgmt: %s", i ? "enabled" : "unsupported");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue