Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1039494pxb; Thu, 5 Nov 2020 22:11:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7sioV9NuSsY+QQo2ZJjoAuwCZo5rf/z603kV0xJOGNJodKCmzss5aUz7QPwOhWFB03Cl1 X-Received: by 2002:a50:d615:: with SMTP id x21mr486794edi.200.1604643093173; Thu, 05 Nov 2020 22:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643093; cv=none; d=google.com; s=arc-20160816; b=vNJ0qkL1I7OJ7QtWQOpiPTYHz/P8BWR3vkQaYcvvgVvJysGzsPcWTC1h0Egwg1Y7ZW RnjF0Y9DuBC93zwcr81WIn74a7nCKtyvDONMsaek8KwoPpIsnlqAY3rDs9INJ5ZQ1sh7 ruoMIP4vm4LNh8nn0+pyXG2S3+bH2nvaTAZkDF1MYCz4QbFHiFzx35/f+KkA0jNYEPtY p3EdSzhw+CC3WTgnCUcP9hiIGNyRuBIfR0vo5+MklAB8r3UA711cSHinlE0YMQt3Mh6V EGUDj7ztIhrornxZi0JmJ4PIJ62KH7y6VJGjukyLPjhS6XEDTImrVIhQX1kFoEBJh6za aj0A== 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=PweRil4FFXPbptar9sORCDNrEH/q2CV86YV9ivzFLXw=; b=Ps+j0kw02+RBRlbHyxCrfd+fls7dHdq5esVcSLOtPewBbqLJY148RBaPM8ItfX4RwD JH94Xb3hka0m07x0tZqIOUc0IFXWxOKcIGlVRpfbw9v25BwljD9Eg90Xx7FGCyLZ9+ZF GduNEa7H2iU9AmSzin7NBNquyCCRXJGW0H8LLHKaAylRINjsQQUCv2Hpq97eyaGxiX42 P/LPCU/rLum/pEKR6ItWxWJkjVR9McTKoXe94ktUilAbGg6dcaWZcMFqFnhTE+roKSKq ptQ8gHv+IpOi8MonNfANUbgf1pPltZ02iYPwVk6jDQLMh5AiDiOTRIucE05055whIMxp LjhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TZ6sBLA1; 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 p25si250085edq.230.2020.11.05.22.11.10; Thu, 05 Nov 2020 22:11:33 -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=TZ6sBLA1; 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 S1726177AbgKFGJp (ORCPT + 99 others); Fri, 6 Nov 2020 01:09:45 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:43261 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725828AbgKFGJn (ORCPT ); Fri, 6 Nov 2020 01:09:43 -0500 X-UUID: da6da30c44cb4092966d81f697bdca1a-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=PweRil4FFXPbptar9sORCDNrEH/q2CV86YV9ivzFLXw=; b=TZ6sBLA1dnLq8sGSEw0mEGiubu/bRI1nC6etK9YzHTaLMkk2Xx04V0otxpZlNiKAKgMT2fLQGVFWp4nM3ad77MiKjxQagebdr63ZClcPhKHtyPiJ6aHqGDPlwjECobAojbAHxP9/PthTgQD6WRZrMUhdw7UXGZJs4BK9IyISgik=; X-UUID: da6da30c44cb4092966d81f697bdca1a-20201106 Received: from mtkcas36.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 130756316; Fri, 06 Nov 2020 14:09:36 +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:33 +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:31 +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 04/17] phy: cadence: convert to devm_platform_ioremap_resource Date: Fri, 6 Nov 2020 14:08:37 +0800 Message-ID: <1604642930-29019-4-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: 1D7021FA13D9EDDDCEEA66B61BD5DE3F67C44FCBEE3775403F780CB4CB5B31672000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZSB0byBzaW1wbGlmeSBjb2RlDQoNClNp Z25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVrLmNvbT4NCkFj a2VkLWJ5OiBQZXRlciBDaGVuIDxwZXRlci5jaGVuQG54cC5jb20+DQotLS0NCnYyOiBhZGQgQWNr ZWQtYnkgUGV0ZXINCi0tLQ0KIGRyaXZlcnMvcGh5L2NhZGVuY2UvY2Rucy1kcGh5LmMgICAgICAg ICAgfCA0ICstLS0NCiBkcml2ZXJzL3BoeS9jYWRlbmNlL3BoeS1jYWRlbmNlLXNhbHZvLmMgIHwg NCArLS0tDQogZHJpdmVycy9waHkvY2FkZW5jZS9waHktY2FkZW5jZS1zaWVycmEuYyB8IDQgKy0t LQ0KIDMgZmlsZXMgY2hhbmdlZCwgMyBpbnNlcnRpb25zKCspLCA5IGRlbGV0aW9ucygtKQ0KDQpk aWZmIC0tZ2l0IGEvZHJpdmVycy9waHkvY2FkZW5jZS9jZG5zLWRwaHkuYyBiL2RyaXZlcnMvcGh5 L2NhZGVuY2UvY2Rucy1kcGh5LmMNCmluZGV4IDkwYzRlOWI1YWFjOC4uYmEwNDJlMzljZmFmIDEw MDY0NA0KLS0tIGEvZHJpdmVycy9waHkvY2FkZW5jZS9jZG5zLWRwaHkuYw0KKysrIGIvZHJpdmVy cy9waHkvY2FkZW5jZS9jZG5zLWRwaHkuYw0KQEAgLTMxNCw3ICszMTQsNiBAQCBzdGF0aWMgaW50 IGN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