From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham 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 978FFC433FE for ; Sat, 5 Dec 2020 14:46:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 50CF42312A for ; Sat, 5 Dec 2020 14:46:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726214AbgLEOoG (ORCPT ); Sat, 5 Dec 2020 09:44:06 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39357 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726043AbgLEMzA (ORCPT ); Sat, 5 Dec 2020 07:55:00 -0500 X-UUID: ff7dfe36ced54eb1a799d4fc0f518aa1-20201205 X-UUID: ff7dfe36ced54eb1a799d4fc0f518aa1-20201205 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 356616503; Sat, 05 Dec 2020 19:59:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 5 Dec 2020 19:59:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 5 Dec 2020 19:59:02 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v5 0/4] scsi: ufs: Refine error history and introduce event_notify vop Date: Sat, 5 Dec 2020 19:58:57 +0800 Message-ID: <20201205115901.26815-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series refines error history functions and introduces a new event_notify vop to allow vendor to get notification of important events. Changes since v4: - Seperate patch sets according to Avri's suggestion Changes since v3: - Fix build warning in patch [8/8] Changes since v2: - Add patches for vop cleanups - Introduce phy_initialization helper and replace direct invoking in ufs-cdns and ufs-dwc by the helper - Introduce event_notify vop implemntation in ufs-mediatek Changes since v1: - Change notify_event() to event_notify() to follow vop naming covention Stanley Chu (4): scsi: ufs: Add error history for abort event in UFS Device W-LUN scsi: ufs: Refine error history functions scsi: ufs: Introduce event_notify variant function scsi: ufs-mediatek: Introduce event_notify implementation drivers/scsi/ufs/ufs-mediatek-trace.h | 37 ++++++++ drivers/scsi/ufs/ufs-mediatek.c | 12 +++ drivers/scsi/ufs/ufshcd.c | 122 +++++++++++++++----------- drivers/scsi/ufs/ufshcd.h | 82 ++++++++--------- 4 files changed, 161 insertions(+), 92 deletions(-) create mode 100644 drivers/scsi/ufs/ufs-mediatek-trace.h -- 2.18.0