* [PATCH]aic7xxx: Take the LED out of diagnostic mode on PM resume, too.
@ 2008-10-03 21:45 thomas schorpp
0 siblings, 0 replies; only message in thread
From: thomas schorpp @ 2008-10-03 21:45 UTC (permalink / raw)
To: SCSI development list
[-- Attachment #1: Type: text/plain, Size: 353 bytes --]
Take the Diag/Activity-LED of the HBA out of diagnostic mode on PM resume after successful PM resume from standby and HBA restart,
it remained always on before. If something fails before complete recovery, it should remain on, since it is a diagnostics LED,
reason for the used higher layer for the clear.
Signed-off-by: thomas.schorpp@gmail.com
[-- Attachment #2: aic7xxx_PM_fixled.patch --]
[-- Type: text/x-diff, Size: 542 bytes --]
--- drivers/scsi/aic7xxx/aic7xxx_core.c 2008-10-03 13:53:39.000000000 +0200
+++ drivers/scsi/aic7xxx/aic7xxx_core.c 2008-10-03 14:26:04.000000000 +0200
@@ -814,6 +814,7 @@
static void
ahc_restart(struct ahc_softc *ahc)
{
+ uint8_t sblkctl;
ahc_pause(ahc);
@@ -868,6 +869,12 @@
ahc_outb(ahc, SEQADDR0, 0);
ahc_outb(ahc, SEQADDR1, 0);
+ /*
+ * Take the LED out of diagnostic mode on PM resume, too
+ */
+ sblkctl = ahc_inb(ahc, SBLKCTL);
+ ahc_outb(ahc, SBLKCTL, (sblkctl & ~(DIAGLEDEN|DIAGLEDON)));
+
ahc_unpause(ahc);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-03 21:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 21:45 [PATCH]aic7xxx: Take the LED out of diagnostic mode on PM resume, too thomas schorpp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox