All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit
@ 2011-04-19  2:47 Zhao Chenhui
  2011-04-29 15:41 ` Kumar Gala
  2011-05-12 20:05 ` Remy Bohmer
  0 siblings, 2 replies; 4+ messages in thread
From: Zhao Chenhui @ 2011-04-19  2:47 UTC (permalink / raw)
  To: u-boot

Convert the PCI base address into a virtual address.

Signed-off-by: Zhao Chenhui <b35336@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
---
 drivers/usb/host/ehci-pci.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index a038b6c..e400aee 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -43,7 +43,6 @@ static struct pci_device_id ehci_pci_ids[] = {
 int ehci_hcd_init(void)
 {
 	pci_dev_t pdev;
-	uint32_t addr;
 
 	pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
 	if (pdev == -1) {
@@ -51,8 +50,8 @@ int ehci_hcd_init(void)
 		return -1;
 	}
 
-	pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &addr);
-	hccr = (struct ehci_hccr *)addr;
+	hccr = (struct ehci_hccr *)pci_map_bar(pdev,
+			PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
 	hcor = (struct ehci_hcor *)((uint32_t) hccr +
 			HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
-- 
1.6.4.1

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

* [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit
  2011-04-19  2:47 [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit Zhao Chenhui
@ 2011-04-29 15:41 ` Kumar Gala
  2011-05-11 10:41   ` Kumar Gala
  2011-05-12 20:05 ` Remy Bohmer
  1 sibling, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2011-04-29 15:41 UTC (permalink / raw)
  To: u-boot


On Apr 18, 2011, at 9:47 PM, Zhao Chenhui wrote:

> Convert the PCI base address into a virtual address.
> 
> Signed-off-by: Zhao Chenhui <b35336@freescale.com>
> Signed-off-by: Li Yang <leoli@freescale.com>
> ---
> drivers/usb/host/ehci-pci.c |    5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)

Remy,

any comments or acceptance of this patch?

- k

> 
> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
> index a038b6c..e400aee 100644
> --- a/drivers/usb/host/ehci-pci.c
> +++ b/drivers/usb/host/ehci-pci.c
> @@ -43,7 +43,6 @@ static struct pci_device_id ehci_pci_ids[] = {
> int ehci_hcd_init(void)
> {
> 	pci_dev_t pdev;
> -	uint32_t addr;
> 
> 	pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
> 	if (pdev == -1) {
> @@ -51,8 +50,8 @@ int ehci_hcd_init(void)
> 		return -1;
> 	}
> 
> -	pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &addr);
> -	hccr = (struct ehci_hccr *)addr;
> +	hccr = (struct ehci_hccr *)pci_map_bar(pdev,
> +			PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
> 	hcor = (struct ehci_hcor *)((uint32_t) hccr +
> 			HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
> 
> -- 
> 1.6.4.1
> 
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

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

* [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit
  2011-04-29 15:41 ` Kumar Gala
@ 2011-05-11 10:41   ` Kumar Gala
  0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2011-05-11 10:41 UTC (permalink / raw)
  To: u-boot

ping??
- k

On Apr 29, 2011, at 10:41 AM, Kumar Gala wrote:

> 
> On Apr 18, 2011, at 9:47 PM, Zhao Chenhui wrote:
> 
>> Convert the PCI base address into a virtual address.
>> 
>> Signed-off-by: Zhao Chenhui <b35336@freescale.com>
>> Signed-off-by: Li Yang <leoli@freescale.com>
>> ---
>> drivers/usb/host/ehci-pci.c |    5 ++---
>> 1 files changed, 2 insertions(+), 3 deletions(-)
> 
> Remy,
> 
> any comments or acceptance of this patch?
> 
> - k
> 
>> 
>> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
>> index a038b6c..e400aee 100644
>> --- a/drivers/usb/host/ehci-pci.c
>> +++ b/drivers/usb/host/ehci-pci.c
>> @@ -43,7 +43,6 @@ static struct pci_device_id ehci_pci_ids[] = {
>> int ehci_hcd_init(void)
>> {
>> 	pci_dev_t pdev;
>> -	uint32_t addr;
>> 
>> 	pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
>> 	if (pdev == -1) {
>> @@ -51,8 +50,8 @@ int ehci_hcd_init(void)
>> 		return -1;
>> 	}
>> 
>> -	pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &addr);
>> -	hccr = (struct ehci_hccr *)addr;
>> +	hccr = (struct ehci_hccr *)pci_map_bar(pdev,
>> +			PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
>> 	hcor = (struct ehci_hcor *)((uint32_t) hccr +
>> 			HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
>> 
>> -- 
>> 1.6.4.1
>> 
>> 
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

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

* [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit
  2011-04-19  2:47 [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit Zhao Chenhui
  2011-04-29 15:41 ` Kumar Gala
@ 2011-05-12 20:05 ` Remy Bohmer
  1 sibling, 0 replies; 4+ messages in thread
From: Remy Bohmer @ 2011-05-12 20:05 UTC (permalink / raw)
  To: u-boot

Hi,

2011/4/19 Zhao Chenhui <b35336@freescale.com>:
> Convert the PCI base address into a virtual address.
>
> Signed-off-by: Zhao Chenhui <b35336@freescale.com>
> Signed-off-by: Li Yang <leoli@freescale.com>
> ---
> ?drivers/usb/host/ehci-pci.c | ? ?5 ++---
> ?1 files changed, 2 insertions(+), 3 deletions(-)

Applied to u-boot-usb.
Thanks.

Remy

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

end of thread, other threads:[~2011-05-12 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19  2:47 [U-Boot] [PATCH] ehci-pci: Fix PCI EHCI driver for 36-bit Zhao Chenhui
2011-04-29 15:41 ` Kumar Gala
2011-05-11 10:41   ` Kumar Gala
2011-05-12 20:05 ` Remy Bohmer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.