[OpenWrt-Devel] AsiaRF AWM002 (ramips) USB and reboot broken at r44044

John Crispin blogic at openwrt.org
Tue Feb 3 03:20:44 EST 2015



On 03/02/2015 09:01, Christian Lamparter wrote:
> On Tue, Feb 3, 2015 at 8:43 AM, John Crispin <blogic at openwrt.org>
> wrote:
>> 
>> On 03/02/2015 08:36, Christian Lamparter wrote:
>>> Thing is: ralink-phy.c can use some more work!
>> 
>> elaborate on what needs work
> 
> Link to github-source: 
> <https://github.com/openwrt-mirror/openwrt/blob/master/target/linux/ramips/patches-3.14/0037-USB-phy-add-ralink-SoC-driver.patch#L102>
>
> 
>> if (OTG_STATE_B_HOST) { rt_sysc_m32(0, RT_SYSCFG1_USB0_HOST_MODE,
>> RT_SYSC_REG_SYSCFG1); if (!IS_ERR(rsthost)) 
>> reset_control_deassert(rsthost); } else { ... 
>> rt_sysc_m32(RT_SYSCFG1_USB0_HOST_MODE, 0, RT_SYSC_REG_SYSCFG1); 
>> if (!IS_ERR(rstdev)) reset_control_deassert(rstdev); }
> 
> What about OTG, Is it not supported? The constant
> (OTG_STATE_B_HOST) will always evaluate to true.

OTG is not supported and never has until now due to missing drivers.

try to make a statement rather than encapsulating what you are trying
to say in a question please, because i still don't get what
you mean with "needs work"


> 
> Note: For the M2M, the vendor disabled the USB DEV (by setting the 
> reset signal in the boot loader). They did this probably to save
> power (this unit has a battery). And unfortunately: if the USB DEV 
> reset bit is not cleared, then the connected USB device on the USB 
> HOST (of the ramips) is not detected.
> 
> Regards, Christian _______________________________________________ 
> openwrt-devel mailing list openwrt-devel at lists.openwrt.org 
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list