LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2/6] scc_pata: add ->{in,out}put_data methods
@ 2008-03-30 19:41 Bartlomiej Zolnierkiewicz
2008-04-16 17:35 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-03-30 19:41 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/pci/scc_pata.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Index: b/drivers/ide/pci/scc_pata.c
===================================================================
--- a/drivers/ide/pci/scc_pata.c
+++ b/drivers/ide/pci/scc_pata.c
@@ -574,6 +574,36 @@ static int __devinit init_setup_scc(stru
return ide_setup_pci_device(dev, d);
}
+static void scc_input_data(ide_drive_t *drive, void *buf, unsigned int len)
+{
+ unsigned long data_addr = drive->hwif->io_ports.data_addr;
+
+ len++;
+
+ if (drive->io_32bit) {
+ scc_ide_insl(data_addr, buf, len / 4);
+
+ if ((len & 3) >= 2)
+ scc_ide_insw(data_addr, (u8 *)buf + (len & ~3), 1);
+ } else
+ scc_ide_insw(data_addr, buf, len / 2);
+}
+
+static void scc_output_data(ide_drive_t *drive, void *buf, unsigned int len)
+{
+ unsigned long data_addr = drive->hwif->io_ports.data_addr;
+
+ len++;
+
+ if (drive->io_32bit) {
+ scc_ide_outsl(data_addr, buf, len / 4);
+
+ if ((len & 3) >= 2)
+ scc_ide_outsw(data_addr, (u8 *)buf + (len & ~3), 1);
+ } else
+ scc_ide_outsw(data_addr, buf, len / 2);
+}
+
/**
* init_mmio_iops_scc - set up the iops for MMIO
* @hwif: interface to set up
@@ -589,6 +619,9 @@ static void __devinit init_mmio_iops_scc
ide_set_hwifdata(hwif, ports);
+ hwif->input_data = scc_input_data;
+ hwif->output_data = scc_output_data;
+
hwif->INB = scc_ide_inb;
hwif->INW = scc_ide_inw;
hwif->INSW = scc_ide_insw;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/6] scc_pata: add ->{in,out}put_data methods
2008-03-30 19:41 [PATCH 2/6] scc_pata: add ->{in,out}put_data methods Bartlomiej Zolnierkiewicz
@ 2008-04-16 17:35 ` Sergei Shtylyov
2008-04-16 22:09 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2008-04-16 17:35 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-kernel
Bartlomiej Zolnierkiewicz wrote:
> There should be no functional changes caused by this patch.
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Index: b/drivers/ide/pci/scc_pata.c
> ===================================================================
> --- a/drivers/ide/pci/scc_pata.c
> +++ b/drivers/ide/pci/scc_pata.c
> @@ -574,6 +574,36 @@ static int __devinit init_setup_scc(stru
> return ide_setup_pci_device(dev, d);
> }
This patch in the pata-2.6 series doesn't apply anymore after the patch
getting rid of ide_setup_pci_device() call was merged.
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/6] scc_pata: add ->{in,out}put_data methods
2008-04-16 17:35 ` Sergei Shtylyov
@ 2008-04-16 22:09 ` Bartlomiej Zolnierkiewicz
0 siblings, 0 replies; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-04-16 22:09 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: linux-ide, linux-kernel
On Wednesday 16 April 2008, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:
>
> > There should be no functional changes caused by this patch.
>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>
> > Index: b/drivers/ide/pci/scc_pata.c
> > ===================================================================
> > --- a/drivers/ide/pci/scc_pata.c
> > +++ b/drivers/ide/pci/scc_pata.c
> > @@ -574,6 +574,36 @@ static int __devinit init_setup_scc(stru
> > return ide_setup_pci_device(dev, d);
> > }
>
> This patch in the pata-2.6 series doesn't apply anymore after the patch
> getting rid of ide_setup_pci_device() call was merged.
I updated it in IDE tree while merging Akira's patch but it turned out
that "take 2" was needed anyway...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-16 22:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 19:41 [PATCH 2/6] scc_pata: add ->{in,out}put_data methods Bartlomiej Zolnierkiewicz
2008-04-16 17:35 ` Sergei Shtylyov
2008-04-16 22:09 ` 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).