summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-14 21:38:16 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-15 01:43:07 +0000
commit4a1988d31bcf8361f92ca74c460077ee6cb64ba7 (patch)
tree3afdfd922cb54370f1a3b0de10e02465a060f3e1 /apps/debug_menu.c
parent385d2eaa1956327f7d9bacb4a69767257775bfd0 (diff)
downloadrockbox-4a1988d31bcf8361f92ca74c460077ee6cb64ba7.tar.gz
rockbox-4a1988d31bcf8361f92ca74c460077ee6cb64ba7.zip
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
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index a46c169844..bc272e2a85 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1407,9 +1407,12 @@ static int disk_callback(int btn, struct gui_synclist *lists)
1407 "Free: %ld MB", free / 1024); 1407 "Free: %ld MB", free / 1024);
1408 simplelist_addline( 1408 simplelist_addline(
1409 "Spinup time: %d ms", storage_spinup_time() * (1000/HZ)); 1409 "Spinup time: %d ms", storage_spinup_time() * (1000/HZ));
1410 i = identify_info[83] & (1<<3); 1410 i = identify_info[82] & (1<<3);
1411 simplelist_addline( 1411 simplelist_addline(
1412 "Power mgmt: %s", i ? "enabled" : "unsupported"); 1412 "Power mgmt: %s", i ? "enabled" : "unsupported");
1413 i = identify_info[83] & (1<<3);
1414 simplelist_addline(
1415 "Adv Power mgmt: %s", i ? "enabled" : "unsupported");
1413 i = identify_info[83] & (1<<9); 1416 i = identify_info[83] & (1<<9);
1414 simplelist_addline( 1417 simplelist_addline(
1415 "Noise mgmt: %s", i ? "enabled" : "unsupported"); 1418 "Noise mgmt: %s", i ? "enabled" : "unsupported");