Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3238730pxk; Tue, 15 Sep 2020 13:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA8zu9Sdq2HMuvqeYNIawwzKyu5xJO1w5aWqA62/SXfcXj5FreZNlbAsUmWTHTIpz4QupP X-Received: by 2002:a17:906:4f8d:: with SMTP id o13mr21511293eju.20.1600203126689; Tue, 15 Sep 2020 13:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600203126; cv=none; d=google.com; s=arc-20160816; b=vkgocXscsYuQnng+RuJJ1Gh/uX+dsHOFKl2tzlEyyZJzg7sS4arFG87RyZatO5gDsd zOBfRsV0O48ilsXv+efoYwQ84boLipdkbZJ6anitgXulGyNoltBPD/l7qtshJePWy+48 /9kjdBVB80x7TslSsugj2WTPKXxLnoxg2s6dj6HO/mwpbd1ZPQD3zc0fte9OAWItNJlH ErJBen622LfiAGFSAM+/tSTl6QxtutyLVdys1EgsLUZEmmhbuXieBXEAX9HZwy9/M7Lg LbF07h+PiEIqwGEL0534c43KjJSfXdnDq1rYBMQqp/OaUZhunMyHIKomm3Al/cA/eAZ7 hP+g== 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 :dkim-signature; bh=R2EgaGBjHWF2R3qL6Ee6SMKp/p1Sys/tveK9lj4zhAI=; b=M2SbRcIcnPueMilfhI3xZCHTK+g26WvwP0XWwZPKWetdtGoDX7emHXgJ8q4L/IvnaU mI3T+FtgR7ge6+5pq9aZ+7NO5pTm2Uqx4A+UaInxRreIw7j2hTVA9ZcT3zgx/KlYOtDr nWIsQJYkq33FR4IryghtU3gFFh608X3YnxMgN9fcKtYYsoHaimn5NiMWBfuzY+IorZGd PNm9voHuCTtY785TdTrlfeTfeB2GNwfaO60z6Hbz70j8xfIcJA84iHxocoj1ca2rqJP3 I/K9qssguEabcxa66oFVNOi/tqbWK9qCu2uWMRIOdkCDls93I4koX56cmq9ERB5blNfQ Z+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=REEoR9Z9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si8223766edw.359.2020.09.15.13.51.44; Tue, 15 Sep 2020 13:52:06 -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=REEoR9Z9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgIOUuc (ORCPT + 99 others); Tue, 15 Sep 2020 16:50:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:42760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbgIOUqq (ORCPT ); Tue, 15 Sep 2020 16:46:46 -0400 Received: from localhost (unknown [104.132.1.66]) (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 79C7620B1F; Tue, 15 Sep 2020 20:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600202798; bh=iQVkWhUeydRTqFowSvAGvDoWIWi1b0xAmpNyoT5VH2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=REEoR9Z9zfNJqcyZLGcjIj5UQXlNdPoM9F/kW6GAD+oEQ1jMIDRo1otPQ6qgc/hM+ E1/vT0nDts4E+YDxhY7ldIomLycRSrPUiOyJtluCaRMOi+vDRJzk93Su4CJd/lSQlW Qxr2GI+BythJRXMeWjrRqcJ4/7GKCHpJsLpdU/54= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: Jaegeuk Kim , Alim Akhtar , Avri Altman Subject: [PATCH 5/6] scsi: ufs: show ufs part info in error case Date: Tue, 15 Sep 2020 13:45:31 -0700 Message-Id: <20200915204532.1672300-5-jaegeuk@kernel.org> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200915204532.1672300-1-jaegeuk@kernel.org> References: <20200915204532.1672300-1-jaegeuk@kernel.org> 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 From: Jaegeuk Kim This patch shows ufs part info in kernel messages for debugging purpose. It's useful when we only have the last kernel message. Cc: Alim Akhtar Cc: Avri Altman Signed-off-by: Jaegeuk Kim --- drivers/scsi/ufs/ufshcd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index bdc82cc3824aa..b81c116b976ff 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -500,6 +500,14 @@ static void ufshcd_print_tmrs(struct ufs_hba *hba, unsigned long bitmap) static void ufshcd_print_host_state(struct ufs_hba *hba) { dev_err(hba->dev, "UFS Host state=%d\n", hba->ufshcd_state); + if (hba->sdev_ufs_device) { + dev_err(hba->dev, " vendor = %.8s\n", + hba->sdev_ufs_device->vendor); + dev_err(hba->dev, " model = %.16s\n", + hba->sdev_ufs_device->model); + dev_err(hba->dev, " rev = %.4s\n", + hba->sdev_ufs_device->rev); + } dev_err(hba->dev, "outstanding reqs=0x%lx tasks=0x%lx\n", hba->outstanding_reqs, hba->outstanding_tasks); dev_err(hba->dev, "saved_err=0x%x, saved_uic_err=0x%x\n", -- 2.28.0.618.gf4bc123cb7-goog