On Tue, Feb 26, 2013 at 10:59:12PM +0400, Sergei Shtylyov wrote: > Hello. > > On 26-02-2013 13:34, Felipe Balbi wrote: > > >gadget's device pointer now is guaranteed to > >have valid dma_mask, dma_parms and coherent_dma_mask > >fields since we're always copying from our > >parent device. > > >Signed-off-by: Felipe Balbi <balbi@xxxxxx> > >--- > > drivers/usb/gadget/udc-core.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > >diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c > >index 8a1eeb2..08d5df7 100644 > >--- a/drivers/usb/gadget/udc-core.c > >+++ b/drivers/usb/gadget/udc-core.c > >@@ -185,6 +185,10 @@ int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget) > > > > dev_set_name(&gadget->dev, "gadget"); > > > >+ dma_set_coherent_mas(&gadget->dev, parent->coherent_dma_mask); > > s/mas/mask/ right, that I fixed earlier today ;-) http://git.kernel.org/?p=linux/kernel/git/balbi/usb.git;a=commitdiff;h=517efc0e7fdbf0fb318ef2b0d28d1615d22513c0 For whatever reason, I ended up sending the older version. Guess I forgot to format-patch again :-s -- balbi
Attachment:
signature.asc
Description: Digital signature