Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1041426pxb; Thu, 5 Nov 2020 22:15:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxV0LeXZ1T0/CS76TFKl7sl8cQvu3N9ZANFh1X/x7iSgWxrLcXlmk+lX6LCNW+CJUa8oWk X-Received: by 2002:a17:906:c041:: with SMTP id bm1mr536511ejb.202.1604643325914; Thu, 05 Nov 2020 22:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643325; cv=none; d=google.com; s=arc-20160816; b=A8PNob8n3vxT6rS8AW1Cd8e6u4EZJkRYpzg9VajwXHJYytxNs3LZuDHWd+KfjTYMVT EHMGrF50atcA/x5XyaXOXUIWw0qE+ivPOlIEYX5hL3l0+K9vjufYDDEgl4/4+MgPfBHd 5X3SPJnpteC1Ob3PNyE1gNurx+V8qYDpsSkkTtY9q0/8sS5aLtna5gXgwa66WtJLPPkJ Zj/2aXFkmSF2Gv8ZTB/5Xuq/kPK9kzwAFp/85pyaPWJsajIHvoBDam+YilGO6FEdtIDi C0gWToUIHnM9i66mfUUya84xm8QzsfaK9n/Ge/tHhblzY15YLi03EbD74lJNbkp3zRIH EVLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SZ/bmiQ31xaUdPCdAKSj0fT+ct7Qr3u27vV3q/CfUUI=; b=ur1GEUU8kNc7Hjeq25EE8SwZz8O7BBOPSeQ8xm4P0jPJekBKP64vuelm8A45qdDy/u jJLQjg/d/2C/4gMyw57wxBLoZKJFuWt5zF91IxOIQG2j03yvm6va8qFOzreGHgI/rvqO 8UucSZGl7On6DWxPUdMg7H8Yv7ja1cXDX1CHgcRv93QFsCwj4BroEGgO5HuWAnOokOzL oYJCoVgPGyorC+MqhqN11ebyj7A8qeJg+xmpFxmfto+owAUHfMhVgp1Zolc9ZPgvNdN+ Tjd01S5KrpHmcSxpEqjcmjorkNSqISAwxFrtknteyOCgt+MZ0egZ+pLP9aYVOufTM5+w GZ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KjhXO7Q9; 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 y10si258137edm.401.2020.11.05.22.15.03; Thu, 05 Nov 2020 22:15:25 -0800 (PST) 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=KjhXO7Q9; 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 S1726361AbgKFGLC (ORCPT + 99 others); Fri, 6 Nov 2020 01:11:02 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:52157 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726306AbgKFGLC (ORCPT ); Fri, 6 Nov 2020 01:11:02 -0500 X-UUID: c76bef7013e04e5db29008c1e9d58bd8-20201106 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=SZ/bmiQ31xaUdPCdAKSj0fT+ct7Qr3u27vV3q/CfUUI=; b=KjhXO7Q9WxrbEK6YNhfZlPbqbOoQzNIKbeIbxN7YoQsEk8SdFv0cV2xBHb2UH2ItvDrGu3NlQoxkrEJb5t29nyUcYz5SjzZz2Kmni8XzYyGu+lfbsjo+/I1UJVWaJbwdHKCLJFXLyYugOJ5bfsvDJbwNb24WGXPT71t1BDs7QLQ=; X-UUID: c76bef7013e04e5db29008c1e9d58bd8-20201106 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 318759687; Fri, 06 Nov 2020 14:09:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 14:09:49 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 6 Nov 2020 14:09:48 +0800 From: Chunfeng Yun To: Kishon Vijay Abraham I , Vinod Koul CC: Maxime Ripard , Chen-Yu Tsai , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , Ray Jui , Scott Branden , , Florian Fainelli , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lubomir Rintel , Chunfeng Yun , Matthias Brugger , Randy Dunlap , Krzysztof Kozlowski , Colin Ian King , Ondrej Jirman , Rikard Falkeborn , Icenowy Zheng , Remi Pommarel , Lorenzo Pieralisi , Yue Wang , Hanjie Lin , Joe Perches , Bharat Gooty , Rayagonda Kokatanur , Peter Chen , Roger Quadros , Jyri Sarha , Sanket Parmar , Anil Varughese , Li Jun , Ma Feng , Wei Yongjun , , , , Subject: [PATCH v2 10/17] phy: qualcomm: convert to devm_platform_ioremap_resource(_byname) Date: Fri, 6 Nov 2020 14:08:43 +0800 Message-ID: <1604642930-29019-10-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604642930-29019-1-git-send-email-chunfeng.yun@mediatek.com> References: <1604642930-29019-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2C7404545813924BCDB9CF82E2506933C885144DAB531D918CBFB360B05661F72000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZShfYnluYW1lKSB0byBzaW1wbGlmeSBj b2RlDQoNClNpZ25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVr LmNvbT4NCi0tLQ0KdjI6IG5vIGNoYW5nZXMNCi0tLQ0KIGRyaXZlcnMvcGh5L3F1YWxjb21tL3Bo eS1xY29tLWFwcTgwNjQtc2F0YS5jIHwgNCArLS0tDQogZHJpdmVycy9waHkvcXVhbGNvbW0vcGh5 LXFjb20taXBxNDAxOS11c2IuYyAgfCA0ICstLS0NCiBkcml2ZXJzL3BoeS9xdWFsY29tbS9waHkt cWNvbS1pcHE4MDZ4LXNhdGEuYyB8IDQgKy0tLQ0KIGRyaXZlcnMvcGh5L3F1YWxjb21tL3BoeS1x Y29tLXBjaWUyLmMgICAgICAgIHwgNSArLS0tLQ0KIGRyaXZlcnMvcGh5L3F1YWxjb21tL3BoeS1x Y29tLXF1c2IyLmMgICAgICAgIHwgNCArLS0tDQogNSBmaWxlcyBjaGFuZ2VkLCA1IGluc2VydGlv bnMoKyksIDE2IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvZHJpdmVycy9waHkvcXVhbGNv bW0vcGh5LXFjb20tYXBxODA2NC1zYXRhLmMgYi9kcml2ZXJzL3BoeS9xdWFsY29tbS9waHktcWNv bS1hcHE4MDY0LXNhdGEuYw0KaW5kZXggY2U5MWFlN2Y4ZGJkLi5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