diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 8df9acb9da..7bb492c39d 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -1310,7 +1310,7 @@ int STORAGE_INIT_ATTR ata_init(void) | |||
1310 | 1310 | ||
1311 | #ifdef MAX_PHYS_SECTOR_SIZE | 1311 | #ifdef MAX_PHYS_SECTOR_SIZE |
1312 | /* Find out the physical sector size */ | 1312 | /* Find out the physical sector size */ |
1313 | if((identify_info[106] & 0xe000) == 0x6000) | 1313 | if((identify_info[106] & 0xe000) == 0x6000) /* B14, B13 */ |
1314 | phys_sector_mult = BIT_N(identify_info[106] & 0x000f); | 1314 | phys_sector_mult = BIT_N(identify_info[106] & 0x000f); |
1315 | else | 1315 | else |
1316 | phys_sector_mult = 1; | 1316 | phys_sector_mult = 1; |
@@ -1386,8 +1386,8 @@ void ata_get_info(IF_MD(int drive,)struct storage_info *info) | |||
1386 | int i; | 1386 | int i; |
1387 | 1387 | ||
1388 | /* Logical sector size > 512B ? */ | 1388 | /* Logical sector size > 512B ? */ |
1389 | if ((identify_info[106] & 0xd000) == 0x5000) | 1389 | if ((identify_info[106] & 0xd000) == 0x5000) /* B14, B12 */ |
1390 | info->sector_size = identify_info[117] | (identify_info[118] << 16); | 1390 | info->sector_size = (identify_info[117] | (identify_info[118] << 16)) * 2; |
1391 | else | 1391 | else |
1392 | info->sector_size = SECTOR_SIZE; | 1392 | info->sector_size = SECTOR_SIZE; |
1393 | 1393 | ||