Commit 36fc5437 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: ads7846 - do not attempt IRQ workaround when deferring probe

When request_irq() returns -EPORBE_DEFER we should abort probe and try
again later instead of trying to engage IRQ trigger workaround.

Link: https://lore.kernel.org/r/20210910045039.4020199-3-dmitry.torokhov@gmail.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ccd66139
...@@ -1361,7 +1361,7 @@ static int ads7846_probe(struct spi_device *spi) ...@@ -1361,7 +1361,7 @@ static int ads7846_probe(struct spi_device *spi)
err = devm_request_threaded_irq(dev, spi->irq, err = devm_request_threaded_irq(dev, spi->irq,
ads7846_hard_irq, ads7846_irq, ads7846_hard_irq, ads7846_irq,
irq_flags, dev->driver->name, ts); irq_flags, dev->driver->name, ts);
if (err && !pdata->irq_flags) { if (err && err != -EPROBE_DEFER && !pdata->irq_flags) {
dev_info(dev, dev_info(dev,
"trying pin change workaround on irq %d\n", spi->irq); "trying pin change workaround on irq %d\n", spi->irq);
irq_flags |= IRQF_TRIGGER_RISING; irq_flags |= IRQF_TRIGGER_RISING;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment