Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1188945pxu; Sat, 5 Dec 2020 06:58:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaSIoZIv7xOPv/wMvlrhR43lKuecC2A95DogwjP/Po2/0/8P+yenMJiQrFQCE1oftj9BIr X-Received: by 2002:a17:906:d72:: with SMTP id s18mr11913748ejh.110.1607180299151; Sat, 05 Dec 2020 06:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607180299; cv=none; d=google.com; s=arc-20160816; b=tGRlbQnwIpcmnPmaUoNVAjkbohIkCgjZKMzvuBq1EOYeZv9zupRqmCWjLU2EjdWQCU RlZNv42uAG/693gQMtzDt6oqZS9qMZxcZvV7Jpe8KZ7lKCmqV/6i3+NvrgtteHu+hruh NoOg+z/Lh+tlOf0mRm/hVv2tgIyGdbh4C6jNTssGf1qGscLMsrxMOmItoVmCuxtDjiEH dMVhZ7F/Nsv469MSS1LmuCNtIL1xh5vtIpukSGIsOKha4t/6vfNWxsfAvl3ysKdjvt6s bpZ19NqBbAHBO+ukruVjy1iojycpLC0p9fCejGx6/kjWmPGp5c3KI0eELlY7X4CgxCa7 nCiA== 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=KuGBaphBjtpR/aBWlwLABHvYR44axIIAggbTd/orSOY=; b=IL9FSfp1r524/I0rmYoHZK6AXf3GAkuial1h3j/HODKnIH2k60O6MAcEZcCYUThty4 EP6AatdhASzparf27rOkVbnrRVVKUdxSAgFvhLDbsoa7fpSTIIt/QdXlgVW6fz38HU6i +GtDtlaUr6HZCR14PXZP5HBNgdB3jBJUU77NrfueVAXbdog0K9YBl9Ae+0PIynKmlgiX RPiDUisL3sRe8ECvmVaK2Qqw7B8EKXZyV9Oa6jTMi1/+1P9BzOcl3u2TiZ2Royy/1hnG yMB77VOqmn4p3tf2ar8mN5Vbo2rYNeq4m4Bf6xYb7FHAAgXKvWjEzlelEZ/NRu3GKLf0 X/WA== 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 gw23si2457736ejb.235.2020.12.05.06.57.53; Sat, 05 Dec 2020 06:58:19 -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 S1726208AbgLEOmS (ORCPT + 99 others); Sat, 5 Dec 2020 09:42:18 -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