Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2375461ybz; Sat, 2 May 2020 23:08:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKu3kG/PRh9iG4eDfeuOdb1e/zOCBgGITAHqk+dDZc908p3o9mNW3XjbkxOClX3BOsEC+Mi X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr10123979ejb.110.1588486100286; Sat, 02 May 2020 23:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588486100; cv=none; d=google.com; s=arc-20160816; b=G3dIr1ksR19V+15Ix0eudkUSJrpRIgzyaxk2N4S/dqg19CtcXwhfRhBjl8zcyOXdpg Rbt8NiVdHTKg0XP2BYjuMjuRN/s9V91d1MIPTRBzY7CnLDDpzUVooC9nytbGJhZX7/5D DvO1JV4GZHW6neW5UtyfGlUqmPfJiKlv0IO2CB9aL3MjYxkGgrprMVS1WqJnrBys9Ait Vtl3ASj6f/lMmaQKfxYeFsj+QD72TQ0ILnYmZ0HQiNTyBPhDhnq1RIvGbRv9p6k5slNG of7Kz2aHXeaUMJtDf1MSd347jnb0hstu/xpDxMWTYpLAqiKsIzTPOoTtLrMlf6Fc7bh1 Hq6A== 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=lvTox59cW7leiqB4qAxOe8+RTfYQVWs09Dx8wQB1BQk=; b=FcQj/aIr7vRemktdh3IvbQjFE6XEAaw7z3UusJKGFs9NnuWHFGjVE7TfCf/QbBQNsR RSvh/LQ/bORjXvnZDiOGeAlSsYd7C7Yx7x3E4zNyOYCfJGao3sRzx9P7/vOArLB6Kfn+ o3DAF4lUaY4RSbp7+DAjAau37D6xelvKCvPksKzb4vqm/+QLO5aPYeEZJTtsJti0v4lN Eqrg+n02Ciqej9JpOQIHv9aOOTUV/lA5TpodtRQ428D48hD9uE2wpOGywfunhMAVkz62 1A4YErXl2ZTrMHxHvGMvoj3H/OOVqnE46iXCh5+4YYuW9VwP3uv3Iu7iliFRUUBT8ilN 1QVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OkA6td7V; 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 lw2si4666294ejb.328.2020.05.02.23.07.17; Sat, 02 May 2020 23:08:20 -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=OkA6td7V; 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 S1727085AbgECGEH (ORCPT + 99 others); Sun, 3 May 2020 02:04:07 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:43183 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726935AbgECGEF (ORCPT ); Sun, 3 May 2020 02:04:05 -0400 X-UUID: 3f42fdb35e3d4ad7b309ac2047d7ebaf-20200503 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=lvTox59cW7leiqB4qAxOe8+RTfYQVWs09Dx8wQB1BQk=; b=OkA6td7VcRog0oaLwxLii552tbuHDrk7Xr8wmXbxeo20KTVmXNEonHXNFyK+VBr3b88kNGs7kHP9GEtl21lYEQ0/QYg0TxtcILW2eMAmQ29VEdB/iDPbeMgGreiRD4KPp+odj9/bMSfDSCnqVyf36dvTvUkTpUVWIEryp7tmfa0=; X-UUID: 3f42fdb35e3d4ad7b309ac2047d7ebaf-20200503 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 231627101; Sun, 03 May 2020 14:03:57 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 May 2020 14:03:55 +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; Sun, 3 May 2020 14:03:55 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 4/8] scsi: ufs-mediatek: add fixup_dev_quirks vops Date: Sun, 3 May 2020 14:03:47 +0800 Message-ID: <20200503060351.10572-5-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200503060351.10572-1-stanley.chu@mediatek.com> References: <20200503060351.10572-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E0035863AB47457224CD7CB1922709E8B7DC8A3D362EDA397C102489C0B91FE72000:8 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 QWRkIGZpeHVwX2Rldl9xdWlyayB2b3BzIGluIE1lZGlhVGVrIFVGUyBwbGF0Zm9ybXMgYW5kIHBy b3ZpZGUNCmFuIGluaXRpYWwgdmVuZG9yLXNwZWNpZmljIGRldmljZSBxdWlyayB0YWJsZS4NCg0K U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