Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp20228380ybl; Sat, 4 Jan 2020 20:59:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzuyI7mLr1AHw0ECbssdByWdEeuOMkRTSzWaYsiDLbbsTYxs/WJG8h8f+QYOCF7fQLAJrsA X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr101116582otn.326.1578200380169; Sat, 04 Jan 2020 20:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578200380; cv=none; d=google.com; s=arc-20160816; b=CFDeuzwPmDZeVxMbgxJfW0DijTYhWxsDNkfxNaxjtTc4utDQFPg6XNpoSDvSpo07hX 0MslLZugr9FTc13GS6Er4oiqou0+5uri9DNb6Lq5wngx6aEnO2jHDNg9RYd9UUnQOloG XZH7nquPT+9UHEjQssjouZ1PXj2oL5FHV6JYDrranv4vn8sW8cUoafBHiOQmSRX6x5Ie sKaonffRzHd1I+c7+cvIRY2K36602AOlltlKcxG37dj1E7M1HQgKnCKggsguZ068UAk5 Ep8QYuDC+3u2M01UWDx3HfTCXjHpH1iYtSB4e64QFC5S2RgGjzoBNURb84qKZwg0U1/t f8Hw== 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=pkKLqLcIP1xYhUAQZUZ/7pc95t5mntq5V0tWGUrWILY=; b=pDLRW+xvTDC5AgSuS8CznPdOAZeBNL/0jKtY3gFNwIg+25ewe44bAvYbOTRlWYnRQD t6yvosoCNVX3QTQ6OxzIr9ZWGdn44zngq/ZW8iO4G/3yAyveYeN/zejzt42xr//bALfH 2CFCcnUO5ZsSvj0YvAcqZkyzdWs9AeRqHnihmxeibmd7GELfMxrrt/wimn6dhr0FDN8J 09Ul5cv52qxK0GYXY6YCJHAm244tmNO1ITFbUElfHEadfphT0kpz3lV85v+g4JWSmGXN sWtgBuHq51E98+PGLktmvW0iQjBBZREYNq7qxCWEu+0lseoeC2uPFfO48UandxUpgoRx MhUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=J74ZfEA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o66si22280285oig.193.2020.01.04.20.59.28; Sat, 04 Jan 2020 20:59:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=J74ZfEA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726667AbgAEEzk (ORCPT + 99 others); Sat, 4 Jan 2020 23:55:40 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59206 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726260AbgAEEzj (ORCPT ); Sat, 4 Jan 2020 23:55:39 -0500 X-UUID: 7a43dab9e028473e980875afc3f4d1ba-20200105 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=pkKLqLcIP1xYhUAQZUZ/7pc95t5mntq5V0tWGUrWILY=; b=J74ZfEA+dy6Gd8ZzWzuOLBUHRS/3S7/pOp3F0ZDl1Dab1hsN487mnvtuqYFFDDvafi1SfefMJhe5hvEU+ROJpb6m6fiscSr5wNjYzUUDfLpc3R4j66g7t6hgsituzDRFqO1a8Gea6FN1r3iauovj24RYYQ5tU/yzyXu0TQ//Qqs=; X-UUID: 7a43dab9e028473e980875afc3f4d1ba-20200105 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1406105658; Sun, 05 Jan 2020 12:55:28 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 5 Jan 2020 12:54:38 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 5 Jan 2020 12:53:59 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , Stanley Chu Subject: [PATCH v1 1/3] scsi: ufs: pass device information to apply_dev_quirks Date: Sun, 5 Jan 2020 12:55:16 +0800 Message-ID: <1578200118-29547-2-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1578200118-29547-1-git-send-email-stanley.chu@mediatek.com> References: <1578200118-29547-1-git-send-email-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B99D8E4619264F3AEE6741D3C4D22B64365177FB7C9FF383ABFFF4BB1014256E2000: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 UGFzcyBVRlMgZGV2aWNlIGluZm9ybWF0aW9uIHRvIHZlbmRvci1zcGVjaWZpYyB2YXJpYW50IGNh bGxiYWNrDQoiYXBwbHlfZGV2X3F1aXJrcyIgYmVjYXVzZSBzb21lIH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