Hi,
On 08-06-15 05:22, Lawrence Y wrote:
Hi,
I've managed to get AC charging information and battery charge information
on my A31s tablet.
I've taken the AXP20x patch from here
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295547.html
and done very minor code modifications to make it work with the AXP221 and
the 4.1 sunxi-next kernel.
Cool that is great news. Note that I've just posted a new version of parts
of that patch. One thing which needs to be changed is to use a dts
child-node and thus a mfd cell, platform device and platform driver
per function, instead of using only one which then instantiates all
4 power-supplies. We need this to be per power-supply so that they can
be enabled/disabled individually and we do not end up having e.g. an
ac power-supply registered in sysfs on tablets which only have an otg
plug for charging and do not have a separate power barrel plug for the
ac power-supply.
What is the best way to share the modifications needed? Is it ok to post a
patch containing all of the changes here including the modifications even
though I am not original author of the patch?
Yes that is fine, as long as you credit the original author in the commit
message and leave his copyright at the top of the copied files.
It would be great if you could convert the work you've done to the 1
dts childnode / mfd-cell per power-supply model, and then post that.
If that is too much work, please do post what you've as that will be
very helpful for however works on this next.
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/d/optout.