Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1041387pxb; Thu, 5 Nov 2020 22:15:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJH9fh2xcmPdEaBCHz8AfcfLMgeFlqKliABodyOeEsNfRU1WhqRFNhMS5Lk7rb7igczW5W X-Received: by 2002:a50:cd09:: with SMTP id z9mr506541edi.152.1604643321500; Thu, 05 Nov 2020 22:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643321; cv=none; d=google.com; s=arc-20160816; b=lRYqi61shsDEP9FAeUr2Xb9D4OIZv2+K+2melBZ48jCWFaXjunxfNxXqoOIvsS4wgG ImL9Kol5K25zIhi1f/yJta05Zs5Ox+aXBRJAn6iJuJRWg8iqi09EH5a9QgUhMgkGQcnd 83HYIVstuQJT7W23eqNyp/XPNzp0uP37f1O4r2OBqSscTMIPy8vycWFXJqi0AXG7HrcX dHAD4sW/xVze1FzkzZkOvkLa2st9bKEwXaE/CXgRrStDA97R3+C1r7z0VXWKwRAIvFBa VdbPf7RRKO477pbaRAE5kAJS1L27XPdLNYwYMOWCCFvcK/Id/OEEJ2bycM2iGp74rMA5 arFw== 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=zhPGloZsKYH70pD64IqLi9e6Z3H0sSFRjHjf/LGQPMk=; b=DWaB62F6JmGCMPGeFOIRd9QeEenynq75YEmU/+hySDDAVUViCnUX8yPNFe9xTkLxTk kXstFN+7oemsTzVk+moTOaHiLHX9vRKPyQwzsGh96d46CLzuR/4vrOOJQgok2YYHn8Lw n9Bi2rTO4EiS6mODj9XE+q0dTelwEcsxolpn3Dqmhx9ZOtfrMaTUnb483SAeo+eBKUPI tekjsrhR/L9QLMDo2m6tTAQqeNXBZEVgjfefgkA59uaAbkWUbqkuwH+uZU9KjIhUKDfE Cz5qgy/hvQQ2bklElSDucrchMYst2GR63VDjeIJVopMaYXkeDREZJgwigB0z1u5NlO+J kTqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YrlSoss0; 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 y25si149905ejc.325.2020.11.05.22.14.58; Thu, 05 Nov 2020 22:15:21 -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=YrlSoss0; 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 S1726432AbgKFGKh (ORCPT + 99 others); Fri, 6 Nov 2020 01:10:37 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:23431 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726320AbgKFGKg (ORCPT ); Fri, 6 Nov 2020 01:10:36 -0500 X-UUID: ebe35849da674f17aebd772a15f13129-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=zhPGloZsKYH70pD64IqLi9e6Z3H0sSFRjHjf/LGQPMk=; b=YrlSoss0rpNU3mSh95dX0QbERhKtwFrBTdQEWpmsPnX5t2Tm7F0QO0Js6/q7mq/KfMXJ5WunKBBsU5vIawDzBaeNO4G74X/Nr3lNqhd5Nxyqoy1Is/5fHRGPY12FYn93oan219xMepGFEdefKbrjfQBDW57EWoAoP4vNw2CH52I=; X-UUID: ebe35849da674f17aebd772a15f13129-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 1018794509; Fri, 06 Nov 2020 14:10:27 +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:10:24 +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:10:23 +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 17/17] phy: ti: convert to devm_platform_ioremap_resource(_byname) Date: Fri, 6 Nov 2020 14:08:50 +0800 Message-ID: <1604642930-29019-17-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: D8457DDF41A86BD7A8A76CCFBE5E0E3DB9E888E7619A5D95075F3CC13754BA312000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZShfYnluYW1lKSB0byBzaW1wbGlmeSBj b2RlDQoNClNpZ25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVr LmNvbT4NCi0tLQ0KdjI6IG5vIGNoYW5nZXMNCi0tLQ0KIGRyaXZlcnMvcGh5L3RpL3BoeS1vbWFw LWNvbnRyb2wuYyB8IDE3ICsrKysrKy0tLS0tLS0tLS0tDQogZHJpdmVycy9waHkvdGkvcGh5LW9t YXAtdXNiMi5jICAgIHwgIDQgKy0tLQ0KIGRyaXZlcnMvcGh5L3RpL3BoeS10aS1waXBlMy5jICAg ICB8IDE1ICsrKystLS0tLS0tLS0tLQ0KIDMgZmlsZXMgY2hhbmdlZCwgMTEgaW5zZXJ0aW9ucygr KSwgMjUgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS9kcml2ZXJzL3BoeS90aS9waHktb21h cC1jb250cm9sLmMgYi9kcml2ZXJzL3BoeS90aS9waHktb21hcC1jb250cm9sLmMNCmluZGV4IGNj ZDBlNGUwMDQ1MS4uNDc0ODJmMTA2ZmFiIDEwMDY0NA0KLS0tIGEvZHJpdmVycy9waHkvdGkvcGh5 LW9tYXAtY29udHJvbC5jDQorKysgYi9kcml2ZXJzL3BoeS90aS9waHktb21hcC1jb250cm9sLmMN CkBAIC0yNjgsNyArMjY4LDYgQEAgTU9EVUxFX0RFVklDRV9UQUJMRShvZiwgb21hcF9jb250cm9s X3BoeV9pZF90YWJsZSk7DQogDQogc3Rh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