]> git.baikalelectronics.ru Git - kernel.git/commit
sata_mv: fix LED blinking for SoC+NCQ
authorMark Lord <liml@rtr.ca>
Sun, 15 Mar 2009 15:33:19 +0000 (11:33 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Mar 2009 02:35:47 +0000 (22:35 -0400)
commit9103c68f06683d58c884f2d77451edf1b4dc2a35
tree8ef1c3eb8269e14b8c9d3f07ecc17c0ac2568527
parentec110b83beffe35154eb39196749ba968eef4f18
sata_mv: fix LED blinking for SoC+NCQ

For Marvell SoC chips, the HDD LED does not blink when there is
disk I/O if NCQ is enabled. Add a quirk that enables blink mode for
the LED while NCQ is enabled on any port of a SoC host controller.
Normal LED function is restored when NCQ is not enabled on any port.

The code to enable the blink mode is based on earlier code
and suggestions from Frans Pop, Saeed Bishara, and possibly others.

Signed-off-by: Mark Lord <mlord@pobox.com>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c