Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1257486ybj; Thu, 7 May 2020 19:24:47 -0700 (PDT) X-Google-Smtp-Source: APiQypL6YiPgLctGJ62OZrbID3m2cmPR1/Ikrsy/MSd/3/ddGkA7Tb4soGLt0Z7doYKuKOukJ9Wi X-Received: by 2002:a17:907:20a2:: with SMTP id pw2mr72408ejb.252.1588904687468; Thu, 07 May 2020 19:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588904687; cv=none; d=google.com; s=arc-20160816; b=G6f5/0/fTwIIAGoAi+7GoMibMVUhY171Jh9XxxD4V9pG9c407rll69/eYD1cWYLY9v N5/dKtD4cYCrdIZhQBYilKUaxAhJAAePWOQWsIzHibGmT4WmJNuSgtltX1x3G7fQE6Rg Pni9sGk5HF+5gSuahGBdOysy9Gjk6yjjRfCuDtOZfaE48gYnDnwCB84w2fCVkom3WfTY IurX7W2NkG/SWlne3nHDAuTQ4WkkmVuWQ023e0/jFLLIg7wnFsibeH1sGyuX8VUyKq8s qBogQ5D93J6+awTcOHzDZOwcifMYAHaOWFY4++zzM/Ao0FA6iiulQwO75wIXXACm91/q MLOw== 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=HKXRMOVB6rsaBq2Oez1TJDf4STU7gUVCgYM/5vfjbME=; b=ocawFpHAqZbcmjvqniKq3NLRPyxUKj21AG9CMDWd18TJyqH/SjEML3wc/hIw8rEKJw MY9Rks/T2aAeTP2m3aT4JRHzhd/JUPNdASD/fNIcvbyE/B38OGF7Uad8g/Hfh4vMFTnT 5OG140Y54/35Rmnc/1IIVdRvi5n4DVsPkHhbNP6kLcwt9N+ff7qGzOx5H1pK5SL3ywwX iLPXnuIabzjhAEuZdxpNjUAkm+oB9jxB7KZVWYgeNv4vae/KM66dGL2d3Edn9Mvq3+C9 fF7syZXVVMTpT6kZLmMtKSJ4v2Q5Bg59P7RyYm/ZY0ynrgasvBKSEo5Pf9aQ75oDD1Zc Svsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mtk7JQ1x; 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 aq1si148945ejc.344.2020.05.07.19.24.25; Thu, 07 May 2020 19:24: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=mtk7JQ1x; 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 S1726771AbgEHCWL (ORCPT + 99 others); Thu, 7 May 2020 22:22:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56627 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727051AbgEHCVu (ORCPT ); Thu, 7 May 2020 22:21:50 -0400 X-UUID: 0471662c2c7946fca4652a913ee60722-20200508 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=HKXRMOVB6rsaBq2Oez1TJDf4STU7gUVCgYM/5vfjbME=; b=mtk7JQ1xLnjbzeLezf+PbRNoUr6+TvrKcD9Kzg617G9ipRo7DtQBmbZj8W848vVjQJ8NVrFJ6WnJMuwsNMdM0tyKgXICtBBDgV5CjRfqpYlxIERGoJoMxpIoHms6gjfVPC6ijTbHOLFB9zvaAS7VhhYEGWk5ZLI1sOsSqe+c6nc=; X-UUID: 0471662c2c7946fca4652a913ee60722-20200508 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2055276618; Fri, 08 May 2020 10:21:43 +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; Fri, 8 May 2020 10:21:41 +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; Fri, 8 May 2020 10:21:41 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v7 2/8] scsi: ufs: introduce fixup_dev_quirks vops Date: Fri, 8 May 2020 10:21:35 +0800 Message-ID: <20200508022141.10783-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200508022141.10783-1-stanley.chu@mediatek.com> References: <20200508022141.10783-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 ZCBVRlMgaG9zdHMgb3IgZm9yIHNwZWNpYWwNCmN1c3RvbWVycy4NCg0KVG8gbm90ICJwb2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