Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp317296pxb; Mon, 2 Nov 2020 23:41:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr9idN5vBjzRGb0kD9wE547iPdrgxnAx8ocrveRy3yEYmIz8nYyLNVmPPHhxT09pe+tpPI X-Received: by 2002:a17:906:48c1:: with SMTP id d1mr18655835ejt.123.1604389307314; Mon, 02 Nov 2020 23:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604389307; cv=none; d=google.com; s=arc-20160816; b=Sno0iRjJ/9k0ljnSN/7fICAU9NnwnwsteZdnaOsFhqGxki5IpXQUGDBhkTK0DFUaIx Dau+ZWlEvHtIxlQMmbtF22u/SIrpqPDLrLI/5W6v0wAvluBAAqK7K0fOAGEcMxztSJ7l /Yt7JkvalmqxhpkU83fJq7SL/TN6Fiv7G1VT9Qr8qNzVfllhIR85M2+iqCFcJQylkdfy OXV9YDki9WHVzOuBjgmh73jHdie/5wG8J+u5387qWEkL0/bk9BARH+03LAheckGAVxK0 6A2QxAeDLWKUESAMifa7qA62tT9YXwqJZLqoqS8ndh6E0uxpTlxYqvt2G+5xtLBQxK9N gC2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=ZZrwHSS1iEJcnFxsaFwOkWSIeqBrHNXbvsvad1w31c0=; b=zLM1quPPsfaJsw7ofVlR7AcnAdjq3cvCKzk22QzpG4bnqj8K3HYrPt94ElFsBsUXVT 3n4HYfC6uCsOzvqbAEwX6Xg82w4SSuCu7xKXqEeTOqKVDnvmJ/1WsiJtPub3nj0NFSl4 /QhN9Cb4Q+Gvkx/QcPEKVOPsVUv+xVCw3Tdj5jdYr6z84yb+9v9XPFcwQU74smo7BEbi PJYw+u1lTCqBGEf9H07XHot6Q6GhzBEs5wPUP0XRD8GwPs9hLrMuPxqLaKXKaxfkw+Qg ycx+Tr4jTJlqfEnv++WunHQDi2Y/Pz49Vcm5vi99CJEQJ4m70J4eoNdMi/lerdAaDNqm V+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jpEKNxLM; 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 g5si5061038edn.9.2020.11.02.23.41.25; Mon, 02 Nov 2020 23:41:47 -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=pass header.i=@mediatek.com header.s=dk header.b=jpEKNxLM; 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 S1727880AbgKCHju (ORCPT + 99 others); Tue, 3 Nov 2020 02:39:50 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:54905 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbgKCHjt (ORCPT ); Tue, 3 Nov 2020 02:39:49 -0500 X-UUID: 51b34c5255d245b689b6dde48e5d9086-20201103 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=ZZrwHSS1iEJcnFxsaFwOkWSIeqBrHNXbvsvad1w31c0=; b=jpEKNxLMJF3m1Z2UJy/TLKydQxeNHaEsfpxxLSTBf/189X6IgF1caOFcvf27tZduzmCI/3kn4RaTzyE3nu2JoYTuVNoYsK87bkvtjpCf0Y8EVzvwV3BltVdt3UqdsohYaySfcBFan1SZ2JYC6bFUWlXUO9WwookACIf9u9FmsCk=; X-UUID: 51b34c5255d245b689b6dde48e5d9086-20201103 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.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 325287640; Tue, 03 Nov 2020 15:39:46 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Nov 2020 15:39:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 3 Nov 2020 15:39:44 +0800 Message-ID: <1604389184.13152.9.camel@mtkswgap22> Subject: RE: [PATCH v1 1/6] scsi: ufs-mediatek: Assign arguments with correct type From: Stanley Chu To: Avri Altman CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "matthias.bgg@gmail.com" , "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" Date: Tue, 3 Nov 2020 15:39:44 +0800 In-Reply-To: References: <20201029115750.24391-1-stanley.chu@mediatek.com> <20201029115750.24391-2-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 0E859257A7E797E8F756E436308F7A8CC066855BC4D0EBA211CF9AA173D4A0132000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXZyaSwNCg0KT24gVHVlLCAyMDIwLTExLTAzIGF0IDA3OjEyICswMDAwLCBBdnJpIEFsdG1h biB3cm90ZToNCj4gPiANCj4gPiBJbiB1ZnNfbXRrX3VuaXByb19zZXRfbHBtKCksIHVzZSBzcGVj aWZpYyB1bnNpZ25lZCB2YWx1ZXMNCj4gPiBhcyB0aGUgYXJndW1lbnQgdG8gaW52b2tlIHVmc2hj ZF9kbWVfc2V0KCkuDQo+ID4gDQo+ID4gSW4gdGhlIHNhbWUgdGltZSwgY2hhbmdlIHRoZSBuYW1l IG9mIHVmc19tdGtfdW5pcHJvX3NldF9wbSgpDQo+ID4gdG8gdWZzX210a191bmlwcm9fc2V0X2xw bSgpIHRvIGFsaWduIHRoZSBuYW1pbmcgY29udmVudGlvbg0KPiA+IGluIE1lZGlhVGVrIFVGUyBk cml2ZXIuDQo+ID4gDQo+ID4gU2lnbmVkLW9mZi1ieTogU3RhbmxleSBDaHUgPHN0YW5sZXkuY2h1 QG1lZGlhdGVrLmNvbT4NCj4gTG9va3MgbGlrZSB0aGlzIHBhdGNoIGlzIGdpbGRpbmcgdGhlIGxp bHk/DQoNClRoYW5rcyBmb3IgdGhlIHJldmlldy4NCg0KUGxlYXNlIHNlZSBleHBsYW5hdGlvbiBi ZWxvdy4NCg0KPiANCj4gPiAtLS0NCj4gPiAgZHJpdmVycy9zY3NpL3Vmcy91ZnMtbWVkaWF0ZWsu YyB8IDEyICsrKysrKy0tLS0tLQ0KPiA+ICAxIGZpbGUgY2hhbmdlZCwgNiBpbnNlcnRpb25zKCsp LCA2IGRlbGV0aW9ucygtKQ0KPiA+IA0KPiA+IGRpZmYgLS1naXQgYS9kcml2ZXJzL3Njc2kvdWZz L3Vmcy1tZWRpY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