mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
iPod Classic: wait for ATA power down on device shutdown
Change-Id: I5d3d19d6d0c937e11e28b99f34d729631051ab93
This commit is contained in:
parent
52a6db3a36
commit
b8a237dca2
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,6 @@ static int ata_power_up(void)
|
|||
static void ata_power_down(void)
|
||||
{
|
||||
if (!ata_powered) return;
|
||||
ata_powered = false;
|
||||
if (ceata)
|
||||
{
|
||||
memset(ceata_taskfile, 0, 16);
|
||||
|
|
@ -720,6 +719,7 @@ static void ata_power_down(void)
|
|||
PCON(10) &= ~0xffff;
|
||||
PCON(11) &= ~0xf;
|
||||
ide_power_enable(false);
|
||||
ata_powered = false;
|
||||
}
|
||||
|
||||
static int ata_rw_chunk_internal(uint64_t sector, uint32_t cnt, void* buffer, bool write)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue