diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-11-02 14:47:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-11-02 14:48:54 -0400 |
commit | 4be628544418641add9f8efd44a6b7cf1ed916bc (patch) | |
tree | ed68040765f459a250c660c6888310f7dd73d781 /firmware/common/disk.c | |
parent | 04dc052a96d2f43ce4e96c1c768bb6043a47f680 (diff) | |
download | rockbox-4be628544418641add9f8efd44a6b7cf1ed916bc.tar.gz rockbox-4be628544418641add9f8efd44a6b7cf1ed916bc.zip |
disk: MAX_LOG_SECTOR_SIZE also applies to a few non-ATA targets
Fuze+, native Sonys, and some of the Zens use 2K sectoring from
the partition/filesystem perspective, even though the underlying
storage used 512-byte sectoring.
Change-Id: I247d8cae2582c63ec1d4dda0fb225b1a25c8e16a
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index 9c78411957..958f09755a 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -111,10 +111,6 @@ static void init_volume(struct volumeinfo *vi, int drive, int part) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | #ifdef MAX_LOG_SECTOR_SIZE | 113 | #ifdef MAX_LOG_SECTOR_SIZE |
114 | #if !(CONFIG_STORAGE & STORAGE_ATA) | ||
115 | #error "MAX_LOG_SECTOR_SIZE only supported for STORAGE_ATA" | ||
116 | #endif | ||
117 | |||
118 | static uint16_t disk_sector_multiplier[NUM_DRIVES] = | 114 | static uint16_t disk_sector_multiplier[NUM_DRIVES] = |
119 | { [0 ... NUM_DRIVES-1] = 1 }; | 115 | { [0 ... NUM_DRIVES-1] = 1 }; |
120 | 116 | ||