mlx4_core: Clean up enabling of SENSE_PORT for older (ConnectX-1/-2) HCAs
authorRoland Dreier <roland@purestorage.com>
Thu, 27 Sep 2012 16:53:05 +0000 (09:53 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 09:10:44 +0000 (02:10 -0700)
Instead of having a hard-coded "PCI device ID != 0x1003" (which
obviously breaks as newer devices with ID != 0x1003 become available),
instead let's set a flag in our PCI device table for the older devices
where we're supposed to force using SENSE_PORT.  This also avoids
enabling SENSE_PORT for virtual functions by mistake.

Signed-off-by: Roland Dreier <roland@purestorage.com>

No differences found