lkml.org 
[lkml]   [2019]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/6] usb: musb: dma: Correct parameter passed to IRQ handler
Hi,


Le ven., oct. 25, 2019 at 13:47, Paul Cercueil <paul@crapouillou.net> a
écrit :
> 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>
> ---
>
> Notes:
> v2: Rebase on 4.5-rc4

Typo in the changelog of this patch and the following ones: it was
rebased on 5.4-rc4, obviously.


>
> 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.23.0
>


\
 
 \ /
  Last update: 2019-10-30 12:25    [W:0.277 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site