Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp8818027pjb; Tue, 1 Oct 2019 04:42:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyosA9Q912BWjvTZo/x0Iilu7xnrNb3wvXY5wuew/sbUu04js8NI967RHw9bIsJDFNI7MSW X-Received: by 2002:a50:d903:: with SMTP id t3mr24310148edj.117.1569930138356; Tue, 01 Oct 2019 04:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569930138; cv=none; d=google.com; s=arc-20160816; b=I5jGk86qcURJUB8CRoCZGmJa0RQ0mEzy6T8lKwlZ1QWTp93/j2yMvEtqbLpB6ZAs9L hJ7Ky2GfjT1fgPKZcfnQuzdt/FJCNvfaIvSuTfSP9xjQ5uUAVX+mm2P9SFANTMmbggzy k0iH4JfUq1oyKh+OtuUEOx6p7/Pu2qPO1IyagWAXetIz1jeigV/hz/h0K0XQ13RZa+x/ 3hQDdo/KFDx38bFL/iek7eqOZfHEFxYc9u23hUAD/fwFSXOZ0Vr6dVH58go/9LQPNjyq WV1zWDnJpFfxyJbQfdtVRiLk6ia5ShD576NW3/zw+iohiRcSnR2gpDnEwfR3oHxSUzbI LIWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mdnIkNpQNNziwCSogmOdp3qA4i6TvG5mZntU7sOrag8=; b=f/n2062wV1YlYIyFjbML4cVcHONYSdXYoXjD7IO0EQfLl3Kx5VQlMVhU5Pi1cGwZP7 +XbzmOo9PhQD0g1mPTuoZ8fQrD7DhN1C+PZcqimqNUCk9gPYOR/9dGiZuys8JhIqO6UR 8g1az2LSftg67zKyUygr7/Cv2Wgyf+8jkGz2n/FMM9Bus1R7dW/yYmfcJrXbTgdKYkoH EngI2IFp2D/JfFYE3bKyGEFL0JpVEJyajGPHw4jTXu+nsubd1p2+KUCB7nYubUCvCxeh V/eJtCVW4e8S8vEhInzA/UvZmOg1OKYJRRAl0OC/NgqjbGrst879w49gm0twGRIlRH+i ybpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si8285822eji.152.2019.10.01.04.41.53; Tue, 01 Oct 2019 04:42:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732477AbfJALig (ORCPT + 99 others); Tue, 1 Oct 2019 07:38:36 -0400 Received: from mga04.intel.com ([192.55.52.120]:46305 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfJALif (ORCPT ); Tue, 1 Oct 2019 07:38:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2019 04:38:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,571,1559545200"; d="scan'208";a="391165497" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 01 Oct 2019 04:38:31 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id EB73D1DF; Tue, 1 Oct 2019 14:38:30 +0300 (EEST) From: Mika Westerberg To: linux-usb@vger.kernel.org Cc: Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat , Rajmohan Mani , Nicholas Johnson , Lukas Wunner , Greg Kroah-Hartman , Alan Stern , Mario.Limonciello@dell.com, Anthony Wong , linux-kernel@vger.kernel.org Subject: [RFC PATCH 02/22] thunderbolt: Log switch route string on config read/write timeout Date: Tue, 1 Oct 2019 14:38:10 +0300 Message-Id: <20191001113830.13028-3-mika.westerberg@linux.intel.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191001113830.13028-1-mika.westerberg@linux.intel.com> References: <20191001113830.13028-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This helps to point out which switch config read/write triggered the timeout. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/ctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c index 2ec1af8f7968..d97813e80e5f 100644 --- a/drivers/thunderbolt/ctl.c +++ b/drivers/thunderbolt/ctl.c @@ -962,8 +962,8 @@ int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, return tb_cfg_get_error(ctl, space, &res); case -ETIMEDOUT: - tb_ctl_warn(ctl, "timeout reading config space %u from %#x\n", - space, offset); + tb_ctl_warn(ctl, "%llx: timeout reading config space %u from %#x\n", + route, space, offset); break; default: @@ -988,8 +988,8 @@ int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port, return tb_cfg_get_error(ctl, space, &res); case -ETIMEDOUT: - tb_ctl_warn(ctl, "timeout writing config space %u to %#x\n", - space, offset); + tb_ctl_warn(ctl, "%llx: timeout writing config space %u to %#x\n", + route, space, offset); break; default: -- 2.23.0