ata: core: fix irq description on AHCI single irq systems
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 6 Dec 2015 20:56:33 +0000 (21:56 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 7 Dec 2015 14:40:50 +0000 (09:40 -0500)
commit7e22c0024cf89404407f19955eab39b6d66de7b6
tree6f8731f8591421312c969ea0782073f38ab16ecd
parent2ef42f4a7ea3f44606ae8ef444f98a6720e82f7d
ata: core: fix irq description on AHCI single irq systems

On my machine with single irq AHCI just the PCI id is printed as
description in /proc/interrupts.
I found a related discussion from beginning of this year:
http://www.gossamer-threads.com/lists/linux/kernel/2117335

Seems like 4f37b504768c ("libata: Use dev_name() for request_irq() to
distinguish devices") tried to fix displaying a proper interrupt
description for one scenario but broke it for another one.

The mentioned discussion ended in the current situation being
considered as broken but w/o a patch to fix it.

The following patch is based on a proposal in this mail thread.
Now the interrupt is properly described as:
PCI-MSI 512000-edge      ahci[0000:00:1f.2]

By combining both values also the scenario that commit 4f37b504768c
("libata: Use dev_name() for request_irq() to distinguish devices")
refers to should still be fine. There it should look like this now:
ahci[20100000.ide]

Using managed memory allocation ensures that the irq description
lives at least as long as the interrupt.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
drivers/ata/libata-core.c
This page took 0.043026 seconds and 5 git commands to generate.