thanks for the review
On 10/7/2019 2:26 PM, Marc Zyngier wrote:
On Thu, 03 Oct 2019 12:32:41 +0100,
Talel Shenhar <talel@xxxxxxxxxx> wrote:
+ log1 = readl(al_pos->mmio_base + AL_POS_ERROR_LOG_1);
I already commented on the misuse of strict accesses. Unless you can
explain and document *why* you need the extra ordering, please use
relaxed accesses.
agreeing on relaxed, shall be part of v5
+
+ if (al_pos->irq > 0) {
+ ret = devm_request_irq(&pdev->dev,
+ al_pos->irq,
+ al_pos_irq_handler,
+ 0,
+ pdev->name,
+ pdev);
+ if (ret != 0) {
+ dev_err(&pdev->dev,
+ "failed to register to irq %d (%d)\n",
+ al_pos->irq, ret);
+ goto err_remove_edac;
Would it be worth continuing without interrupts? After all, the
interrupt seems to be an optional part of the device...
indeed interrupts are optional, however, this is optional for some of
the systems.
in some cases (and some systems), this error event is critical and
should cause fast handling. for those, we define the interrupts.
so bottom line, i would like to keep this error in case of error in
interrupt.
Thanks,
M.