[PATCH] sata_mv: remove iounmap in mv_platform_remove and use devm_iomap

2008-02-18 Thread Saeed Bishara
this will fix crash bug when doing rmmod to the driver, this is because the port_stop function get called later and it could access the device's registers. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions

Re: [PATCH 2/2] sata_mv: remove iounmap in mv_platform_remove

2008-02-14 Thread saeed bishara
this will fix crash bug when doing rmmod to the driver, this is because the port_stop function get called later and it could access the device's registers. Where does the iounmap() now get done instead of that place? nowhere, the /proc/iomem still shows that sata_mv uses io mempry

Re: [PATCH 2/2] sata_mv: remove iounmap in mv_platform_remove

2008-02-14 Thread saeed bishara
Mmm.. sounds like a bug to me. Possibly two bugs: 1. the ioremap() should fail if the range is already mapped, and 2. we should free the resources on module unload. I suppose this would be mostly automatic if the code simply were to use devm_ioremap() instead of ioremap(). my

[PATCH 1/2] sata_mv: use hpriv-base instead of the host-iomap

2008-02-13 Thread Saeed Bishara
this fixes crash bug as the iomap table is not valid for integrated controllers. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 04b5717..9c9a5b0

[PATCH 2/2] sata_mv: remove iounmap in mv_platform_remove

2008-02-13 Thread Saeed Bishara
this will fix crash bug when doing rmmod to the driver, this is because the port_stop function get called later and it could access the device's registers. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff

Re: sata_mv: problems using it as a platform_driver

2008-02-11 Thread Saeed Bishara
Mark Lord wrote: Byron Bradley wrote: I'm having problems getting the sata_mv driver working as a platform driver on the QNAP TS-209 and the Linkstation/Kurobox (both are Marvell Orion 88f5182 based devices). First of all it would oops in mv_port_start() while calling dma_pool_alloc(), the

Re: sata_mv: problems using it as a platform_driver

2008-02-11 Thread Saeed Bishara
host-private_data = hpriv; hpriv-n_ports = n_ports; -host-iomap = NULL; hpriv-base = ioremap(res-start, res-end - res-start + 1); +host-iomap = hpriv-base; hpriv-base -= MV_SATAHC0_REG_BASE; rc = mv_create_dma_pools(hpriv, pdev-dev); .. Well, that's

Re: [PATCH 2/2 v3] sata_mv: Support SoC controllers

2008-02-01 Thread saeed bishara
Unless Paul M objects (pata_platform maintainer), I will rename linux/pata_platform.h to linux/ata_platform.h, and we can put your mv_sata_platform_data structure in there. seems better idea. now I have a patch for the arm subsystem that depends on this patch, how can I make sure that the new

[PATCH 2/2 v3] sata_mv: Support SoC controllers

2008-01-30 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] Marvell's Orion SoC includes SATA controllers based on Marvell's PCI-to-SATA 88SX controllers. This patch extends the libATA sata_mv driver to support those controllers. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c | 365

[PATCH 1/2 v3] sata_mv: Remove PCI dependency

2008-01-30 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] The integrated SATA controller is connected directly to the SoC's internal bus, not via PCI interface. this patch removes the dependency on the PCI interface. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/Kconfig |2 +- drivers/ata

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2008-01-29 Thread saeed bishara
Hi Jeff, what is the status of this patch? I'd like to have this patch, and a second part that adds support for the SoC devices, to be merged into 2.6.25. please note that my patch collides with Mark's patches, I don't mind to rebase mine above Mark's patches, but, in that case I need to wait

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2008-01-29 Thread saeed bishara
ACK the changes; but both git-am(1) and patch(1) report that this is a corrupt patch. patch(1) says, [EMAIL PROTECTED] libata-dev]$ patch -sp1 /g/tmp/mbox patch: malformed patch at line 151: *hpriv, int idx, (patch is generally more forgiving than git-am) ok, I'll send the patch

Re: [PATCH 1/2 v2] sata_mv: Remove PCI dependency

