| From stable-bounces@linux.kernel.org Wed Aug 6 09:43:49 2008 |
| From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> |
| Date: Wed, 6 Aug 2008 18:40:27 +0200 |
| Subject: cs5520: add enablebits checking |
| To: stable@kernel.org |
| Cc: TAKADA Yoshihito <takada@mbf.nifty.com> |
| Message-ID: <200808061840.27701.bzolnier@gmail.com> |
| Content-Disposition: inline |
| |
| From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> |
| |
| upstream commit is 24307ffabd5b39bad443641f54b12ee2ba7a38ac |
| |
| Based on sparse comments in OpenFirmware code |
| (no Cx5510/Cx5520 datasheet here). |
| |
| This fixes 2.6.26 regression reported by TAKADA |
| and caused by addition of warm-plug support. |
| |
| Tested-by: TAKADA Yoshihito <takada@mbf.nifty.com> |
| Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| drivers/ide/pci/cs5520.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/drivers/ide/pci/cs5520.c |
| +++ b/drivers/ide/pci/cs5520.c |
| @@ -123,6 +123,7 @@ static const struct ide_dma_ops cs5520_d |
| #define DECLARE_CS_DEV(name_str) \ |
| { \ |
| .name = name_str, \ |
| + .enablebits = { {0x60, 0x01, 0x01}, {0x60, 0x02, 0x02} }, \ |
| .port_ops = &cs5520_port_ops, \ |
| .dma_ops = &cs5520_dma_ops, \ |
| .host_flags = IDE_HFLAG_ISA_PORTS | \ |