Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2586162ybz; Sun, 3 May 2020 04:36:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJ6ZHHpvaGKQuAFEo74j34GrqDQHbv5uhkqizwOqY+vXgqD3kfdPZGoP70Nj8Dn6W3m3z+x X-Received: by 2002:aa7:c453:: with SMTP id n19mr10549279edr.218.1588505807455; Sun, 03 May 2020 04:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588505807; cv=none; d=google.com; s=arc-20160816; b=s9CRSsB7nAZCzvnz67/xGnD7oG0/gZREe2YzAdQGNRvw5bY8r2si/eJjuB0tmJcd9X xj5DX2Xp1XhiRX2R0LU0w0VM+wpVJNfVFOUOz6x4jwAV81Rtdb0YjU31RUqA2kiuLE3e qwsZnCDo7sqDJuUGuLSiLr87QB5VDzt7/VfjQ1dsp31OYqr444A6QAlhr3yS4ChFx539 9Fe9Zde6xFzhogssmwNNgl8SlWcg1w+8jehkZwjkBBFtYXs7Bj4fqBer1KwDciNEx6y3 YkrryCujwZw9HlCKNYgncWr1Br2sfTM1E5eexPk3fcCt84QQBXDWeRSch4afEUmv+vjt RMdA== 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=wAjuCJ0b674RpoUSfuwISdtfHy8umDI9FhBxJkRDvfK11VAkhV4UFYF352q+7LDH+9 Ickp3bveZdvx+mxvO101rItkwJ0BI+7WTo8UPkfxMQ93qjjO0zxxMTGeUqQmIfHk/pZI KyKrAPVy+z0XpZWlYC4x7dBbxzQ3N4JjLmDkPvmrq7CTS594la5DBI5OgjtiYYIt1sb0 7pwfLl4uluLwEL26CsRid9X2H7h/pE7nias7DWgTmAiUDibOzJA/mMH2vkFeUl6TzbVV N+AfWCTxOmfhBF8LxWcNmQmUd2ckh6Y0kSObWE9loMh/g/X/L4fO+kehkRdwYCgrp9i9 Q0PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EnlSjnNF; 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 lw23si4898657ejb.423.2020.05.03.04.36.24; Sun, 03 May 2020 04:36:47 -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=EnlSjnNF; 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 S1728332AbgECLej (ORCPT + 99 others); Sun, 3 May 2020 07:34:39 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:32267 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727783AbgECLee (ORCPT ); Sun, 3 May 2020 07:34:34 -0400 X-UUID: a79de085e4334628891a3345623c995c-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=EnlSjnNFisDMSo82oi133VKAtKuxnoV38CFHrcYnRHSfFwapboDlFiwgEDuuBdWtHSpSiAgecRv3wBJZGXhl0pxFZqH17ts5SLcg68T8UdE3y70Kv1CkKQKxPJl+iS+mPw82C78VxpjUeegl3gq9MS8hQaqhDuZulfWRws+/Pe0=; X-UUID: a79de085e4334628891a3345623c995c-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 609733876; Sun, 03 May 2020 19:34:32 +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 19:34:16 +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 19:34:16 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v5 4/8] scsi: ufs-mediatek: add fixup_dev_quirks vops Date: Sun, 3 May 2020 19:34:11 +0800 Message-ID: <20200503113415.21034-5-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200503113415.21034-1-stanley.chu@mediatek.com> References: <20200503113415.21034-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: FFEAD343D53ED04525D50E8B1637D155DD4EA6DB4DD6180A6B376781C8640E182000: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 U2lnbmVkLW9mZi1ieTogU3RhbmxleSBDaHUgPH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