Re: power_supply_show_property Kernel Oops

From: Sebastian Reichel
Date: Fri Mar 31 2023 - 19:54:19 EST


Hi,

On Thu, Mar 30, 2023 at 06:00:41PM +1000, Alistair wrote:
> > I did not look deeply, but it's at least missing an update to
> > power_supply_attrs. I guess you were 'lucky' that it did not crash
> > with v6.2.
>
> Do you mind pointing to an example that does this correctly? I don't see
> anything obviously wrong compared to the in-tree max* drivers.
>
> Anything to help point me in the right direction would be greatly
> appreciated :)

I am talking about the extra additions to the core, that have been
done incorrectly. You cannot see that in other max* drivers. The
additions to the core basically break the core and thus the drivers
are broken.

> > None of the extra properties are acceptable upstream btw.:
> >
> > POWER_SUPPLY_PROP_CURRENT_MAX2:
> > The driver seems to use CURRENT_MAX2 for input current;
> > POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT should be used for that
> >
> > POWER_SUPPLY_PROP_CHARGER_MODE:
> > OTG should be handled via a regulator
> >
> > POWER_SUPPLY_PROP_STATUS_EX:
> > Use extcon for connectors
>
> Thanks! I figured as much. These are just taken from the vendor
> tree, I need to clean everything up for upstreaming. I just wanted
> to have a working base point to start.

That did not turn out that well so far... :)

-- Sebastian

Attachment: signature.asc
Description: PGP signature