]> git.baikalelectronics.ru Git - kernel.git/commit
pata_it821x: resume from hibernation fails with RAID volume
authorOndrej Zary <linux@rainbow-software.org>
Wed, 11 Feb 2009 21:08:43 +0000 (13:08 -0800)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Feb 2009 20:22:44 +0000 (15:22 -0500)
commitc68454fb2330c75bf87305e4c5912d9a2eb32e81
tree0cbe0e20e4c7ea2bf4e96d7b3a2966fe5686eb46
parentf6cc9e2ad1cb4ee0ca35a68f8c9a2b6626582f1c
pata_it821x: resume from hibernation fails with RAID volume

Hibernation didn't work for me since I started to use IT8212 controller.
I did some debugging (booting with no_console_suspend init=/bin/sh).

Found that resume fails (2.6.28) with "serial number mismatch 'some
garbage' != 'some other garbage'" and "revalidation failed" messages.
That's because the controller firmware fills different serial number in
the IDENTIFY every boot.

The patch below fixes the resume simply clearing the serial number.  The
proper fix would be probably to fill in the serial number of the RAID
volume instead.  I assume that there must be something like that stored on
the drives but I don't know where.

Fix resume on pata_it821x RAID volume by clearing the serial number in
IDENTIFY data, which is otherwise different on each boot.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_it821x.c