libata: fix for sata_mv >64KB DMA segments
authorOlof Johansson <olof@lixom.net>
Wed, 3 Oct 2007 01:45:27 +0000 (20:45 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 3 Oct 2007 18:41:20 +0000 (14:41 -0400)
commit4007b493ee6e4a52c2b618ab8361847fba5bf116
treed98d08a9bf2fa308161f99235c15cec40645de49
parentf778089cb2445dfc6dfd30a7a567925fd8589f1e
libata: fix for sata_mv >64KB DMA segments

Fix bug in sata_mv for cases where the IOMMU layer has merged SG entries
to larger than 64KB. They need to be split up before being sent to
the driver.

Just for simplicity's sake, split up at 64K boundary instead of 64K size,
since that's what the common code does anyway.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c