sata_mv ncq Restrict max sectors to 8-bits on GenII NCQ
authorMark Lord <liml@rtr.ca>
Sat, 26 Jan 2008 23:32:29 +0000 (18:32 -0500)
committerJeff Garzik <jeff@garzik.org>
Fri, 1 Feb 2008 16:29:47 +0000 (11:29 -0500)
commitf273827e2aadcf2f74a7bdc9ad715a1b20ea7dda
tree83cc1a07ad647f8aad2c9a6569fac2193e0ca9eb
parentcb92441973ebd71d556fc7cdd9e597582327dd71
sata_mv ncq Restrict max sectors to 8-bits on GenII NCQ

The GenII chips have only 8-bits for the sector_count field when performing NCQ.
Add a dev_config method to restrict this when necessary, taking care not to
override any other restriction already in place (likely none, but someday.. ?).

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c