Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2375460ybz; Sat, 2 May 2020 23:08:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKRbfP81gfaMSWHjsj+G93H349pb6+UuU7WIlpHBg7Jj7LlMqOmF6C8DLaifsr/f3tcg4MW X-Received: by 2002:a17:907:118b:: with SMTP id uz11mr9602989ejb.89.1588486100290; 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=Da3i46eyJcD91fl0QpBQmt36UGuKEKAs1SRxIBqtAsAE36FNy+hgSeoNJlhkd6SkSc Ei67L4ueTugz8Y/ivRFElSiuVtUvAMLbPVmWx+qZPlD8Vty96v4Fn4BP6GpSWHQGezhk kQy2BFmZVeEHYHYlIb0YJf47Av1oBK8EnewEUq0KP/evWCgQc2Wo9H6dQZZs692WSP3+ 5wKM4yUDlnAYnODRosw4HbBCDdyDFkecF6izl0I3alhoQpVOZQOiQhWCv3tgkDepvKEf TQbsDVBjQ/42BlqwLAQ+UBNAgChf1M0XMWM09qHFcop4NHmjtgrU/jucbBlF1K2oGbbI ZMuw== 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=axYdivepqlgkjKZMDc+q6wcYI5dYnIuDFbudgz9mHU4=; b=ONR0sZ+ZCo71OPA0RyeLJrNAipLoxNVLCrBxLMsdE9uaLrAwqFj2Qn/sSuETgceXaf qZD330dcsNbOZEGGuZ2DS8pRcd8HcLv+kOEfPgo/HjEJiGxzqs1fo/gamzbuunNaH7q+ UcUu1rGYKmq1tzj+5k1eOeSWicdOFQyjMdJboDAHtlZxhw4vIX1Gg7R9YiPeq9jBOd9S y1DaVVjw9euxU0DaCtwZK8Qtl45phVbUXghioPXlHTRFGzkXYvQ5gpV9Xm1/MNnlIPcB 4w4vz5dloZRO31JDPUHI7qEWH17/bjywrLHZvcMMRvaCrs/axHJd5vwovQ03lyqN5wLD qh8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QUWQr+4Z; 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 u3si4824397edp.525.2020.05.02.23.07.48; 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=QUWQr+4Z; 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 S1726968AbgECGEG (ORCPT + 99 others); Sun, 3 May 2020 02:04:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:29426 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726931AbgECGEF (ORCPT ); Sun, 3 May 2020 02:04:05 -0400 X-UUID: 2577f8c191a143a6a363cdd4a87b16cd-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=axYdivepqlgkjKZMDc+q6wcYI5dYnIuDFbudgz9mHU4=; b=QUWQr+4ZUEdFHI0yt4kIZbvR6XHYwLTMEcrscEqFnk4Ig1dEtzaA+ZKeDWK8e3UNjaPkMD2DnkjBr/h+PvzUMqisp/Hg33MkuxPMHRO1WpBMcMJoQtU4k630Vs6E98wn3ALmzURQDbsqAU4DQOzXfwBsxe3hhBHUmyaFt3mpLtk=; X-UUID: 2577f8c191a143a6a363cdd4a87b16cd-20200503 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 821661675; Sun, 03 May 2020 14:03:56 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 May 2020 14:03: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; Sun, 3 May 2020 14:03:54 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v4 2/8] scsi: ufs: introduce fixup_dev_quirks vops Date: Sun, 3 May 2020 14:03:45 +0800 Message-ID: <20200503060351.10572-3-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-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 U29tZSBVRlMgZGVpdmNlcyBtYXkgaGF2ZSByZXF1aXJlZCBkZXZpY2UgcXVpcmtzIG9yIGhhdmUg bm9uLXN0YW5kYXJkDQpmZWF0dXJlcyB3aGljaCBhcmUgZW5hYmxlZCBvbmx5IG9uIHNwZWNpZmll ZCBVRlMgaG9zdHMgb3IgZm9yIHNwZWNpYWwNCmN1c3RvbWVycy4NCg0KVG8gbm90ICJwb2xsd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