All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Shtylyov <s.shtylyov@omp.ru>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] usb: core: hcd: merge repetitive strings in usb_hcd_request_irqs()
Date: Fri, 27 Aug 2021 18:56:55 +0300	[thread overview]
Message-ID: <f0031388-81b5-4510-a7f2-79ae85b5e39c@omp.ru> (raw)
In-Reply-To: <3d811f11-cd42-08f4-73a5-642e1c82045c@omp.ru>

On 26.08.2021 20:39, Sergey Shtylyov wrote:
[...]
>>> Two dev_info() calls in usb_hcd_request_irqs() have the same "io " strings
>>> needlessly repeated. Merge these strings into the format strings of those
>>> dev_info() calls...
>>>
>>> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
>>>
>>> ---
>>> The patch is against the 'usb-next' branch of Greg KH's 'usb.git' repo...
>>>
>>>   drivers/usb/core/hcd.c |   12 ++++++------
>>>   1 file changed, 6 insertions(+), 6 deletions(-)
>>>
>>> Index: usb/drivers/usb/core/hcd.c
>>> ===================================================================
>>> --- usb.orig/drivers/usb/core/hcd.c
>>> +++ usb/drivers/usb/core/hcd.c
>>> @@ -2730,16 +2730,16 @@ static int usb_hcd_request_irqs(struct u
>>>   			return retval;
>>>   		}
>>>   		hcd->irq = irqnum;
>>> -		dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum,
>>> -				(hcd->driver->flags & HCD_MEMORY) ?
>>> -					"io mem" : "io base",
>>> -					(unsigned long long)hcd->rsrc_start);
>>> +		dev_info(hcd->self.controller, "irq %d, io %s 0x%08llx\n",
>>> +				irqnum, (hcd->driver->flags & HCD_MEMORY) ?
>>> +					"mem" : "base",
>>> +				(unsigned long long)hcd->rsrc_start);
>>
>> This now makes it harder to grep for messages in the kernel source :(
> 
>     Mhm, maybe...
> 
>> As this saves almost no memory, I'll just ignore this patch.
> 
>     I also didn't find the current strings adequate -- I'd understand "io mem" vs "io port",
> not what it is now...

    Indeed, HCD_MEMORY means MMIO, else means I/O ports. Would the patch 
fixing this substring be acceptable instead of this one?

>> thanks,
>>
>> greg k-h

MBR, Sergey

      reply	other threads:[~2021-08-27 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 20:48 [PATCH] usb: core: hcd: merge repetitive strings in usb_hcd_request_irqs() Sergey Shtylyov
2021-08-26 11:32 ` Greg Kroah-Hartman
2021-08-26 17:39   ` Sergey Shtylyov
2021-08-27 15:56     ` Sergey Shtylyov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0031388-81b5-4510-a7f2-79ae85b5e39c@omp.ru \
    --to=s.shtylyov@omp.ru \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.