All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long
@ 2016-05-12  6:57 Michal Simek
  2016-05-12  8:14 ` Alexander Graf
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2016-05-12  6:57 UTC (permalink / raw)
  To: u-boot

From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>

Correct type of varibale base to unsigned long as
keeping it as int causes usb failures if MSB of
the base address is set.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 include/dwc3-uboot.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h
index 09ff8a74d669..7af2ad11e4ed 100644
--- a/include/dwc3-uboot.h
+++ b/include/dwc3-uboot.h
@@ -13,7 +13,7 @@
 #include <linux/usb/otg.h>
 
 struct dwc3_device {
-	int base;
+	unsigned long base;
 	enum usb_dr_mode dr_mode;
 	u32 maximum_speed;
 	unsigned tx_fifo_resize:1;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long
  2016-05-12  6:57 [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long Michal Simek
@ 2016-05-12  8:14 ` Alexander Graf
  2016-06-02 10:59   ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Graf @ 2016-05-12  8:14 UTC (permalink / raw)
  To: u-boot



On 12.05.16 08:57, Michal Simek wrote:
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> 
> Correct type of varibale base to unsigned long as
> keeping it as int causes usb failures if MSB of
> the base address is set.
> 
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

I can verify that with this patch the "usb start" doesn't crash the
system anymore and it seems to start doing something intelligible (I
don't have usb devices plugged in, so can't verify whether they also work).

Tested-by: Alexander Graf <agraf@suse.de>


Alex

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long
  2016-05-12  8:14 ` Alexander Graf
@ 2016-06-02 10:59   ` Michal Simek
  2016-06-02 12:27     ` Marek Vasut
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2016-06-02 10:59 UTC (permalink / raw)
  To: u-boot

Hi Marek,

On 12.5.2016 10:14, Alexander Graf wrote:
> 
> 
> On 12.05.16 08:57, Michal Simek wrote:
>> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>>
>> Correct type of varibale base to unsigned long as
>> keeping it as int causes usb failures if MSB of
>> the base address is set.
>>
>> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> 
> I can verify that with this patch the "usb start" doesn't crash the
> system anymore and it seems to start doing something intelligible (I
> don't have usb devices plugged in, so can't verify whether they also work).
> 
> Tested-by: Alexander Graf <agraf@suse.de>

Can you please look at it?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160602/75377091/attachment.sig>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long
  2016-06-02 10:59   ` Michal Simek
@ 2016-06-02 12:27     ` Marek Vasut
  2016-06-02 13:17       ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Marek Vasut @ 2016-06-02 12:27 UTC (permalink / raw)
  To: u-boot

On 06/02/2016 12:59 PM, Michal Simek wrote:
> Hi Marek,

Hi,

> On 12.5.2016 10:14, Alexander Graf wrote:
>>
>>
>> On 12.05.16 08:57, Michal Simek wrote:
>>> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>>>
>>> Correct type of varibale base to unsigned long as
>>> keeping it as int causes usb failures if MSB of
>>> the base address is set.
>>>
>>> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>
>> I can verify that with this patch the "usb start" doesn't crash the
>> system anymore and it seems to start doing something intelligible (I
>> don't have usb devices plugged in, so can't verify whether they also work).
>>
>> Tested-by: Alexander Graf <agraf@suse.de>
> 
> Can you please look at it?

It's in u-boot-usb, PR is coming

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long
  2016-06-02 12:27     ` Marek Vasut
@ 2016-06-02 13:17       ` Michal Simek
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2016-06-02 13:17 UTC (permalink / raw)
  To: u-boot

On 2.6.2016 14:27, Marek Vasut wrote:
> On 06/02/2016 12:59 PM, Michal Simek wrote:
>> Hi Marek,
> 
> Hi,
> 
>> On 12.5.2016 10:14, Alexander Graf wrote:
>>>
>>>
>>> On 12.05.16 08:57, Michal Simek wrote:
>>>> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>>>>
>>>> Correct type of varibale base to unsigned long as
>>>> keeping it as int causes usb failures if MSB of
>>>> the base address is set.
>>>>
>>>> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
>>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>>
>>> I can verify that with this patch the "usb start" doesn't crash the
>>> system anymore and it seems to start doing something intelligible (I
>>> don't have usb devices plugged in, so can't verify whether they also work).
>>>
>>> Tested-by: Alexander Graf <agraf@suse.de>
>>
>> Can you please look at it?
> 
> It's in u-boot-usb, PR is coming
> 

Thanks,
Michal

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-02 13:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-12  6:57 [U-Boot] [PATCH] usb: dwc3: Correct datatype of base to unsigned long Michal Simek
2016-05-12  8:14 ` Alexander Graf
2016-06-02 10:59   ` Michal Simek
2016-06-02 12:27     ` Marek Vasut
2016-06-02 13:17       ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.