Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp992049pxu; Sat, 5 Dec 2020 00:09:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfg8EV23MO5DZfvR1kpmWrWDEyA5j7ikbzPra5ROvG4Ht90b/SvtsHGw90ZQLj92UZ14jK X-Received: by 2002:a17:906:8292:: with SMTP id h18mr10987450ejx.481.1607155749319; Sat, 05 Dec 2020 00:09:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607155749; cv=pass; d=google.com; s=arc-20160816; b=RuAvdcn9tsLx0ugc9CtGpT0aDQxHZb0U9PWmPDNNvEFLs3Im87wgRRaQlomIdoD7tV /RQ3OYdmZ8UpWaSOvsA6kgVNvznkrbUOI66bZvIKS2infnGAtcUuLvGIOkmzZARnYs+Y 9D76TLysvfkhrDckB6KueV3G0OqX+rcaioilV5wGC9CZ45G42bR/JE80JrRQ3s5p8w+E bHAnTQexpQCzS3Wv5HsUTRRQ6WZRgE1LZ6UHAIB9DbxkzeautSW7lRCvkC3DyrN0L3TK DpOu11dMcp9mQCFOGVpCO6s1ZB3nNwcqxnzYLUyytczAdzr74eI4vymYyzcyOKIlr6lO 07aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=p6cyk+jrXFrtQeW04bPT4N4SEGE2SRK+lPZXJhswSTw=; b=VFuUFwErTOz1FGFEFAekfozPCI2ltnoZ6gkFpCHnsZWg6PdfNEFWLNiEfgu6wQbFDl 0cNWuDpb8hbMSDWW3nxIftY6reqHo79DKisb2TZ5iRyXRZ3xmpQYexKurXx38hBtb1X+ CxchXc6nqjUO9rsC4P33jO2HgOIOxEAwtatjG6xicKePdtQfgo6w8RXU2JWKE3/3VsxM cUtg4NDiPXh2vBon/26FUkCdNcGYFoWllRfhne1GUX+q3v4WFlftJRYissAdcpMIRztl VC76nVCiq8TjU/0UiaS3CPTfHYyLJ+6oU/6l5S3wdRjNU1rymXKDPctqvCPFcJ7Ukffr XwuA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IBqc6u5A; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=wnvVhOZA; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si5753684edi.183.2020.12.05.00.08.46; Sat, 05 Dec 2020 00:09:09 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IBqc6u5A; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=wnvVhOZA; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728666AbgLEIGs (ORCPT + 99 others); Sat, 5 Dec 2020 03:06:48 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:5625 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbgLEIGr (ORCPT ); Sat, 5 Dec 2020 03:06:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1607155606; x=1638691606; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=8s+Tz4Oo/QiPhBUJRalkFRCfP2x6jEr3XwWqQZUtBdo=; b=IBqc6u5AEfISOP6CgeuAP5LkI/yaypQbG1Ln67vipq+gkXNv84rxa03j ETSB+wutAcahFZYhRtztBlTzbLvQY3Ydndv463S1vS8nbkJEGDNybjkcS J89L3ULgWuDxZf2XXGsPQA4VgQCMavvs/fF4Enz3R+EHVB4ekC/sCxh3Z WohTzEsklh1ouPurcJANHO+dLjmQMah9C1Y8RFEqxWRGOgY/NfyvClfn/ 2PUw/TbGfQ4ewIRadWOcDNwqEPB+tip605dCRGqyfyVTB7McO5kiBHf+0 wNaZT54NmJyCur6c9fjFEFgdwM4FbXAaVuyIZVE19+ieGxk4QFx37YszC Q==; IronPort-SDR: Mb5qJjUZms9pADqzV4gFMp/CyuU7xl7oyHLDPf5EC//IRTY3TTLe6VFqGciwj/VOa+rTJwPyC5 A9BBzNEOhpsR6d96floQ9jGKFTgPKajpB+m6DbarvBrGi43Y7pDFwDonuIpNo1wF5F5f8FdC+C ze+9fbXF/vTFBcZVHXHtzkeIOb3dBBO/SNqM/a6A3GjOZ13S2+oicE4Ld+JyDzANuDBEnaCLbm s/UJcmAVLqUkafR2/skLfx8xuSdllkrPBFGDtbVVRLQ4dSG1VoVMs+gTnffCsPAziBrHwcxRZM Dgc= X-IronPort-AV: E=Sophos;i="5.78,395,1599494400"; d="scan'208";a="158955626" Received: from mail-dm6nam10lp2109.outbound.protection.outlook.com (HELO NAM10-DM6-obe.outbound.protection.outlook.com) ([104.47.58.109]) by ob1.hgst.iphmx.com with ESMTP; 05 Dec 2020 16:05:39 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nowHzzEfYQM2Kl3+qmmzzbmHc2OhPdluvnTPB/ofDCEcklnPzoUHx/ICXldqoLABKHHWzGJ3dA61/X3k8Q9lK/EOrQyYrLuY/3l6Naa4j5+171sL1F7SolSKU6UkhwR5CaynNi1pPlNi/wmds8Fanvw/IHZhGyhbobQX6gF8qP3524VX9t70eDihUptcP1p+CO0ItPmo8q5WUS0WDRpkUTT9sRSJUT1Ro2+mRc7b1MlrS2lpgmT7VxlsEPCHUR4SBwoKK/FIXPDzPAEIThnmzRHMHzckPra5W+4yvr8RXLl62q2i0QPRRSfE02ghnQoyIF/5L5FXqxB+0JYfLXu+3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p6cyk+jrXFrtQeW04bPT4N4SEGE2SRK+lPZXJhswSTw=; b=fjp4wDEVJ/Vyamc1j+loW87FTv5XkFyE6/FccBsgJVURvU9IxSCQJDh84nEmkpTluPg0+m4ASgV1LfpRebxbHT5/8bGaRUK6xmr3NVF1jvFBiQi+zUztBqVTUHCTZEvWduCtfFPfXwqGAwj1ME/z1UqEXXR84CKsbvgzUTb2jBrad9XkaKTFt0OCXQp95TvngD7AIO2XrJZwF2Bn2/SeIKs+PCiEQbdqbuATNOyfTu6PQH/kL6CNdAYjOd8weF+bqbiXBZpx3VYWdL2T3R8/3VU387GCKb6PHD/W9pxs4KDTzT74wf3ecHHJRJ3axFY0oqIy5YVcxfTufzFbN0bhQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p6cyk+jrXFrtQeW04bPT4N4SEGE2SRK+lPZXJhswSTw=; b=wnvVhOZAZGTebwAryyPdp5PFivC9bPNYQr2EorjO9X6tQNhUv9EtX8DxRiuc2xJPSiEp+eJ3tEB6oMhozX0FqZa/+BaRezCOWJhwuKY05wcFwP9LY4W4oB0Hh+bSypya7r4TkzQPmmAx+zlzJhV376KltmHzAv+i+3ygSZF/YWI= Received: from DM6PR04MB6575.namprd04.prod.outlook.com (2603:10b6:5:1b7::7) by DM6PR04MB6667.namprd04.prod.outlook.com (2603:10b6:5:247::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Sat, 5 Dec 2020 08:05:39 +0000 Received: from DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6]) by DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6%8]) with mapi id 15.20.3632.021; Sat, 5 Dec 2020 08:05:39 +0000 From: Avri Altman To: Stanley Chu , "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" CC: "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "cang@codeaurora.org" , "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "chaotian.jing@mediatek.com" , "cc.chou@mediatek.com" , "jiajie.hao@mediatek.com" , "alice.chao@mediatek.com" , "huadian.liu@mediatek.com" Subject: RE: [PATCH v4 0/8] Refine error history and introduce event_notify vop Thread-Topic: [PATCH v4 0/8] Refine error history and introduce event_notify vop Thread-Index: AQHWyq/pOn7SLSBA3UysiLzNTb9IZ6noIz6ggAABz2A= Date: Sat, 5 Dec 2020 08:05:38 +0000 Message-ID: References: <20201205023938.13848-1-stanley.chu@mediatek.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mediatek.com; dkim=none (message not signed) header.d=none;mediatek.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [77.138.4.172] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 6e8e45ca-7a11-4329-b054-08d898f48dc5 x-ms-traffictypediagnostic: DM6PR04MB6667: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tbkBwM7hzSvpR6fsJD+mD+W6l4aZD2iqhixtoUf/qtbSxxWat9jpH5Gc47H/RXJwu26ru6woi8/qImF59J+ub1wUfCpNKmRkAlbzcu8dE6PXinvJy5fat5BCO0hmH9NVU/RucNSYBZ5uKdhbjLuqRYjaJFrZ4Cx3iIQ24Mc07eA/m0n49B0GW7ppXa0O0lzaqb+cKG4EZBhlA+72vE1bYKGbAA5ymH3WiIrt2rbNz8tbwrKMdSJx8BZ/YxnzPWay4BS4eviP3Jdr2d0AHZUx+E6GjuNKCXLBVavNxHZDYxMPtZqL9UsU2NDzb4S5yY6ywfp3DIvqTX8Y/LImP7yg0Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6575.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(366004)(376002)(39860400002)(136003)(2906002)(7696005)(86362001)(6506007)(76116006)(71200400001)(2940100002)(33656002)(83380400001)(9686003)(8676002)(7416002)(54906003)(186003)(26005)(52536014)(4326008)(66556008)(55016002)(66446008)(66476007)(316002)(8936002)(5660300002)(478600001)(110136005)(64756008)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?jBqd4L/IyMl3q+qfqpiG4XJJAX5SBXr6uMnc+G5cnjVyaLbafZWlf36/8Sv+?= =?us-ascii?Q?ayCI+SgTWWVuw/dRHNoM+r6v3uFkIERd60sddLVMsRqodUFJ/NYLyh4Jboqn?= =?us-ascii?Q?EoQpg1arS0/qbHUgbkJw1oTzV7r0u0fPWLsXnl5OInzl/iae8ZfAoTPsWBRf?= =?us-ascii?Q?NPnJmoJQpLaZGZMOys1+Ifb9gRW34uxXCCQaL5ccKo6HdbRvc/ja0fz6tcuY?= =?us-ascii?Q?vFN1tLRKx3tRMO6+BW4n6WzLYz77YmdLvz+OXkpQ4XSIWqfjVAJAcX40goEF?= =?us-ascii?Q?4/do+wFOXV/jX04jtzjH1NBeeKf2TFrwUI1WqpZMBl+paBJDhKWn4z3SdC9u?= =?us-ascii?Q?AlZJU1wgCBMDlivA/lAPshPPesfNYsK38zUAXI736ww1U0fNpSlEZ/LbXQkD?= =?us-ascii?Q?Mm9hElqSRZrRXvemYrFen7y0YlMHEGEl51c/1XvRHToL3hM7FBxJWiCTIe8Y?= =?us-ascii?Q?St4NCSBmy1O66Vor1t6SF1HxrECtu/M9xtsFxJjmIa9Aabr3ZQZ3EPEgGAiX?= =?us-ascii?Q?1PiHPzWWThOT/cG6khShoy43nAzQKS5O+YRCyf59+jegBx0JKCUW7OQXM/EW?= =?us-ascii?Q?6GGTWyNsYoQPzNOQ0QXovigzLf7k1+0k3RunC1RlWzOU8c6Fvs4LQTS2xPyk?= =?us-ascii?Q?OkCxVWaqmwvRge9QXFb5lqayHmiQ1KAtojjXendcP4FEUg2l5O6BHFMYPC3L?= =?us-ascii?Q?y5n3jXrJ5YU99km+wpZmo064WQV2QnOR43/bU279i0CemTUq/SkLYJadrZU1?= =?us-ascii?Q?4q3lUUGfUz1zO/ptMGjUaiiXfFkW4DdF3nRNHJvd1IDYd47RKOrzlsotLTxY?= =?us-ascii?Q?Gm5C0Gyv3//kFMJloXMQpKFMLbu43G5rxLxKYU7gooVyHrrNg5jD9fGdECXw?= =?us-ascii?Q?BYxU+4tqBNefNeV87fQ9xwm5DYZsQcb/wggywJvy5iHzxPcaOFu64sGBaQ7y?= =?us-ascii?Q?EMsfqhbc2pGJsqEPlbkqhKYDrrWbfnLYEvvdct6CGT8=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6575.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e8e45ca-7a11-4329-b054-08d898f48dc5 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2020 08:05:38.9765 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lD+/IxlCjzQgVjPcEfk55ybSN1JKdUqj7O97TIQYj0n4Vr/2xsPN+XnnVCmUBw8D+4aD6ZRcbMmK+2A2A6FOfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6667 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >=20 > Hi Stanley, > Will you split this series to 3 separate series: > Phy initialization cleanup, Error history, and event notification? > As those 3 aren't really connected? >=20 > Please maintain Can's reviewed-by tag for the error history patches, > And add mine for the phy initialization, so Martin can pick those. And for the new event notification vop of course. Sorry. Thanks, Avri >=20 > Thanks, > Avri >=20 > > > > Hi, > > This series refines error history functions, do vop cleanups and introd= uce 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 covent= ion > > > > 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