ipod6g: Correct inverted sector shift for CE-ATA operations.

(sector needs to be scaled UP, not DOWN)

Change-Id: I350c6c371b29c5e152d8d35852e55e3eda0d1090
This commit is contained in:
Solomon Peachy 2025-11-24 21:06:57 -05:00
parent f2be592215
commit 7511d7e514

View file

@ -799,7 +799,7 @@ static int ata_rw_chunk_internal(uint64_t sector, uint32_t cnt, void* buffer, bo
formatted with 4K logical sectors, so this will be safe.
*/
cnt <<= (identify_info[106] - 9);
sector >>= (identify_info[106] - 9);
sector <<= (identify_info[106] - 9);
memset(ceata_taskfile, 0, 16);
ceata_taskfile[0x2] = cnt >> 8;