]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IB/ipath: Prevent random program use of diags interface
authorBryan O'Sullivan <bos@pathscale.com>
Thu, 15 Mar 2007 21:45:10 +0000 (14:45 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 19 Apr 2007 03:20:59 +0000 (20:20 -0700)
commit490462c2686df6e35c21d1efe935e0b4a3bddb39
tree455262ace80556289cf5ff10247246adcbe0b9d0
parentf5408ac7ccec0a7edd2b6add0da82735375a37a0
IB/ipath: Prevent random program use of diags interface

To prevent random utility reads and writes of the diag interface to the
chip, we first require a handshake of reading from offset 0 and writing
to offset 0 before any other reads or writes can be done through the
diags device.   Otherwise chip errors can be triggered.

Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_diag.c