RE: RFC: PATCH TI81xx fix MUSB software mode setting

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

 



> ----- Original Message -----
> From: Andrea Scian [mailto:rnd4@xxxxxxxxxxxx]
> Sent: Monday, June 18, 2012 08:25 PM
> To: linux-omap@xxxxxxxxxxxxxxx <linux-omap@xxxxxxxxxxxxxxx>
> Subject: RFC: PATCH TI81xx fix MUSB software mode setting
> 
> 
> Dear all,
> 
> when configuring our platform (DM8148 based) to work with 
> USB0 as device and USB1 as host I've found some problems.

It seems that you created the patch against the ti-psp release, there
is another way to achieve this (one port as host and other port as device). 
Please refer to release/user's guide.
Moreover, you should create a patch against mainline, where the musb_dsps.c is
used instead of ti81xx.c, where there is no host-only or device-only mode, by 
default OTG mode is used.

> It was fine if I configure both as device or both as host or 
> enable only one port, but configure both in different modes 
> lead to a not working configuration.
> After a bit of debug I've found that probably the problem is inside
> ti81xx_musb_set_mode() because this configure the controller 
> but does not set musb->board_mode. IIUC, without setting this 
> structure the whole musb generic state machine does not work 
> correctly.
> Attached you can find the patch that fixed the problem on our 
> board. I hope -this can help others too and can be integrated 
> inside the main tree.
> Feel free to comment and tell me if I've done something wrong.
> 
> I hope the the patch format is quite correct for you.
> 
> Best Regards,
> 
> 
> -- 
> 
> Andrea SCIAN
> --
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux