Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp475645ybj; Wed, 6 May 2020 23:47:12 -0700 (PDT) X-Google-Smtp-Source: APiQypI2fj6ggnupQPmI1i/bb0IVHYxDlUzFe8ElOTjs7PG/ddD+90fQJjzvDnojw2KZdeggGaKm X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr10233837ejc.154.1588834032023; Wed, 06 May 2020 23:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588834032; cv=none; d=google.com; s=arc-20160816; b=bEuNAS8PGar78I280pDDdUaivCPQ5U5bNS8MXHIYe1JoejIgP5h6Dj3j+/pNPC+0zb P9e1tcTsWCln9G3+ZVu94oLgmBqh5ViKozHX4oTaBlbcgvveLbKCCMmKRHHhDxHaStew GofEtcxWzIw4v0LIliWBELBRwmhCAfEBG/2842fVWTyzNoLcvpGJdJOrpzPdxy/q6QzZ Q2feF0YLbNNDP4NjSjFyuPIzML6PKAdSSLb+fYA9SpOlAEf2d13vyyNtIDywnJQpOab/ CtkxecrKno03GcJ3CUZyKAj4AugZhbcZ9viY1G+3O3gp7xm+svNAm0vaZd/pUpF7jrv3 LZSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=e2ZykVahToSBqxabHh700MuKobXTMHzqf9tduG7mXB4=; b=us2Rs5+eP3jLHcZe1ASeFtohz7uSlo/YmREzj65G33i6RR6QcTtomZa3AwGEOfTJa9 MqijQBLiRZiNcMOVIJDTuSsuaeLzX69Jt4zuf+BD0uOwtZ+aDkkPUVKnn2n5zu4cKPba YtmsHKgW4517O9/YFs0wQswuRzt/ahDQA1OK/nLgoaG3741fC37tIsk84zqZNq1bC74H 5fQrN5KltjTaTC7DscpB/825oDT9qAm1XIOaVmFLXNO+cYbF/I7dslp07iIdexMgQ6q4 HImQak/y95y2qJVp9dLkpijlGKhVIZ+DBdViN9Gp1dnXSiLoiYHI3VbYESwdiGYTwESE FzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bMpVumtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv16si381897ejb.193.2020.05.06.23.46.49; Wed, 06 May 2020 23:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bMpVumtd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726445AbgEGGpN (ORCPT + 99 others); Thu, 7 May 2020 02:45:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:60740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbgEGGpN (ORCPT ); Thu, 7 May 2020 02:45:13 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 34F802078C; Thu, 7 May 2020 06:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588833912; bh=tqjVJvTgkKsLjnMlFNwr1vnwK2nrbrSCJOG4WY/n4Ow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bMpVumtdIQ+nfmBaFiOVyFXsnepy0M0Tpj0XL2ogpwhPBjwRBlVjp+sTCr9h9JGI2 vaosUT+vI1CLqCIAvabfcP8A5A6HN8myuqC9Pr+4iAcYxxk14Mam9QvRYkcy1SPNSf qMkt+UFpl2ATZC6anMrR0iIvaMy4QkZZHec5UcDQ= Date: Thu, 7 May 2020 08:45:10 +0200 From: Greg Kroah-Hartman To: Kai-Heng Feng Cc: mathias.nyman@intel.com, "open list:USB XHCI DRIVER" , open list Subject: Re: [PATCH] xhci: Make debug message consistent with bus and port number Message-ID: <20200507064510.GA787064@kroah.com> References: <20200507061755.13280-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507061755.13280-1-kai.heng.feng@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 02:17:55PM +0800, Kai-Heng Feng wrote: > Current xhci debug message doesn't always output bus number, so it's > hard to figure out it's from USB2 or USB3 root hub. > > In addition to that, some port numbers are offset to 0 and others are > offset to 1. Use the latter to match the USB core. > > So use "bus number - port index + 1" to make debug message consistent. > > Signed-off-by: Kai-Heng Feng > --- > drivers/usb/host/xhci-hub.c | 41 +++++++++++++++++++++---------------- > 1 file changed, 23 insertions(+), 18 deletions(-) > > diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c > index f37316d2c8fa..83088c262cc4 100644 > --- a/drivers/usb/host/xhci-hub.c > +++ b/drivers/usb/host/xhci-hub.c > @@ -1241,7 +1241,8 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, > temp = readl(ports[wIndex]->addr); > /* Disable port */ > if (link_state == USB_SS_PORT_LS_SS_DISABLED) { > - xhci_dbg(xhci, "Disable port %d\n", wIndex); > + xhci_dbg(xhci, "Disable port %d-%d\n", > + hcd->self.busnum, wIndex + 1); Shouldn't xhci_dbg() show the bus number already? If not, please fix that up there instead of having to add it to all messages "by hand". thanks, greg k-h