lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <HE1PR0401MB202883E66CD5E02E6688FAECE3720@HE1PR0401MB2028.eurprd04.prod.outlook.com>
Date:	Wed, 11 May 2016 03:45:46 +0000
From:	Rajesh Bhagat <rajesh.bhagat@....com>
To:	Felipe Balbi <felipe.balbi@...ux.intel.com>,
	"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	Yang-Leo Li <leoyang.li@....com>,
	Sriram Dash <sriram.dash@....com>
Subject: RE: [PATCH] drivers: usb: dwc3 : Configure DMA properties and ops
 from DT



> -----Original Message-----
> From: Felipe Balbi [mailto:felipe.balbi@...ux.intel.com]
> Sent: Wednesday, May 04, 2016 1:28 PM
> To: Rajesh Bhagat <rajesh.bhagat@....com>; linux-usb@...r.kernel.org
> Cc: linux-kernel@...r.kernel.org; gregkh@...uxfoundation.org; Yang-Leo Li
> <leoyang.li@....com>; Sriram Dash <sriram.dash@....com>; Rajesh Bhagat
> <rajesh.bhagat@....com>
> Subject: Re: [PATCH] drivers: usb: dwc3 : Configure DMA properties and ops from DT
> 
> 
> Hi,
> 
> Rajesh Bhagat <rajesh.bhagat@....com> writes:
> > On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly
> > set to be able to do DMA allocations, so use the of_dma_configure()
> > helper to populate the dma properties and assign an appropriate dma_ops.
> >
> > Signed-off-by: Rajesh Bhagat <rajesh.bhagat@....com>
> > Reviewed-by: Yang-Leo Li <leoyang.li@....com>

Hi,

> 
> Cool, nxp is also using dwc3 :-) C'mon Rajesh, send us a glue layer :)
> 

I would surely be sending the glue layer soon :)

> > diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index
> > c679f63..4d5b783 100644
> > --- a/drivers/usb/dwc3/host.c
> > +++ b/drivers/usb/dwc3/host.c
> > @@ -17,6 +17,7 @@
> >
> >  #include <linux/platform_device.h>
> >  #include <linux/usb/xhci_pdriver.h>
> > +#include <linux/of_device.h>
> >
> >  #include "core.h"
> >
> > @@ -32,6 +33,9 @@ int dwc3_host_init(struct dwc3 *dwc)
> >  		return -ENOMEM;
> >  	}
> >
> > +	if (IS_ENABLED(CONFIG_OF) && dwc->dev->of_node)
> > +		of_dma_configure(&xhci->dev, dwc->dev->of_node);
> 
> okay, so we have a long discussion about this going on. You can catch up with it
> starting here:
> 
> http://marc.info/?i=1461612094-30939-1-git-send-email-grygorii.strashko@ti.com
> 
> At least for now, this patch will be applied. We need to have a better solution for this,
> one that helps not only DT platforms.
> 

Thanks for information. 

> --
> balbi

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