Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1445626ybt; Sun, 14 Jun 2020 23:50:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGQ3H9nxYpUxDIH804mLTT0EjYw7Xh5LNWzUCYs+vmPwq5IygGtvjAnlvEPfYUyXESXmeu X-Received: by 2002:a17:906:7f05:: with SMTP id d5mr23696652ejr.70.1592203838878; Sun, 14 Jun 2020 23:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592203838; cv=none; d=google.com; s=arc-20160816; b=i5O1XxijyWK4bQl6uD0r9HT8QNk07fVG+PLau2T/e9Ehkz7N1S76MP8N+OFjYYqS1S YPDnV3S5L7TfwpGMAx830ATE0L15IvKAsBfYKPGTWCn2KDNAIx9bQ2rAgdYofSK3IYH5 cb/PRUQurkLqeAYW1AxEho+I2DgpxvkkHI8u7FTGmmAboHqdaCduYb610YMnh6JQ14RY 1l4gt4Pw6YyFCzSg7x/+wirzDQMfgLhIz7VrNff2fWarQH50xqp7WzEyqRF7z9lPQ9tH ThK/a0CDxGCZva3TpE9E/zm2KHRehWsUfLowehHegjM0Rr+2iCV5R4j58MHSenU2DcPO xxzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aIi/Cvo5z+NELDxxEWG3ffiIsJ6CjwE2XAnl7RAvFVQ=; b=m7fLjSQd2+waS5IgFCzQJ2Duqa1eJd9cLT8e8OpHn0YfLChY9X40tXAxPK+ivLVLPs c0CiGXbzb5xbcAReyt8FdyPsvRrXViGg8Kw4N9MOOAVD2E8Zyb6STD996n3m08Waxnma ZXIogTDGRKGwOQfECF7JUNm1NX9rsekWWAi124l1NoHfpYNsU5zozBSDzR8RcD6+kJQX UePITaOCqdBj/Qs3xRStHJKVt58px4tteij3nT524NPIVdd0WB7M0zn9NhZPVswRSMKQ DWMNtv+d0KsNObxYp0BlvfzZ2g9ZWzWl0hAC2lnRqks+AyRht5W2kkfoZV9TFHGg4rbm F0Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="IxtW4/gO"; 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=pass (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 e5si8360101edk.409.2020.06.14.23.50.16; Sun, 14 Jun 2020 23:50:38 -0700 (PDT) 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=pass header.i=@mediatek.com header.s=dk header.b="IxtW4/gO"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728612AbgFOGsB (ORCPT + 99 others); Mon, 15 Jun 2020 02:48:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:56022 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728481AbgFOGr7 (ORCPT ); Mon, 15 Jun 2020 02:47:59 -0400 X-UUID: 8c0a850e63794cb1b6cd3ce60b21e96e-20200615 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=aIi/Cvo5z+NELDxxEWG3ffiIsJ6CjwE2XAnl7RAvFVQ=; b=IxtW4/gOFeGN11XY2j81ASvLROsflJAMbKF4w7cAtzmUUvQiBEPxt1c1jDB/JSP8wBtjgzfxUi8Zo/ZrMDRAMiA6xP3xzsL/lZ1OdmmdAPcQ6terWlCSJWkPeTMOs1LIF/iV2Y6q0AE0itubT9o6yakTt4QzelHbv49zZbxUYvo=; X-UUID: 8c0a850e63794cb1b6cd3ce60b21e96e-20200615 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1647051466; Mon, 15 Jun 2020 14:47:56 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Jun 2020 14:47:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 15 Jun 2020 14:47:53 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v2 2/2] scsi: ufs: Add trace event for UIC commands Date: Mon, 15 Jun 2020 14:47:53 +0800 Message-ID: <20200615064753.20935-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200615064753.20935-1-stanley.chu@mediatek.com> References: <20200615064753.20935-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIHRoZSBmdHJhY2UgaW5mcmFzdHJ1Y3R1cmUgdG8gY29uZGl0aW9uYWxseSB0cmFjZSBVRlMg VUlDIGNvbW1hbmQNCmV2ZW50cy4NCg0KTmV3IHRyYWNlIGV2ZW50ICJ1ZnNoY2RfdWljX2NvbW1h bmQiIGlzIGNyZWF0ZWQsIHdoaWNoIHNhbXBsZXMgd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