]> err.no Git - linux-2.6/commit
sata_sil24: fix sg table sizing
authorTejun Heo <htejun@gmail.com>
Thu, 22 Nov 2007 09:46:57 +0000 (18:46 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 24 Nov 2007 00:23:55 +0000 (19:23 -0500)
commit93e2618e0cee1f5b5a4cfc1b7521939318dbf5bb
treee535579b3e39c603f81e0144dbf744d0204c6975
parent0706efd61edfcf958c2c19669aa65c2180ec3ba0
sata_sil24: fix sg table sizing

sil24 unnecessarily used LIBATA_MAX_PRD and ATAPI sg table was short
by one entry which might cause very obscure problems.  This patch
updates sg table sizing such that

* One full page is used for PRB + sg table.  On 4k page,
  this results in 253 sg's.

* Make ATAPI sg block properly sized.

* Make build fail if command block size doesn't equal PAGE_SIZE.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_sil24.c