Skip to contentSkip to conversation

spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info

PATCH Applied Tomoya MORINAGA 2 participants 4 messages Dec 9, 2011 – Mar 9, 2012 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info

---
 drivers/spi/spi-topcliff-pch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/spi/spi-topcliff-pch.c +2 -1
index 99ec279..fcd9462 100644
@@ -920,7 +920,8 @@ static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
 	dma_cap_set(DMA_SLAVE, mask);
 
 	/* Get DMA's dev information */
-	dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(12, 0));
+	dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number,
+				       PCI_DEVFN(12, 0));
 
 	/* Set Tx DMA */
 	param = &dma->param_tx;
Signature · 1 line
1.7.4.4
#1 lore raw

Hi Grant.

More than a month has been passed since I posted the following patches. However still not reviewed yet.

[PATCH 1/4] spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info
[PATCH 2/4] spi-topcliff-pch: Fix issue for transmitting over 4KByte [PATCH 3/4][RESEND] spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[PATCH 4/4] spi-topcliff-pch: add recovery processing in case wait-event timeout

Could you review these ?

thanks,
tomoya

2011/12/9 Tomoya MORINAGA <[email protected]>:

Quoted 20 lines

---
 drivers/spi/spi-topcliff-pch.c |    3 ++-

 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/spi/spi-topcliff-pch.c +2 -2
index 99ec279..fcd9462 100644
@@ -920,7 +920,8 @@ static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
        dma_cap_set(DMA_SLAVE, mask);
 
        /* Get DMA's dev information */
-       dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(12, 0));
+       dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number,
+                                      PCI_DEVFN(12, 0));
 
        /* Set Tx DMA */
        param = &dma->param_tx;
--
Quoted 2 lines

1.7.4.4

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

#2 lore raw
Quoted 5 lines · Tomoya MORINAGA

Hi Grant.

More than a month has been passed since I posted the following patches. However still not reviewed yet.

Quoted 8 lines

[PATCH 1/4] spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info
[PATCH 2/4] spi-topcliff-pch: Fix issue for transmitting over 4KByte [PATCH 3/4][RESEND] spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[PATCH 4/4] spi-topcliff-pch: add recovery processing in case wait-event timeout

Could you review these ?

I'm working through my backlog now. A big part of the problem is my method of dealing with pending patches really sucked. I've switched to using notmuch-vim, which seems to be a much better system for tracking email that I need to pay attention to.

g.

Quoted 27 lines

thanks,
tomoya

2011/12/9 Tomoya MORINAGA <[email protected]>:

Quoted 22 lines

---
 drivers/spi/spi-topcliff-pch.c |    3 ++-

 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/spi/spi-topcliff-pch.c +2 -2
index 99ec279..fcd9462 100644
@@ -920,7 +920,8 @@ static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
        dma_cap_set(DMA_SLAVE, mask);
 
        /* Get DMA's dev information */
-       dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(12, 0));
+       dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number,
+                                      PCI_DEVFN(12, 0));
 
        /* Set Tx DMA */
        param = &dma->param_tx;
--

1.7.4.4

Signature · 2 lines
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies,Ltd.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

_______________________________________________
spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Applied
#3 lore raw
In reply to Tomoya MORINAGA
Quoted 10 lines · Tomoya MORINAGA
---
 drivers/spi/spi-topcliff-pch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/spi/spi-topcliff-pch.c +0 -0
index 99ec279..fcd9462 100644

drivers/spi/spi-topcliff-pch.c static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) · line 924

Quoted 6 lines
drivers/spi/spi-topcliff-pch.c +2 -1
@@ -920,7 +920,8 @@ static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
 	dma_cap_set(DMA_SLAVE, mask);
 
 	/* Get DMA's dev information */
-	dma_dev = pci_get_bus_and_slot(2, PCI_DEVFN(12, 0));
+	dma_dev = pci_get_bus_and_slot(data->board_dat->pdev->bus->number,
+				       PCI_DEVFN(12, 0));

Applied, thanks

g.