From patchwork Mon Jun 15 14:31:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 213758 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4AB4C433DF for ; Mon, 15 Jun 2020 14:31:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA2F1206B7 for ; Mon, 15 Jun 2020 14:31:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="S6ajybk2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730177AbgFOOb3 (ORCPT ); Mon, 15 Jun 2020 10:31:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:43822 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729243AbgFOOb3 (ORCPT ); Mon, 15 Jun 2020 10:31:29 -0400 X-UUID: 24c58351812b4bacb9165230d860cf28-20200615 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=nisAnoc7mvlaGA1pizlDXlUzsDkZZeGHJrykO92DJN0=; b=S6ajybk2DfDg1YRK3IOl75f0smY0hXt0B/w3F4KOpVO9L/elgTS7eNdz2s0HXSpJv9g8NqnV+4w2iqdKpNXfpZO7wmZWww+hxAw3qIf2OPPdIr4CkBU7J2AqljClttyapA6UGBbN+oejsLM5IMjdtAMi2YmGseP7rhvbuD4ldd4=; X-UUID: 24c58351812b4bacb9165230d860cf28-20200615 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1383805496; Mon, 15 Jun 2020 22:31:25 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Jun 2020 22:31:21 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 15 Jun 2020 22:31:22 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 0/3] scsi: ufs: Export UFS debugging dump for vendors Date: Mon, 15 Jun 2020 22:31:20 +0800 Message-ID: <20200615143123.6627-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi, This series creates an unified entry function for UFS debugging information dump, and exports it to vendors to help debugging. In the same time, do a small cleanup in ufshcd_make_hba_operational(). Stanley Chu (3): scsi: ufs: Remove redundant label "out" in ufshcd_make_hba_operational() scsi: ufs: Manage and export UFS debugging information dump scsi: ufs-mediatek: Print host information for failed supsend and resume drivers/scsi/ufs/ufs-mediatek.c | 16 +++++++---- drivers/scsi/ufs/ufshcd.c | 51 +++++++++++++++++++-------------- drivers/scsi/ufs/ufshcd.h | 8 ++++++ 3 files changed, 48 insertions(+), 27 deletions(-) -- 2.18.0