Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp236931pxu; Fri, 4 Dec 2020 01:54:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXQxW9nJ4Y+7Gqm9sBHFS76eRV0US9jh1dClHCotlSvYiw/Dmhs//T1/dgpc1sl61CbQq/ X-Received: by 2002:a17:906:a51:: with SMTP id x17mr6390280ejf.97.1607075686760; Fri, 04 Dec 2020 01:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607075686; cv=none; d=google.com; s=arc-20160816; b=sGwnIkaIzTNZSshU+R2LnthQIb5L5VI1guAOUk/qXPkZigsBdUhZvMgx5TEd80E+Qz bQ+u2EkgQ/wjDpDRIAo83tg2yR6Hbvb9YpjQvAKoQwdFyA219GXhQlFfTpQGKYO8gt/D L3wB3fvghjBkBqOtwoGJcNwl3MWJWIFHl9Hd72r/AbB4TBz4U3duDWfpORk4d4bckY4x GCoazTVtGoXfXY4yma6EMqtvZ8GRdm3D84zazCN/SpgbJJDOgTKa2LkBZ12A5tXI0dU4 p+JWFRl2jfA9tlPhC93CQOgaJc9aaLlNZzklzxiY1+SZsfmTKxDNN6wqZr8zrE2Hz/fp tCQA== 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=99ZH7GKlk3uW44QoPwR1ldczLnOTaxV73LPDTHmUq8c=; b=ZDDNUWjcnjTZSAXAUG06zmbTN7OL6X9NpVEvn1amV8A17wVKeGKWZ+mHCxiLK294r6 YFCzN/72uxL10RHpj7ex5J0FodDG4bZB8qI4H/AwSdyHU0dn60hP0TD+33+E35Taq0XW 8T2lWWdcixiI1kI6kcPHKuJxtrhfEe2XkPbDQHn/9RplrM2gEYXuQ9wx7o1cZqhl8nC7 XIRsvVWc++qoypbNROEJnicEwinswwHuOhTGsw0AN+TJ0USc5B0VVzg+px7gK9GJB+gA UORijRAWBNx7xHM5jx51cnCkSZ5/1QRivSt8ImjgqmY5oNBFwF/AelW1Ew9GAINkI/Rh iMoQ== 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 dt4si1041756ejc.439.2020.12.04.01.54.23; Fri, 04 Dec 2020 01:54:46 -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 S2387844AbgLDJu7 (ORCPT + 99 others); Fri, 4 Dec 2020 04:50:59 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:34621 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728279AbgLDJu4 (ORCPT ); Fri, 4 Dec 2020 04:50:56 -0500 X-UUID: d0e95a54b6ff490697712feb22ad31e6-20201204 X-UUID: d0e95a54b6ff490697712feb22ad31e6-20201204 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 442080055; Fri, 04 Dec 2020 17:50:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Dec 2020 17:50:06 +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; Fri, 4 Dec 2020 17:50:05 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 0/8] Refine error history and introduce event_notify vop Date: Fri, 4 Dec 2020 17:49:59 +0800 Message-ID: <20201204095007.20639-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E9CA04517EA506731A4081A1E3F223875F831D9094E0AEB5CE6F1301E2DFB8A92000:8 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 v2: - Add patches for vop cleanups - Introduce phy_initialization helper and replace direct invoking in ufs-cdns and ufs-dwc drivers/scsi/ufs/cdns-pltfrm - 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 | 10 ++ drivers/scsi/ufs/ufshcd-dwc.c | 11 +-- drivers/scsi/ufs/ufshcd.c | 132 ++++++++++++++------------ drivers/scsi/ufs/ufshcd.h | 100 +++++++++---------- 6 files changed, 173 insertions(+), 120 deletions(-) create mode 100644 drivers/scsi/ufs/ufs-mediatek-trace.h -- 2.18.0