]> git.baikalelectronics.ru Git - kernel.git/commit
libata: disable pdev on all suspend events
authorTejun Heo <htejun@gmail.com>
Tue, 20 Feb 2007 09:14:48 +0000 (18:14 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:18 +0000 (04:58 -0500)
commitb30c836fbefda0f16d46ce8a13f95e717900ab43
tree5f089e1292536a84d7a8738ed276501c0600eaad
parentfaeb4de84ac722d302c56f0757de35e074c3658e
libata: disable pdev on all suspend events

libata used disable pdev only on PM_EVENT_SUSPEND while re-enable pdev
unconditionally.  This was okay before ref-counted pdev enable update
but it now makes the pdev pinned after swsusp cycle (enabled twice but
disabled only once) and devres sanity check whines about it.

Fix it by unconditionally disabling pdev on all suspend events.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c