Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601329

Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during request_irq()

From Vignesh R <vigneshr@ti.com>
Newsgroups linux.kernel
Subject Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during request_irq()
Date 2017-03-15 12:50 +0100
Message-ID <tlfBf-73v-1@gated-at.bofh.it> (permalink)
References <tiIT8-6v2-15@gated-at.bofh.it> <tkhYt-6pU-7@gated-at.bofh.it> <tkV9w-Uf-11@gated-at.bofh.it> <tkX1D-2dV-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On Tuesday 14 March 2017 09:29 PM, Andy Shevchenko wrote:
> On Tue, Mar 14, 2017 at 3:44 PM, Vignesh R <vigneshr@ti.com> wrote:
>> On Monday 13 March 2017 01:35 AM, Andy Shevchenko wrote:
>>> On Wed, Mar 8, 2017 at 2:19 PM, Vignesh R <vigneshr@ti.com> wrote:
>>>> Passing "serial" as name during request_irq() results in all serial port
>>>> irqs have same name. This does not help much to easily identify which
>>>> irq belongs to which serial port instance. Therefore pass dev_name()
>>>> during request_irq() so that better identifiable name is listed for
>>>> serial ports in cat /proc/interrupts output.
>>>>
>>>> Output of cat /proc/interrupts
>>>> Before this patch:
>>>>  26:        689          0     GICv2 309 Edge      serial
>>>> After this patch:
>>>>  26:        696          0     GICv2 309 Edge      2530c00.serial
> 
>>  But, this change is making interrupt name more descriptive
> 
> It doesn't in PCI case, it makes it worse.
> 
> (The world is not DT-centric)
> 
>>> Besides that imagine what would be the name of PCI device here.
>>> I would suggest adding ID if you need one in a form like
>>> "serial%d", where ID may or may not be supplied by the actual 8250 drivers.
>>>
>>
>> Are you suggesting to use serial_index() as ID?
> 
> Yes.
> 

Ok thanks, I will send on incremental fix as this patch is already applied.

-- 
Regards
Vignesh

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during  request_irq() Vignesh R <vigneshr@ti.com> - 2017-03-14 15:00 +0100
  Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during request_irq() Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-03-14 17:00 +0100
    Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during  request_irq() Jisheng Zhang <jszhang@marvell.com> - 2017-03-15 07:20 +0100
    Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during  request_irq() Vignesh R <vigneshr@ti.com> - 2017-03-15 12:50 +0100

csiph-web