From 2824bd5f1644a6b9129a0c0fcfe2bafab91a7225 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 1 Nov 2024 19:58:22 -0400 Subject: ipod6g: Support MAX_PHYS_SECTOR_SIZE of 4K This lets us *natively* handle varying physical sector sizes without playing games and lying about the logical sector size. (The original drives use 4K _physical_ sectors with 512B logical sectors, but you have to access everything in 4K blocks...) Achieve this by splitting the MAX_PHYS_SECTOR_SIZE code out of the main ATA driver and re-using it. Change-Id: I0bc615ab4562f1e3e83171a8633c74fb60c7da1f --- firmware/export/config/ipod6g.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/export/config/ipod6g.h') diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h index 58c91b29c6..7eb92f86db 100644 --- a/firmware/export/config/ipod6g.h +++ b/firmware/export/config/ipod6g.h @@ -191,10 +191,10 @@ #define HAVE_ATA_SMART -#define SECTOR_SIZE 512 /* define this if the device has larger sectors when accessed via USB */ #define MAX_LOG_SECTOR_SIZE 4096 -//#define MAX_PHYS_SECTOR_SIZE 4096 // Only if we have various physical sector sizes +/* This is the minimum access size for the device, even if it's larger than the logical sector size */ +#define MAX_PHYS_SECTOR_SIZE 4096 #define HAVE_HARDWARE_CLICK -- cgit v1.2.3