Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: qcom-geni: Let firmware specify irq trigger flags

We don't need to force IRQF_TRIGGER_HIGH here as the DT or ACPI tables
should take care of this for us. Just use 0 instead so that we use the
flags from the firmware. Also, remove specify dev_name() for the irq
name so that we can get better information in /proc/interrupts about
which device is generating interrupts.

Cc: Alok Chauhan <alokc@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Stephen Boyd and committed by
Wolfram Sang
b2ca8800 bf22461e

+2 -2
+2 -2
drivers/i2c/busses/i2c-qcom-geni.c
··· 549 549 init_completion(&gi2c->done); 550 550 spin_lock_init(&gi2c->lock); 551 551 platform_set_drvdata(pdev, gi2c); 552 - ret = devm_request_irq(&pdev->dev, gi2c->irq, geni_i2c_irq, 553 - IRQF_TRIGGER_HIGH, "i2c_geni", gi2c); 552 + ret = devm_request_irq(&pdev->dev, gi2c->irq, geni_i2c_irq, 0, 553 + dev_name(&pdev->dev), gi2c); 554 554 if (ret) { 555 555 dev_err(&pdev->dev, "Request_irq failed:%d: err:%d\n", 556 556 gi2c->irq, ret);