Linux-USB Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/3] usb: musb: dma: Correct parameter passed to IRQ handler
@ 2019-06-20 17:34 Paul Cercueil
  2019-06-20 17:34 ` [PATCH 2/3] usb: musb: dma: Add support for shared IRQ Paul Cercueil
  2019-06-20 17:34 ` [PATCH 3/3] usb: musb: jz4740: Add support for DMA Paul Cercueil
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Cercueil @ 2019-06-20 17:34 UTC (permalink / raw)
  To: Bin Liu; +Cc: od, linux-usb, linux-kernel, Paul Cercueil, Artur Rojek

The IRQ handler was passed a pointer to a struct dma_controller, but the
argument was then casted to a pointer to a struct musb_dma_controller.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
---
 drivers/usb/musb/musbhsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c
index 5fc6825745f2..2d3751d885b4 100644
--- a/drivers/usb/musb/musbhsdma.c
+++ b/drivers/usb/musb/musbhsdma.c
@@ -425,7 +425,7 @@ struct dma_controller *musbhs_dma_controller_create(struct musb *musb,
 	controller->controller.channel_abort = dma_channel_abort;
 
 	if (request_irq(irq, dma_controller_irq, 0,
-			dev_name(musb->controller), &controller->controller)) {
+			dev_name(musb->controller), controller)) {
 		dev_err(dev, "request_irq %d failed!\n", irq);
 		musb_dma_controller_destroy(&controller->controller);
 
-- 
2.21.0.593.g511ec345e18


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20 17:34 [PATCH 1/3] usb: musb: dma: Correct parameter passed to IRQ handler Paul Cercueil
2019-06-20 17:34 ` [PATCH 2/3] usb: musb: dma: Add support for shared IRQ Paul Cercueil
2019-06-20 17:34 ` [PATCH 3/3] usb: musb: jz4740: Add support for DMA Paul Cercueil

Linux-USB Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \
		linux-usb@vger.kernel.org linux-usb@archiver.kernel.org
	public-inbox-index linux-usb


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb


AGPL code for this site: git clone https://public-inbox.org/ public-inbox