mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Cutiepi, serdevs, and right way to handle its power button
@ 2022-09-20 20:56 Pavel Machek
  2022-09-21 14:45 ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2022-09-20 20:56 UTC (permalink / raw)
  To: kernel list, robh, linux-serial, ribalda, andriy.shevchenko, johan

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

Hi!

Cutiepie is a small handheld tablet. It has embedded controller
connected via serial to the main system, handling stuff such as power
button and battery percentage. Currently they are using userland
deamon for communication, but I believe that should eventually go into
kernel.

For debugging, it would be really nice to be able to attach my module
to given serdev. Is such thing possible? I see "[PATCH v2 00/19]
Dynamically load/remove serdev devices via sysfs*" series
(https://www.spinics.net/lists/linux-serial/msg30732.html) but I'm not
sure if equivalent functionality exists in mainline kernel?

Is there some kind of similar hardware already supported by mainline?
Using driver as a reference might be easier than starting from
scratch.

Thanks and best regards,
								Pavel

-- 
People of Russia, stop Putin before his war on Ukraine escalates.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cutiepi, serdevs, and right way to handle its power button
  2022-09-20 20:56 Cutiepi, serdevs, and right way to handle its power button Pavel Machek
@ 2022-09-21 14:45 ` Andy Shevchenko
  2022-09-21 17:17   ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2022-09-21 14:45 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list, robh, linux-serial, ribalda, johan

On Tue, Sep 20, 2022 at 10:56:37PM +0200, Pavel Machek wrote:
> Hi!
> 
> Cutiepie is a small handheld tablet. It has embedded controller
> connected via serial to the main system, handling stuff such as power
> button and battery percentage. Currently they are using userland
> deamon for communication, but I believe that should eventually go into
> kernel.
> 
> For debugging, it would be really nice to be able to attach my module
> to given serdev. Is such thing possible? I see "[PATCH v2 00/19]
> Dynamically load/remove serdev devices via sysfs*" series
> (https://www.spinics.net/lists/linux-serial/msg30732.html) but I'm not
> sure if equivalent functionality exists in mainline kernel?
> 
> Is there some kind of similar hardware already supported by mainline?
> Using driver as a reference might be easier than starting from
> scratch.

Is it arm or x86 based tablet?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cutiepi, serdevs, and right way to handle its power button
  2022-09-21 14:45 ` Andy Shevchenko
@ 2022-09-21 17:17   ` Pavel Machek
  2022-09-22 10:11     ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2022-09-21 17:17 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: kernel list, robh, linux-serial, ribalda, johan

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

On Wed 2022-09-21 17:45:33, Andy Shevchenko wrote:
> On Tue, Sep 20, 2022 at 10:56:37PM +0200, Pavel Machek wrote:
> > Hi!
> > 
> > Cutiepie is a small handheld tablet. It has embedded controller
> > connected via serial to the main system, handling stuff such as power
> > button and battery percentage. Currently they are using userland
> > deamon for communication, but I believe that should eventually go into
> > kernel.
> > 
> > For debugging, it would be really nice to be able to attach my module
> > to given serdev. Is such thing possible? I see "[PATCH v2 00/19]
> > Dynamically load/remove serdev devices via sysfs*" series
> > (https://www.spinics.net/lists/linux-serial/msg30732.html) but I'm not
> > sure if equivalent functionality exists in mainline kernel?
> > 
> > Is there some kind of similar hardware already supported by mainline?
> > Using driver as a reference might be easier than starting from
> > scratch.
> 
> Is it arm or x86 based tablet?

arm64, but CPU architecture really should not matter.

Best regards,
								Pavel
-- 
People of Russia, stop Putin before his war on Ukraine escalates.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cutiepi, serdevs, and right way to handle its power button
  2022-09-21 17:17   ` Pavel Machek
@ 2022-09-22 10:11     ` Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2022-09-22 10:11 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list, robh, linux-serial, ribalda, johan

On Wed, Sep 21, 2022 at 07:17:07PM +0200, Pavel Machek wrote:
> On Wed 2022-09-21 17:45:33, Andy Shevchenko wrote:
> > On Tue, Sep 20, 2022 at 10:56:37PM +0200, Pavel Machek wrote:
> > > Hi!
> > > 
> > > Cutiepie is a small handheld tablet. It has embedded controller
> > > connected via serial to the main system, handling stuff such as power
> > > button and battery percentage. Currently they are using userland
> > > deamon for communication, but I believe that should eventually go into
> > > kernel.
> > > 
> > > For debugging, it would be really nice to be able to attach my module
> > > to given serdev. Is such thing possible? I see "[PATCH v2 00/19]
> > > Dynamically load/remove serdev devices via sysfs*" series
> > > (https://www.spinics.net/lists/linux-serial/msg30732.html) but I'm not
> > > sure if equivalent functionality exists in mainline kernel?
> > > 
> > > Is there some kind of similar hardware already supported by mainline?
> > > Using driver as a reference might be easier than starting from
> > > scratch.
> > 
> > Is it arm or x86 based tablet?
> 
> arm64, but CPU architecture really should not matter.

It makes sense on the usual practices done for the platform as a whole, e.g.
ACPI vs. DT. So, I believe this one is DT based.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-22 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 20:56 Cutiepi, serdevs, and right way to handle its power button Pavel Machek
2022-09-21 14:45 ` Andy Shevchenko
2022-09-21 17:17   ` Pavel Machek
2022-09-22 10:11     ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®