Thread (53 messages) 53 messages, 6 authors, 2017-03-14

Re: [PATCH v2] Input: silead - Do not try to directly access the GPIO when using ACPI pm

From: Hans de Goede <hidden>
Date: 2017-03-07 13:56:29

Hi,

On 07-03-17 12:51, Andy Shevchenko wrote:
On Mon, 2017-03-06 at 10:31 +0100, Hans de Goede wrote:
<mega snip>
quoted
quoted
quoted
forcible adding fake _DSD tables everywhere, see above.
Why are they fake?
Because they are not coming from the firmware,
They actually are. The problem here is that older firmwares and ACPI
specification lack of naming GPIO resources. So, this information is
complimentary to the existing GPIO resources. It's not fake.
quoted
 as said I believe it
is better to clearly differentiate between the no-connection-id (so we
use indexes) and the firmware provides connection-ids cases.
Indexes without label is error prone approach. Sorry, I'm not going to
vote for them. This is explained in the patches I have: we never know
what we get by index. The mapping makes it robust.

It was clearly my mistake to even think in this direction.
quoted
I believe this is better for 2 reasons:

1) Cleaner (and less) code for drivers which need to use indexes
Yes and no. Cleaner, indeed, but less code does not always mean less
error prone, more robust, etc.
quoted
2) It is easier to debug things if it is clear at all levels if we
are dealing with indexes or connection ids
And my point that adding labels along with connection IDs is a hiding of
a huge abuse of at least ACPI case! It will not get rid of the chaos we
have. And it will make API more confusing.
Ok, since it seems clear that I'm not going to be able to change your
mind on this, I will give your patches a try and see if they fix the
silead ts problems.

Regards,

Hans
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help