Re: [U-Boot] [PATCH 2/2] usb: gadget: sdp: fix pointer casts for 64bit archs

2018-02-15 Thread Lukasz Majewski
Hi Andre, > Hi Lukasz, > > On 15/02/18 09:49, Lukasz Majewski wrote: > > Hi Andre, > > > >> The SDP protocol contains multiple 32bit pointers. Add a helper > >> function to get a valid pointer from these values and use it. > > > > Is there any special rationale behind this? > > It's been

Re: [U-Boot] [PATCH 2/2] usb: gadget: sdp: fix pointer casts for 64bit archs

2018-02-15 Thread Andre Heider
Hi Lukasz, On 15/02/18 09:49, Lukasz Majewski wrote: Hi Andre, The SDP protocol contains multiple 32bit pointers. Add a helper function to get a valid pointer from these values and use it. Is there any special rationale behind this? It's been a while, but if i remember correctly SDP worked

Re: [U-Boot] [PATCH 2/2] usb: gadget: sdp: fix pointer casts for 64bit archs

2018-02-15 Thread Lukasz Majewski
Hi Andre, > The SDP protocol contains multiple 32bit pointers. Add a helper > function to get a valid pointer from these values and use it. Is there any special rationale behind this? > > Signed-off-by: Andre Heider > --- > drivers/usb/gadget/f_sdp.c | 13 + > 1 file changed, 9 in

[U-Boot] [PATCH 2/2] usb: gadget: sdp: fix pointer casts for 64bit archs

2018-02-14 Thread Andre Heider
The SDP protocol contains multiple 32bit pointers. Add a helper function to get a valid pointer from these values and use it. Signed-off-by: Andre Heider --- drivers/usb/gadget/f_sdp.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/f_sdp.c b/