diff options
author | Aegis Lin <aegislin@gmail.com> | 2008-02-01 17:35:13 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-02-07 18:02:33 -0600 |
commit | 51883b5e60796cce556370dbc368fd22c60c0e3e (patch) | |
tree | eeaa730b06d116d1fffa3ad81f80dd3ac340b330 /drivers/scsi/ps3rom.c | |
parent | 0bb67f181834044db6e9b15c7d5cc3cce0489bfd (diff) | |
download | kernel_goldelico_gta04-51883b5e60796cce556370dbc368fd22c60c0e3e.zip kernel_goldelico_gta04-51883b5e60796cce556370dbc368fd22c60c0e3e.tar.gz kernel_goldelico_gta04-51883b5e60796cce556370dbc368fd22c60c0e3e.tar.bz2 |
[SCSI] ps3rom: sector size should be 512 bytes
It should be desired that 64 KiB is available for ATAPI transferrring.
(Historically) in SCSI/block layer sector size is defined as 512 during
sector-byte calculation.
Originally in ps3rom.c CD_FRAMESIZE (2048) was used, which limited
/sys/block/sr0/queue/max_sectors_kb to 16 KiB (32 sectors).
Signed-off-by: Aegis Lin <aegislin@gmail.com>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/ps3rom.c')
-rw-r--r-- | drivers/scsi/ps3rom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index 17b4a7c..0cd614a 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c @@ -35,7 +35,7 @@ #define BOUNCE_SIZE (64*1024) -#define PS3ROM_MAX_SECTORS (BOUNCE_SIZE / CD_FRAMESIZE) +#define PS3ROM_MAX_SECTORS (BOUNCE_SIZE >> 9) struct ps3rom_private { |