Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp865503pxu; Fri, 4 Dec 2020 18:44:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf5jL2Evt+lGVVRXf7P/kUjVaSvpvevu0vsVgMouVTdkjmNMZhj3xTTTVdzRz+ISrPqs3U X-Received: by 2002:a17:906:1199:: with SMTP id n25mr9761473eja.293.1607136256573; Fri, 04 Dec 2020 18:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607136256; cv=none; d=google.com; s=arc-20160816; b=Mmac05DIu/j3JBXXXG0AXA7CpHDlnRmPJDx0iopxelhnfxKyq6epEBxlOMaOfpfwuA RmbamWm9DD0DROawYUi+LxF4Wc63kn6ylgYp+jYbLpImTozqVol9P304Do1NGLdYxAzl vq15NxGi/EAj1/QeLsq94KHEpnx8wkr2L25P5eJtIJVEFjudGThhS0pH2vG2HuQTs9rX a6ckH/XCL6dAEAQGqILF5dkatV857m4c54LoywpA7FZ+1o9mQu2FzOInmV1a7zUCrt5f 1xHc9OGmxn3JpRLFkkDxkNTANK2FkwWs3S1HMVm0YL1bKJ9ERWQj781lm0e7m0hyPBwh 75dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=fkS7b64u/wNQPvoAkVvDJ7ShpVpuegWgodqP6mpWFPU=; b=W0x5g79Uxafp9bQ12zJ4poKm/SvdTnnOeFoG9YzjZp0ZoKOTWMqYOU51w9Y4hXIfn1 o5zeh9wsZ+p8EY9d240ao1Pw9FCH4rv+53QMswn7lKTHIa7ahC95V7xVrC8FnwYqH+KY XDb/qf+s6YRxE490lAtfRo50v4+fn+TFPTXMBBFnhSI6BfkVqRCmE6phCsUOFR83p1ZG RRcdxDEOTXMNbhjvWT7Y2jewEJnhO7PugHytv2R595GKkGP/qyPcWwf0cRcJluHLQ3kE 15q6mqIaUF7JF3Osx3CIipqndKt9tvdVPxy9LeRiuGduzmtMDzesOesS7NuR8snS3BjF mc/g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si2477269ejc.454.2020.12.04.18.43.54; Fri, 04 Dec 2020 18:44:16 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728718AbgLEClA (ORCPT + 99 others); Fri, 4 Dec 2020 21:41:00 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43895 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728663AbgLECk7 (ORCPT ); Fri, 4 Dec 2020 21:40:59 -0500 X-UUID: f4922e3ba7e2400db2e14d41092d9185-20201205 X-UUID: f4922e3ba7e2400db2e14d41092d9185-20201205 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 584594122; Sat, 05 Dec 2020 10:39:40 +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 10:39:36 +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 10:39:35 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 0/8] Refine error history and introduce event_notify vop Date: Sat, 5 Dec 2020 10:39:30 +0800 Message-ID: <20201205023938.13848-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, do vop cleanups and introduce a new event_notify vop to allow vendor to get notification of important events. 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 (8): scsi: ufs: Remove unused setup_regulators variant function scsi: ufs: Introduce phy_initialization helper scsi: ufs-cdns: Use phy_initialization helper scsi: ufs-dwc: Use phy_initialization helper 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/cdns-pltfrm.c | 3 +- drivers/scsi/ufs/ufs-mediatek-trace.h | 37 ++++++++ drivers/scsi/ufs/ufs-mediatek.c | 12 +++ drivers/scsi/ufs/ufshcd-dwc.c | 11 +-- drivers/scsi/ufs/ufshcd.c | 132 ++++++++++++++------------ drivers/scsi/ufs/ufshcd.h | 100 +++++++++---------- 6 files changed, 175 insertions(+), 120 deletions(-) create mode 100644 drivers/scsi/ufs/ufs-mediatek-trace.h -- 2.18.0