Tomas Henzl 132aa220b4 hpsa: refine the pci enable/disable handling
When a second(kdump) kernel starts and the hard reset method is used
the driver calls pci_disable_device without previously enabling it,
so the kernel shows a warning -
[   16.876248] WARNING: at drivers/pci/pci.c:1431 pci_disable_device+0x84/0x90()
[   16.882686] Device hpsa
disabling already-disabled device
...
This patch fixes it, in addition to this I tried to balance also some other pairs
of enable/disable device in the driver.
Unfortunately I wasn't able to verify the functionality for the case of a sw reset,
because of a lack of proper hw.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-09-16 09:09:49 -07:00
..
2014-09-15 16:01:58 -07:00
2014-07-25 17:16:54 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:59 -04:00
2014-05-19 19:12:23 +02:00
2014-07-25 17:16:55 -04:00
2014-06-06 07:57:37 -06:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2014-08-08 15:57:29 -07:00
2014-07-25 07:43:43 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:23 -04:00
2014-07-17 22:07:37 +02:00
2014-06-09 18:54:06 -07:00
2014-07-17 22:07:40 +02:00
2014-07-17 22:07:38 +02:00
2014-09-15 16:01:58 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:17 -04:00
2014-09-16 09:09:38 -07:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:27 -04:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:44 +02:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:35 +02:00
2014-07-17 22:07:37 +02:00
2014-05-28 18:14:16 +02:00
2014-06-06 07:57:37 -06:00
2014-07-25 17:16:55 -04:00
2013-04-09 14:13:17 -04:00
2014-07-17 22:07:37 +02:00
2014-07-25 17:16:55 -04:00
2014-09-15 16:01:58 -07:00
2014-04-10 15:30:35 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-11-23 22:33:50 -08:00
2014-07-17 22:07:33 +02:00
2014-07-25 07:43:45 -04:00
2014-07-17 22:07:39 +02:00
2014-07-17 22:07:39 +02:00
2012-09-14 17:59:29 +01:00
2014-07-25 17:23:25 -04:00
2014-07-17 22:07:37 +02:00
2014-05-28 12:05:37 +02:00
2014-05-28 12:05:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00