[PATCH 0/4] staging: dwc2: DMA improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,

here's some more dma fixes for the dwc2 driver. The second patch of this
series is the same as in my previous series, the others are new.

> staging: dwc2: Set a default dma_mask for platform devices

It would be great if at least this first patch in this series could be
included in 3.10, since it is needed to make the dwc2 driver work on the
ralink rt3052 target.
Before, the plan was to set up the dma mask in MIPS platform code, but
because of a similar change in ehci and the uglyness of the code for
that, the plan for that infrastructure was dropped. This patch makes the
setting of the dma_mask happen in the same way as the patch Stephen
Warren (set device dma_mask without reference to global data), so
perhaps it can be pushed to 3.10 together with that one?

> staging: dwc2: disable dma when no dma_mask was setup
This patch might not be strictly required if the previous one is
accepted, but it seems reasonable to just check this to be on the safe
side (in case a bus driver messes up, for example).

> staging: dwc2: when dma is disabled, clear hcd->self.uses_dma
This is a different approach to another patch in my previous series.

> staging: dwc2: Don't touch the dma_mask when dma is disabled
This removes some messing with the dma_mask that I think is unneeded,
but it's not very important in any way.

Thanks,

Matthijs

 drivers/staging/dwc2/hcd.c      | 15 ++++++++++++---
 drivers/staging/dwc2/platform.c |  8 ++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux