Re: Origen board hang with functionfs

From: Tushar Behera
Date: Fri Feb 22 2013 - 01:56:03 EST


On 02/22/2013 12:03 AM, John Stultz wrote:
> On 02/20/2013 06:01 PM, John Stultz wrote:
>> Hey Kukjin, Andrzej,
>> I recently started playing around with functionfs, and have
>> noticed some strange behavior with my origen board.
>>
>> If I enable the FunctionFS gadget driver, I see the board hang at boot
>> here:
>>
>> [ 2.360000] USB Mass Storage support registered.
>> [ 2.365000] s3c-hsotg s3c-hsotg: regs f0040000, irq 103
>> [ 2.375000] s3c-hsotg s3c-hsotg: EPs:15
>> [ 2.380000] s3c-hsotg s3c-hsotg: dedicated fifos
>> [ 2.385000] g_ffs: file system registered

I think the issue is because of the USB phy regulators. LDO3 and LDO8
power the phy regulators for OTG and HOST. These regulators are disabled
in OTG probe whereas they are not handled at all in HOST driver. Keeping
these LDOs always active should solve the problem for the time being.

I will follow-up with a patch shortly. But I am not sure if this patch
will be considered for mainline as board patches are not getting
accepted these days.

--
Tushar Behera
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/