mbox series

[0/2] Add SW_MACHINE_COVER key

Message ID 20200215170216.14397-1-merlijn@wizzup.org (mailing list archive)
Headers show
Series Add SW_MACHINE_COVER key | expand

Message

Merlijn Wajer Feb. 15, 2020, 5:02 p.m. UTC
this series adds the sw_machine_cover key, and changes the nokia n900 dts to
expose the key via gpio-keys.

before, this gpio was used as card detect gpio, causing the card not to show up
if the phone was booted without cover, see this thread on linux-omap:

    n900: remove mmc1 "safety feature"? (was: re: mmc0 on nokia n900 on linux 5.4.18)

since there is no realistic use for using this gpio as card detect, instead
expose it to userspace via gpio-keys. there are no event type for machine covers
yet, so add that first.

the key should be 1 when the cover is closed, and 0 when the cover is open.

starting the nokia n900 with the cover removed, putting the cover in place:

    event: time 1581684523.415296, type 5 (ev_sw), code 16 (?), value 1

removing the cover again, exposing mmc1 and the battery:

    event: time 1581684529.413706, type 5 (ev_sw), code 16 (?), value 0

Merlijn Wajer (2):
  Input: add `SW_MACHINE_COVER`
  ARM: dts: n900: remove mmc1 card detect gpio

 arch/arm/boot/dts/omap3-n900.dts       | 12 ++++++++----
 include/linux/mod_devicetable.h        |  2 +-
 include/uapi/linux/input-event-codes.h |  3 ++-
 3 files changed, 11 insertions(+), 6 deletions(-)

Comments

Tony Lindgren Feb. 25, 2020, 2:31 p.m. UTC | #1
* Merlijn Wajer <merlijn@wizzup.org> [200215 09:01]:
> this series adds the sw_machine_cover key, and changes the nokia n900 dts to
> expose the key via gpio-keys.

Looks good to me. It's probably best to apply these via the input subsystem
tree because of the generci SW_MACHINE_COVER key addition. For both patches:

Acked-by: Tony Lindgren <tony@atomide.com>
Merlijn Wajer April 15, 2020, 1:29 p.m. UTC | #2
Hi,

Any objections or further comments on these two patches? It's been a while.

Cheers,
Merlijn

On 15/02/2020 18:02, Merlijn Wajer wrote:
> this series adds the sw_machine_cover key, and changes the nokia n900 dts to
> expose the key via gpio-keys.
> 
> before, this gpio was used as card detect gpio, causing the card not to show up
> if the phone was booted without cover, see this thread on linux-omap:
> 
>     n900: remove mmc1 "safety feature"? (was: re: mmc0 on nokia n900 on linux 5.4.18)
> 
> since there is no realistic use for using this gpio as card detect, instead
> expose it to userspace via gpio-keys. there are no event type for machine covers
> yet, so add that first.
> 
> the key should be 1 when the cover is closed, and 0 when the cover is open.
> 
> starting the nokia n900 with the cover removed, putting the cover in place:
> 
>     event: time 1581684523.415296, type 5 (ev_sw), code 16 (?), value 1
> 
> removing the cover again, exposing mmc1 and the battery:
> 
>     event: time 1581684529.413706, type 5 (ev_sw), code 16 (?), value 0
> 
> Merlijn Wajer (2):
>   Input: add `SW_MACHINE_COVER`
>   ARM: dts: n900: remove mmc1 card detect gpio
> 
>  arch/arm/boot/dts/omap3-n900.dts       | 12 ++++++++----
>  include/linux/mod_devicetable.h        |  2 +-
>  include/uapi/linux/input-event-codes.h |  3 ++-
>  3 files changed, 11 insertions(+), 6 deletions(-)
>
Merlijn Wajer June 8, 2020, 11:56 p.m. UTC | #3
Hi,

A while later (again) - any thoughts/comments?

Should I resend the series?

Thanks,
Merlijn

On 15/04/2020 15:29, Merlijn Wajer wrote:
> Hi,
> 
> Any objections or further comments on these two patches? It's been a while.
> 
> Cheers,
> Merlijn
> 
> On 15/02/2020 18:02, Merlijn Wajer wrote:
>> this series adds the sw_machine_cover key, and changes the nokia n900 dts to
>> expose the key via gpio-keys.
>>
>> before, this gpio was used as card detect gpio, causing the card not to show up
>> if the phone was booted without cover, see this thread on linux-omap:
>>
>>     n900: remove mmc1 "safety feature"? (was: re: mmc0 on nokia n900 on linux 5.4.18)
>>
>> since there is no realistic use for using this gpio as card detect, instead
>> expose it to userspace via gpio-keys. there are no event type for machine covers
>> yet, so add that first.
>>
>> the key should be 1 when the cover is closed, and 0 when the cover is open.
>>
>> starting the nokia n900 with the cover removed, putting the cover in place:
>>
>>     event: time 1581684523.415296, type 5 (ev_sw), code 16 (?), value 1
>>
>> removing the cover again, exposing mmc1 and the battery:
>>
>>     event: time 1581684529.413706, type 5 (ev_sw), code 16 (?), value 0
>>
>> Merlijn Wajer (2):
>>   Input: add `SW_MACHINE_COVER`
>>   ARM: dts: n900: remove mmc1 card detect gpio
>>
>>  arch/arm/boot/dts/omap3-n900.dts       | 12 ++++++++----
>>  include/linux/mod_devicetable.h        |  2 +-
>>  include/uapi/linux/input-event-codes.h |  3 ++-
>>  3 files changed, 11 insertions(+), 6 deletions(-)
>>
> 
>
Pavel Machek June 9, 2020, 11:21 a.m. UTC | #4
Hi!

> A while later (again) - any thoughts/comments?
> 
> Should I resend the series?

Sorry, I did not see this before. Can you cc me on the next patch
iteration?

Best regards,
								Pavel