Re: [PATCH 1/2] led: Implement software led blinking

2024-07-05 Thread Mikhail Kshevetskiy
On 05.07.2024 11:29, Mark Kettenis wrote: > [You don't often get email from mark.kette...@xs4all.nl. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > >> From: Mikhail Kshevetskiy >> Date: Fri, 5 Jul 2024 06:26:24 +0400 >> >> From: Michael Polyntsov >> >> If h

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-05 Thread Mark Kettenis
> From: Mikhail Kshevetskiy > Date: Fri, 5 Jul 2024 06:26:24 +0400 > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > v2 changes: > * Drop sw_bli

[PATCH 1/2] led: Implement software led blinking

2024-07-04 Thread Mikhail Kshevetskiy
From: Michael Polyntsov If hardware (or driver) doesn't support leds blinking, it's now possible to use software implementation of blinking instead. This relies on cyclic functions. v2 changes: * Drop sw_blink_state structure, move its necessary fields to led_uc_plat structure. * Add cyclic

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-03 Thread Rasmus Villemoes
Mikhail Kshevetskiy writes: > + > +static int led_sw_set_period(struct udevice *dev, int period_ms) > +{ > + struct led_uc_plat *uc_plat = dev_get_uclass_plat(dev); > + struct cyclic_info *cyclic = uc_plat->cyclic; > + struct led_ops *ops = led_get_ops(dev); > + char cyclic_name[6

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-03 Thread Simon Glass
Hi Mikhail, On Wed, 3 Jul 2024 at 02:02, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > v2 changes: > * Drop sw_blink

[PATCH 1/2] led: Implement software led blinking

2024-07-02 Thread Mikhail Kshevetskiy
From: Michael Polyntsov If hardware (or driver) doesn't support leds blinking, it's now possible to use software implementation of blinking instead. This relies on cyclic functions. v2 changes: * Drop sw_blink_state structure, move its necessary fields to led_uc_plat structure. * Add cyclic

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-02 Thread Simon Glass
Hi Mikhail, On Tue, 2 Jul 2024 at 12:54, Mikhail Kshevetskiy wrote: > > > On 27.06.2024 22:05, Simon Glass wrote: > > Hi Mikhail, > > > > On Thu, 27 Jun 2024 at 12:31, Mikhail Kshevetskiy > > wrote: > >> From: Michael Polyntsov > >> > >> If hardware (or driver) doesn't support leds blinking, it

Re: [PATCH 1/2] led: Implement software led blinking

2024-07-02 Thread Mikhail Kshevetskiy
On 27.06.2024 22:05, Simon Glass wrote: > Hi Mikhail, > > On Thu, 27 Jun 2024 at 12:31, Mikhail Kshevetskiy > wrote: >> From: Michael Polyntsov >> >> If hardware (or driver) doesn't support leds blinking, it's >> now possible to use software implementation of blinking instead. >> This relies on

Re: [PATCH 1/2] led: Implement software led blinking

2024-06-27 Thread Christian Marangi
On Thu, Jun 27, 2024 at 01:36:09PM -0600, Tom Rini wrote: > On Thu, Jun 27, 2024 at 02:31:13PM +0300, Mikhail Kshevetskiy wrote: > > > From: Michael Polyntsov > > > > If hardware (or driver) doesn't support leds blinking, it's > > now possible to use software implementation of blinking instead.

Re: [PATCH 1/2] led: Implement software led blinking

2024-06-27 Thread Tom Rini
On Thu, Jun 27, 2024 at 02:31:13PM +0300, Mikhail Kshevetskiy wrote: > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > Signed-off-by: Michael Polynts

Re: [PATCH 1/2] led: Implement software led blinking

2024-06-27 Thread Simon Glass
Hi Mikhail, On Thu, 27 Jun 2024 at 12:31, Mikhail Kshevetskiy wrote: > > From: Michael Polyntsov > > If hardware (or driver) doesn't support leds blinking, it's > now possible to use software implementation of blinking instead. > This relies on cyclic functions. > > Signed-off-by: Michael Polynt

[PATCH 1/2] led: Implement software led blinking

2024-06-27 Thread Mikhail Kshevetskiy
From: Michael Polyntsov If hardware (or driver) doesn't support leds blinking, it's now possible to use software implementation of blinking instead. This relies on cyclic functions. Signed-off-by: Michael Polyntsov Signed-off-by: Mikhail Kshevetskiy --- drivers/led/Kconfig | 9 ++ driv