linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] sgiioc4: remove maskproc() method
@ 2008-10-14 20:24 Sergei Shtylyov
  2008-10-15 18:11 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2008-10-14 20:24 UTC (permalink / raw)
  To: bzolnier; +Cc: linux-ide, jeremy

Since the maskproc() method calls either mirror the interrupt en/disable via
the nIEN bit of the device control register done by the IDE core before issuing
a command or unmask the interrupt after a command executed in polled mode (when
interrupt is already not expected), it is pointless to implement this method
by manipulating the nIEN bit...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

---
This patch is against the recent pata-2.6 series...
Phew, these 3 patches have been around since July -- sending out at last...

 drivers/ide/pci/sgiioc4.c |    9 ---------
 1 files changed, 9 deletions(-)

Index: linux-2.6/drivers/ide/pci/sgiioc4.c
===================================================================
--- linux-2.6.orig/drivers/ide/pci/sgiioc4.c
+++ linux-2.6/drivers/ide/pci/sgiioc4.c
@@ -107,13 +107,6 @@ sgiioc4_init_hwif_ports(hw_regs_t * hw, 
 		hw->io_ports.irq_addr = irq_port;
 }
 
-static void
-sgiioc4_maskproc(ide_drive_t * drive, int mask)
-{
-	writeb(ATA_DEVCTL_OBS | (mask ? 2 : 0),
-	       (void __iomem *)drive->hwif->io_ports.ctl_addr);
-}
-
 static int
 sgiioc4_checkirq(ide_hwif_t * hwif)
 {
@@ -567,8 +560,6 @@ static const struct ide_port_ops sgiioc4
 	.set_dma_mode		= sgiioc4_set_dma_mode,
 	/* reset DMA engine, clear IRQs */
 	.resetproc		= sgiioc4_resetproc,
-	/* mask on/off NIEN register */
-	.maskproc		= sgiioc4_maskproc,
 };
 
 static const struct ide_dma_ops sgiioc4_dma_ops = {


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/3] sgiioc4: remove maskproc() method
  2008-10-14 20:24 [PATCH 3/3] sgiioc4: remove maskproc() method Sergei Shtylyov
@ 2008-10-15 18:11 ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-15 18:11 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide, jeremy

On Tuesday 14 October 2008, Sergei Shtylyov wrote:
> Since the maskproc() method calls either mirror the interrupt en/disable via
> the nIEN bit of the device control register done by the IDE core before issuing
> a command or unmask the interrupt after a command executed in polled mode (when
> interrupt is already not expected), it is pointless to implement this method
> by manipulating the nIEN bit...
> 
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> 
> ---
> This patch is against the recent pata-2.6 series...
> Phew, these 3 patches have been around since July -- sending out at last...

Thanks, I applied all three patches.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-15 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 20:24 [PATCH 3/3] sgiioc4: remove maskproc() method Sergei Shtylyov
2008-10-15 18:11 ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).