Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1039459pxb; Thu, 5 Nov 2020 22:11:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv3nXVJdCA730yrcpbzmV0qdyzexoi0uP7mrDcgOflxVpJBIzPF4VM46PDnQlFySV8XJbK X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr447157edr.371.1604643088496; Thu, 05 Nov 2020 22:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643088; cv=none; d=google.com; s=arc-20160816; b=g7A5t2/Ohd8RrEgf5juqQFjk25opvPpFEqdXdV+QdtKVgPmBm9VhNTdUfSB0I1BCRL JITC7PrdDW/Nt3/j2dub0ALWZ/cfnhChO11MmjVm5n92NWJhaF3ZFqvyKOZrwpdv2BRO yWfYKAeDMwqcA43HtxLFmn7KclOyREfjaa0pSYyUKJxn1OVLD68bGDAonGW8sjGw7lDi ZOA64amHZ+mtVa/2MZ+B5l4HpX8V/0ITNZx66o+OLueWwhQJqf0v7Ucz/5OV5tXyk/Wy p4DYGd+RkxKeuFXvR/tXlTaRvY/VpCH0QNi0m4WjsDQSgI4GMMScBfzfxlP9LP9s1k5+ SXlA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nEoLX1/+6duNwH8WrVAfgyNUeWNqni/qD+IGm5v49yw=; b=h6pDqQcubpALhjHi8xhvJHqNj6NgJsgJL88wT01PadTkZ/qnxx5gaMMieyR7oAV1vF W2YZnPoZLbbwMIHR6mryeulDTyUlMZKSw39vFsI+62t5T0IFz4Cf18+/Yer2/tQIXwtT bbYZn5IpHO/4QQypDreQgs2jQY6dGkK9JsXU1Ci/AxnIe1k17SQiUW2FUyWQhMqXMmIV yip0JxlETKavSndflXSbyr5d+QtnpKdvuaeCxse/l+SyKvyrmIxCUIw/ZE48JVa2saNK g3PYHPVgeWSGqyRp1NyDIr6HKC41YAbXM3TgFEAqKadP4IjByTrqjvlRAUX1paSzHWLA O0sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=sa85xI0F; 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 y8si142604ejw.297.2020.11.05.22.11.04; Thu, 05 Nov 2020 22:11:28 -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=sa85xI0F; 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 S1726027AbgKFGJi (ORCPT + 99 others); Fri, 6 Nov 2020 01:09:38 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:36094 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725828AbgKFGJi (ORCPT ); Fri, 6 Nov 2020 01:09:38 -0500 X-UUID: c5ec763de45c4015a2d18432429dafbe-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:Message-ID:Date:Subject:CC:To:From; bh=nEoLX1/+6duNwH8WrVAfgyNUeWNqni/qD+IGm5v49yw=; b=sa85xI0F3yJptMrG7cZA4jLfPJ89ToDm/cpSvVOd7gRmDK0HwHf7yVYxYdlHyoAzTWJTVAgcWd/nY8azNEiAts1NVH0Uxf92J24hlXLMN37KApImHhnNma4GAA1KTVEEy31TB/e+HTjCvmT4hJYv9mQrjU9J6eMSjFNTcDnWkN8=; X-UUID: c5ec763de45c4015a2d18432429dafbe-20201106 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1538193157; Fri, 06 Nov 2020 14:09:28 +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:25 +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:24 +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 01/17] phy: allwinner: convert to devm_platform_ioremap_resource(_byname) Date: Fri, 6 Nov 2020 14:08:34 +0800 Message-ID: <1604642930-29019-1-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3C3951C449F6D73153743392941B122F987841F75BC64504B988C2BC4C288B302000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VXNlIGRldm1fcGxhdGZvcm1faW9yZW1hcF9yZXNvdXJjZShfYnluYW1lKSB0byBzaW1wbGlmeSBj b2RlDQoNClNpZ25lZC1vZmYtYnk6IENodW5mZW5nIFl1biA8Y2h1bmZlbmcueXVuQG1lZGlhdGVr LmNvbT4NCi0tLQ0KdjI6IG5vIGNoYW5nZXMNCi0tLQ0KIGRyaXZlcnMvcGh5L2FsbHdpbm5lci9w aHktc3VuNGktdXNiLmMgICAgICAgfCA4ICsrLS0tLS0tDQogZHJpdmVycy9waHkvYWxsd2lubmVy L3BoeS1zdW41MGktdXNiMy5jICAgICB8IDQgKy0tLQ0KIGRyaXZlcnMvcGh5L2FsbHdpbm5lci9w aHktc3VuNmktbWlwaS1kcGh5LmMgfCA0ICstLS0NCiBkcml2ZXJzL3BoeS9hbGx3aW5uZXIvcGh5 LXN1bjlpLXVzYi5jICAgICAgIHwgNCArLS0tDQogNCBmaWxlcyBjaGFuZ2VkLCA1IGluc2VydGlv bnMoKyksIDE1IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvZHJpdmVycy9waHkvYWxsd2lu bmVyL3BoeS1zdW40aS11c2IuYyBiL2RyaXZlcnMvcGh5L2FsbHdpbm5lci9waHktc3VuNGktdXNi LmMNCmluZGV4IDY1MWQ1ZTJhMjVjZS4uNDA2ZDU5NDNmOGE4IDEwMDY0NA0KLS0tIGEvZHJpdmVy cy9waHkvYWxsd2lubmVyL3BoeS1zdW40aS11c2IuYw0KKysrIGIvZHJpdmVycy9waHkvYWxsd2lu bmVyL3BoeS1zdW40aS11c2IuYw0KQEAgLTY4Niw3ICs2ODYsNiBAQCBzdGF0aWMgaW50IHN1bjRp X3VzYl9waHlfcHJvYmUoc3RydWN0IHBsYXRmb3JtX2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