2008-01-29 Thread saeed bishara
Hi Jeff, I've the two patches ready and rebased on the version that you have in the master branch, specifically on the commit libata: convert to chained sg. Do you prefer to get those rebased patches? Saeed - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2008-01-17 Thread saeed bishara
On 1/16/08, Mark Lord [EMAIL PROTECTED] wrote: saeed bishara wrote: I attached the new patch .. Try again, please. This time, post the patch *inline* in the body of the email, so that it can more easily be seen, read, and commented on. Beware of many email clients that mangle inline

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2008-01-16 Thread saeed bishara
On 1/16/08, Jeff Garzik [EMAIL PROTECTED] wrote: saeed bishara wrote: - if (unlikely(irq_stat PCI_ERR)) { + if (unlikely(irq_stat PCI_ERR) HAS_PCI(host)) { mv_pci_error(host, mmio); handled = 1; goto out_unlock;/* skip all other HC irq

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2008-01-09 Thread saeed bishara
Here is the updated patch according your comments: From af124a0fd4984db4fbc8638e0af4e6a41561588d Mon Sep 17 00:00:00 2001 From: Saeed Bishara [EMAIL PROTECTED] Date: Sun, 2 Dec 2007 10:43:10 +0200 Subject: [PATCH] sata_mv: Remove PCI dependency The integrated SATA controller is connected

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2007-12-25 Thread saeed bishara
Here is the updated patch according your comments: From af124a0fd4984db4fbc8638e0af4e6a41561588d Mon Sep 17 00:00:00 2001 From: Saeed Bishara [EMAIL PROTECTED] Date: Sun, 2 Dec 2007 10:43:10 +0200 Subject: [PATCH] sata_mv: Remove PCI dependency The integrated SATA controller is connected

[PATCH 1/1] [LibATA] sata_mv: Remove dumplicated host template

2007-12-16 Thread Saeed Bishara
The mv5_sht and mv6_sht structures are identical. This patch removes one of those structures and renames the other to mv_sht. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c | 22 ++ 1 files changed, 2 insertions(+), 20 deletions(-) diff --git

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2007-12-05 Thread saeed bishara
On 12/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: Saeed Bishara [EMAIL PROTECTED] The integrated SATA controller is connected directly to the SoC's internal bus, not via PCI interface. this patch removes the dependency on the PCI interface. Signed-off-by: Saeed Bishara [EMAIL

Re: [PATCH 2/2] [libata] sata_mv: Support integrated controllers

2007-12-04 Thread saeed bishara
On 12/3/07, saeed bishara [EMAIL PROTECTED] wrote: This patch won't apply, because sata_mv.c was just recently updated to fix 7042 PCIe support. You'll have to rebase this patch against that. ok. I'll check that. Here is the rebased patch: Marvell's Orion SoC includes SATA controllers

Re: [PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2007-12-04 Thread saeed bishara
On 12/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: rebased the patch with the latest updates: The integrated SATA controller is connected directly to the SoC's internal bus, not via PCI interface. this patch removes the dependency on the PCI interface. Signed-off-by: Saeed Bishara [EMAIL

[PATCH 0/2] [libata] sata_mv: Add support for Marvell's integrated SATA controller

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] This patch series adds support for the integrated SATA controller that can be found in some of Marvell's SoC's. This controller is based on the 88SX7042, but it connected directly to the internal bus of the SoC and not via PCI. - To unsubscribe from

[PATCH 2/2] [libata] sata_mv: Support integrated controllers

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] Marvell's Orion SoC includes SATA controllers based on Marvell's PCI-to-SATA 88SX controllers. The integrated SATA unit is connected directly to the internal bus of the Orion SoC, and not via PCI. This patch extends the libATA sata_mv driver to support those

[PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] The integrated SATA controller is connected directly to the SoC's internal bus, not via PCI interface. this patch removes the dependency on the PCI interface. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/Kconfig |2 +- drivers/ata

[PATCH 2/2] [libata] sata_mv: Support integrated controllers

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] Marvell's Orion SoC includes SATA controllers based on Marvell's PCI-to-SATA 88SX controllers. The integrated SATA unit is connected directly to the internal bus of the Orion SoC, and not via PCI. This patch extends the libATA sata_mv driver to support those

[PATCH 1/2] [libata] sata_mv: Remove PCI dependency

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] The integrated SATA controller is connected directly to the SoC's internal bus, not via PCI interface. this patch removes the dependency on the PCI interface. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/Kconfig |2 +- drivers/ata

[PATCH 0/2] [libata] sata_mv: Add support for Marvell's integrated SATA controller

2007-12-02 Thread saeed . bishara
From: Saeed Bishara [EMAIL PROTECTED] This patch series adds support for the integrated SATA controller that can be found in some of Marvell's SoC's. This controller is based on the 88SX7042, but it connected directly to the internal bus of the SoC and not via PCI. - To unsubscribe from

Re: [PATCH 2/2] [libata] sata_mv: Support integrated controllers

2007-12-02 Thread saeed bishara
This patch won't apply, because sata_mv.c was just recently updated to fix 7042 PCIe support. You'll have to rebase this patch against that. ok. I'll check that. Also, I'm not sure I understand why there's a need for the new sata_mv.h file ? This file contains the definition of the data

[PATCH] [libata] sata_mv: fix compilation error when enabling DEBUG

2007-11-27 Thread Saeed Bishara
From: Saeed Bishara [EMAIL PROTECTED] use sstatus instead status. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index a43f64d..97c3e11 100644

[PATCH] [libata] sata_mv: fix compilation error when enabling DEBUG

2007-11-27 Thread Saeed Bishara
From: Saeed Bishara [EMAIL PROTECTED] use sstatus instead status. Signed-off-by: Saeed Bishara [EMAIL PROTECTED] --- drivers/ata/sata_mv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index a43f64d..97c3e11 100644