diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-05 08:07:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-12 10:49:23 +0100 |
commit | f75d4a238770d83d3a0475ce7f34e3fa37de161e (patch) | |
tree | 522f9aa82d79993fb670e638757bae1240c03ca8 /drivers/ide/ide-disk_proc.c | |
parent | scc_pata: fix module unloading (diff) | |
download | linux-f75d4a238770d83d3a0475ce7f34e3fa37de161e.tar.xz linux-f75d4a238770d83d3a0475ce7f34e3fa37de161e.zip |
icside: bring back ->maskproc method
Bring back ->maskproc method since it is still needed for proper operation,
as noticed by Russell King:
> This change is bogus.
>
> writeb(0, base + ICS_ARCIN_V6_INTROFFSET_1);
> readb(base + ICS_ARCIN_V6_INTROFFSET_2);
>
> writeb(0, base + ICS_ARCIN_V6_INTROFFSET_2);
> readb(base + ICS_ARCIN_V6_INTROFFSET_1);
>
> This sequence of code does:
>
> 1. enable interrupt 1
> 2. disable interrupt 2
> 3. enable interrupt 2
> 4. disable interrupt 1
>
> which results in the interrupt for the second channel being enabled -
> leaving channel 1 blocked.
>
> Firstly, icside shares its two IDE channels with one DMA engine - so it's
> a simplex interface. IDE supports those (or did when the code was written)
> serializing requests between the two interfaces. libata does not.
>
> Secondly, the interrupt lines on icside float when there's no drive connected
> or when the drive has its NIEN bit set, which means that you get spurious
> screaming interrupts which can kill off all expansion card interrupts on
> the machine unless you disable the channel interrupt on the card.
>
> Since libata can not serialize the operation of the two channels like IDE
> can, the libata version of the icside driver does not contain the interrupt
> stearing logic. Instead, it looks at the status after reset, and if
> nothing was found on that channel, it masks the interrupt from that
> channel.
This patch reverts changes done in commit dff8817 (I became confused due to
non-standard & undocumented ->maskproc method, anyway sorry about that).
Noticed-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-disk_proc.c')
0 files changed, 0 insertions, 0 deletions