All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: adxl34x - do not hardcode interrupt trigger type
@ 2023-05-09 20:35 Marek Vasut
  2023-05-10  7:34 ` Hennerich, Michael
  2023-05-11  0:28 ` Dmitry Torokhov
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2023-05-09 20:35 UTC (permalink / raw)
  To: linux-input; +Cc: Marek Vasut, Dmitry Torokhov, Michael Hennerich

Instead of hardcoding IRQ trigger type to IRQF_TRIGGER_HIGH, let's
respect the settings specified in the firmware description.

Fixes: e27c729219ad2 ("Input: add driver for ADXL345/346 Digital Accelerometers")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: linux-input@vger.kernel.org
---
 drivers/input/misc/adxl34x.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c
index eecca671b5884..a3f45e0ee0c75 100644
--- a/drivers/input/misc/adxl34x.c
+++ b/drivers/input/misc/adxl34x.c
@@ -817,8 +817,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
 	AC_WRITE(ac, POWER_CTL, 0);
 
 	err = request_threaded_irq(ac->irq, NULL, adxl34x_irq,
-				   IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
-				   dev_name(dev), ac);
+				   IRQF_ONESHOT, dev_name(dev), ac);
 	if (err) {
 		dev_err(dev, "irq %d busy?\n", ac->irq);
 		goto err_free_mem;
-- 
2.39.2


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

* RE: [PATCH] Input: adxl34x - do not hardcode interrupt trigger type
  2023-05-09 20:35 [PATCH] Input: adxl34x - do not hardcode interrupt trigger type Marek Vasut
@ 2023-05-10  7:34 ` Hennerich, Michael
  2023-05-11  0:28 ` Dmitry Torokhov
  1 sibling, 0 replies; 3+ messages in thread
From: Hennerich, Michael @ 2023-05-10  7:34 UTC (permalink / raw)
  To: Marek Vasut, linux-input; +Cc: Dmitry Torokhov



> -----Original Message-----
> From: Marek Vasut <marex@denx.de>
> Sent: Dienstag, 9. Mai 2023 22:36
> To: linux-input@vger.kernel.org
> Cc: Marek Vasut <marex@denx.de>; Dmitry Torokhov
> <dmitry.torokhov@gmail.com>; Hennerich, Michael
> <Michael.Hennerich@analog.com>
> Subject: [PATCH] Input: adxl34x - do not hardcode interrupt trigger type
> 
> Instead of hardcoding IRQ trigger type to IRQF_TRIGGER_HIGH, let's respect
> the settings specified in the firmware description.
> 
> Fixes: e27c729219ad2 ("Input: add driver for ADXL345/346 Digital
> Accelerometers")
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: Michael Hennerich <michael.hennerich@analog.com>
> Cc: linux-input@vger.kernel.org

Acked-by: Michael Hennerich <michael.hennerich@analog.com>

> ---
>  drivers/input/misc/adxl34x.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index
> eecca671b5884..a3f45e0ee0c75 100644
> --- a/drivers/input/misc/adxl34x.c
> +++ b/drivers/input/misc/adxl34x.c
> @@ -817,8 +817,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int
> irq,
>  	AC_WRITE(ac, POWER_CTL, 0);
> 
>  	err = request_threaded_irq(ac->irq, NULL, adxl34x_irq,
> -				   IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
> -				   dev_name(dev), ac);
> +				   IRQF_ONESHOT, dev_name(dev), ac);
>  	if (err) {
>  		dev_err(dev, "irq %d busy?\n", ac->irq);
>  		goto err_free_mem;
> --
> 2.39.2


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

* Re: [PATCH] Input: adxl34x - do not hardcode interrupt trigger type
  2023-05-09 20:35 [PATCH] Input: adxl34x - do not hardcode interrupt trigger type Marek Vasut
  2023-05-10  7:34 ` Hennerich, Michael
@ 2023-05-11  0:28 ` Dmitry Torokhov
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2023-05-11  0:28 UTC (permalink / raw)
  To: Marek Vasut; +Cc: linux-input, Michael Hennerich

On Tue, May 09, 2023 at 10:35:55PM +0200, Marek Vasut wrote:
> Instead of hardcoding IRQ trigger type to IRQF_TRIGGER_HIGH, let's
> respect the settings specified in the firmware description.
> 
> Fixes: e27c729219ad2 ("Input: add driver for ADXL345/346 Digital Accelerometers")
> Signed-off-by: Marek Vasut <marex@denx.de>

Applied, thank you.

-- 
Dmitry

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

end of thread, other threads:[~2023-05-11  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 20:35 [PATCH] Input: adxl34x - do not hardcode interrupt trigger type Marek Vasut
2023-05-10  7:34 ` Hennerich, Michael
2023-05-11  0:28 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.