diff options
author | Helge Deller <deller@gmx.de> | 2023-12-13 20:57:51 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-04 18:48:50 +0100 |
commit | 426ed23a9bee9ad12b47b3129e135fe0a5685a04 (patch) | |
tree | 4dea74ec4f97cefbfa718c656c6896976e4152ef | |
parent | ca4199875d64327158b3706ac9d2832aaf6fe50e (diff) | |
download | seabios-hppa-426ed23a9bee9ad12b47b3129e135fe0a5685a04.zip seabios-hppa-426ed23a9bee9ad12b47b3129e135fe0a5685a04.tar.gz seabios-hppa-426ed23a9bee9ad12b47b3129e135fe0a5685a04.tar.bz2 |
parisc/scsi: Set default max block size if not set by driver
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | src/parisc/parisc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 4618f0f..c223161 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1178,7 +1178,10 @@ int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg FUNC_MANY_ARGS) // Make sure we know how many bytes we can read at once! // NOTE: LSI SCSI can not read more than 8191 blocks, esp only 64k - BUG_ON(disk_op.drive_fl->max_bytes_transfer == 0); + if (disk_op.drive_fl->max_bytes_transfer == 0) { + dprintf(0, "WARNING: Maximum transfer size not set for boot disc.\n"); + disk_op.drive_fl->max_bytes_transfer = 64*1024; /* 64kb */ + } if (option == ENTRY_IO_BBLOCK_IN) { /* in 2k blocks */ unsigned long maxcount; |