]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] pm80xx: fix Adaptec 71605H hang
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 26 Jul 2013 16:43:45 +0000 (18:43 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 26 Aug 2013 09:33:58 +0000 (13:33 +0400)
commita84c61b594e2876ab7f6413f7c8287ab336eb09a
tree60c25768bd16bdc69cf4e15aafdfc2be15c36b7d
parent0e604858b8ff0746cd0e56bb2b25671dcef7e3f1
[SCSI] pm80xx: fix Adaptec 71605H hang

The IO command size is 128 bytes for these new controllers as opposed to 64
for the old 8001 controller.

The Adaptec out-of-tree driver did this correctly. After comparing the two
this turned out to be the crucial difference.

So don't hardcode the IO command size, instead use pm8001_ha->iomb_size as
that is the correct value for both old and new controllers.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Anand Kumar Santhanam <AnandKumar.Santhanam@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Cc: stable@vger.kernel.org # for v3.10 and up
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/pm8001/pm8001_hwi.c
drivers/scsi/pm8001/pm80xx_hwi.c