aboutsummaryrefslogtreecommitdiff
path: root/drivers/ata/pata_it821x.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-01 12:48:28 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-01 12:48:28 +0100
commit645af4e9e0e32481e3336dda813688732c7e5f0f (patch)
tree931b31f3b6e0879df0f9a1d58ffd040d9a652f2e /drivers/ata/pata_it821x.c
parentecc25fbd6b9e07b33895c61ddf84006b00f55d99 (diff)
parent55f2b78995826d549401bdf20abeac1832636bb6 (diff)
Merge branch 'x86/pat' into x86/core
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r--drivers/ata/pata_it821x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index f1bb2f9fecb..b05b86a912c 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -557,6 +557,9 @@ static unsigned int it821x_read_id(struct ata_device *adev,
id[83] |= 0x4400; /* Word 83 is valid and LBA48 */
id[86] |= 0x0400; /* LBA48 on */
id[ATA_ID_MAJOR_VER] |= 0x1F;
+ /* Clear the serial number because it's different each boot
+ which breaks validation on resume */
+ memset(&id[ATA_ID_SERNO], 0x20, ATA_ID_SERNO_LEN);
}
return err_mask;
}