On Mon, Jan 27, 2014 at 3:31 PM, Hans de Goede <[email protected]> wrote:
> Hi,
>
>
> On 01/26/2014 05:58 PM, Chen-Yu Tsai wrote:
>>
>> Hi,
>>
>> On Mon, Jan 27, 2014 at 12:34 AM, Hans de Goede <[email protected]>
>> wrote:
>>>
>>> Hi,
>>>
>>> On 01/24/2014 04:38 AM, Chen-Yu Tsai wrote:
>>>
>>> <snip>
>>>
>>>
>>>>> Quick update, I've just tested:
>>>>> https://github.com/wens/linux/commits/wip/sunxi-next-wifi
>>>>
>>>>
>>>>
>>>> About this, I would like to move WiFi power control to a regulator,
>>>> and controlled by sunxi-mci via vmmc-supply (not supported ATM)
>>>
>>>
>>>
>>> Actually the sunxi-mci.c driver already has support for an optional
>>> regulator called vmmc.
>>>
>>> I like this idea, I've done a version of the dt patch using a regulator
>>> instead of rfkill here:
>>>
>>> https://github.com/jwrdegoede/linux-sunxi/commit/8d200113b573549cdcdc1b2d5a5a1cad15cfbe07
>>>
>>> This works as advertised and IMHO is the better solution.
>>
>>
>> I have a version in another branch I haven't pushed. I had it using an
>> always-on regulator. I can adjust it to use vmmc.
>>
>> BTW, I'd like to do a patch for sunxi-mci to use the DT parsing code
>> in mmc core.
>> We should re-use code if possible, wouldn't you agree?
>
>
> I would agree, except that mmc_regulator_get_supply makes vmmc mandatory, it
> will log and return an error when it is not there, and it will not set
> ocr_avail.
>
> Almost all Allwinnner boards don't have a separate vmmc, so making vmmc
> mandatory
> just leads to devicetree containing unnecessary fixed regulators for this.

I suppose we could still reuse all the property parsing bits in mmc_of_parse().
This one handles the GPIOs, bus width and host capabilities.

>>>>> About the oob interrupt stuff not working, AFAIK you should set a
>>>>> pinctrl
>>>>> function (not input, but a function like mmc is a function) on the pin
>>>>> in
>>>>> question
>>>>> for it to work as external interrupt, I believe you're not doing so in
>>>>> your
>>>>> dts.
>>>>
>>>>
>>>>
>>>> The pinctrl driver seems to set the function when the interrupt is
>>>> enabled.
>>>> Unfortunately we don't have any documentation/examples on how to use
>>>> them.
>>>> I will look into that later.
>>>
>>>
>>>
>>> Hmm, but you also have a pinctrl entry in the dts setting it up as
>>> gpio-input,
>>> maybe that conflicts ?
>>
>>
>> I made a version with pinctrl entry setup as "irq", got an interrupt,
>> but then the whole thing hung.
>
>
> Great, that sounds like progress to me :)

I think it was a fluke. Now I'm not getting any interrupts. :(
Anyway, I am resuming work on musb. I'll get back to this once
3.14-rc1 is out, and sunxi-devel is rebased.

I can probably use OTG ID pin to test external interrupts.


Cheers,
ChenYu

>> Looks like pinctrl irqchip was not
>> properly handling chained interrupts. I have done a simple fix, and I
>> hope to test it tomorrow. Then I'll do some more testing with different
>> configurations and hopefully write some documents.
>
>
> Thanks for working on this.
>
>
> Regards,
>
> Hans
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to