From patchwork Mon Oct 28 15:20:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 11215751 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 76FF5112B for ; Mon, 28 Oct 2019 15:21:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3700621721 for ; Mon, 28 Oct 2019 15:21:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u7KxUjBU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="mABeSdYm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3700621721 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:List-Owner; bh=pQJUNdVa/guRts311Y+tm6W0a0F2Y36EmZVD+cLBTtk=; b=u7 KxUjBU8njLO38IBoXDZ1ZHChuXJTAt7waO76cSoc2iHe//DtWEA4/MIYdAGYLBTsuQ60z6HPJxrs6 B7cPXOSpORlYBf1NTEuJc1vsWdE/NjyIvFMOZ2qa70vn7wVtnGXeJ4hihysXlwiPJn2p+W2l3LUOz zbk1+h0XWvDuMoLBgc6cZoRPLbpHLsZqkpQGIid71P7lnRRCQ9brYsvh56RWetFqDUH/DC/lMnbfR RglWtLM8nSR7BgqiXTI/cfmJ+epwGoqphGsC12iStd5oj2L7cyalR9S8lgQZXYKgm+k+PMRW/j3Vt FP3E08LWVkcWpj/6IifLLCt8cCoGbyKQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iP6pN-0003d7-4S; Mon, 28 Oct 2019 15:21:05 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iP6pJ-0003cC-Ao for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2019 15:21:02 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191028152058euoutp01141f3d422c7b9c89b773decb823d70cf~R2L6ZWr3v2009420094euoutp01k for ; Mon, 28 Oct 2019 15:20:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191028152058euoutp01141f3d422c7b9c89b773decb823d70cf~R2L6ZWr3v2009420094euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1572276058; bh=8u5xWoYyD4lV76XSA5qxTTtYppeum6IaxfhGkN5SqO4=; h=From:To:Cc:Subject:Date:References:From; b=mABeSdYmgZDqQ10eeUKq2eI853KJ8qfg7sCh4LB1Fi8aVdGEZgCoRbksTPyS1o7vC D8DSGhCOXL56jdxW7FRr7d+bzxbbKrKJDLcG+r6Qhlnxtm236QK1yhwAOXiX9nnzMe 3DdRy4X89Vaun7rbMNZjJx0RnEr2msi9jqAACP/s= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191028152057eucas1p2c7813263b58ddb6d236696ad5865d7d9~R2L58WHo31162311623eucas1p2p; Mon, 28 Oct 2019 15:20:57 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id B0.A6.04469.95707BD5; Mon, 28 Oct 2019 15:20:57 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20191028152057eucas1p1d6b4252e9ce3f15c0d81e6941a62d2be~R2L5dF5mK0794107941eucas1p16; Mon, 28 Oct 2019 15:20:57 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191028152057eusmtrp1d8ff536809f9372284701f9d668df060~R2L5cbd7H1762917629eusmtrp1e; Mon, 28 Oct 2019 15:20:57 +0000 (GMT) X-AuditID: cbfec7f2-569ff70000001175-56-5db70759c392 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B6.E7.04117.85707BD5; Mon, 28 Oct 2019 15:20:57 +0000 (GMT) Received: from AMDC3061.DIGITAL.local (unknown [106.120.51.75]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191028152056eusmtip100260ab716b3016cf82f84f9fa5f1862~R2L5ApcUk2332823328eusmtip1R; Mon, 28 Oct 2019 15:20:56 +0000 (GMT) From: Sylwester Nawrocki To: krzk@kernel.org, robh+dt@kernel.org Subject: [PATCH 1/3] soc: samsung: Drop "syscon" compatible requirement from the chipid driver Date: Mon, 28 Oct 2019 16:20:48 +0100 Message-Id: <20191028152050.10220-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H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aH37SzWmx+cIzNgctj06pONo/NS+o9 +rasYvT4vEkugCVKz6Yov7QkVSEjv7jEVina0MJIz9DSQs/IxFLP0Ng81srIVEnfziYlNSez LLVI3y5BL+PdxF9sBUs4Kz58/sLawPiGvYuRk0NCwETi+qRnTF2MXBxCAksZJV7/fczcxcgB lJCSmN+iBFEjLPHnWhcbRM0nRom5xycwgiTYBAwleo/2MYLUiwhoSpxbaAYSZhZoYZJYd9QR JCwsECfx5FwFSJhFQFXi1JWNzCA2r4C1xLS5vVAnyEus3nCAeQIjzwJGhlWMIqmlxbnpucVG esWJucWleel6yfm5mxiB4bjt2M8tOxi73gUfYhTgYFTi4X1xdVusEGtiWXFl7iFGCQ5mJRHe i2eAQrwpiZVVqUX58UWlOanFhxhNgZZPZJYSTc4HxkpeSbyhqaG5haWhubG5sZmFkjhvh8DB GCGB9MSS1OzU1ILUIpg+Jg5OqQbGcqZPn0/tXhC8S3n5RcPbmyzZPRd0+E7aeefdk2jBR0t+ WgdOc6+K2N6bdK5OTZ7vfWOaxqqDGxR4wp8+Z2veGRiy59jUS3elfIS3nL0QP+/uC377148W KhQUbDm2eBNzWJX0zz9RviXVu/42S09xcLVZw7q8dVeR1/x5ke7vfqjI56RGMBwOVGIpzkg0 1GIuKk4EANitH+RdAgAA X-CMS-MailID: 20191028152057eucas1p1d6b4252e9ce3f15c0d81e6941a62d2be X-Msg-Generator: CA X-RootMTR: 20191028152057eucas1p1d6b4252e9ce3f15c0d81e6941a62d2be X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191028152057eucas1p1d6b4252e9ce3f15c0d81e6941a62d2be References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191028_082101_571888_A7BB49EE X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [210.118.77.11 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, vireshk@kernel.org, linux-pm@vger.kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org As we dropped the requirement of "syscon" compatible in the chipid nodes rework code acquiring the regmap to use device_node_to_regmap() rather than syscon_node_to_regmap(). Signed-off-by: Sylwester Nawrocki --- drivers/soc/samsung/exynos-chipid.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index 25562dd0b206..b89c26a71c6e 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -50,12 +50,20 @@ static int __init exynos_chipid_early_init(void) struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; struct device_node *root; + struct device_node *syscon; struct regmap *regmap; u32 product_id; u32 revision; int ret; - regmap = syscon_regmap_lookup_by_compatible("samsung,exynos4210-chipid"); + syscon = of_find_compatible_node(NULL, NULL, + "samsung,exynos4210-chipid"); + if (!syscon) + return ENODEV; + + regmap = device_node_to_regmap(syscon); + of_node_put(syscon); + if (IS_ERR(regmap)) return PTR_ERR(regmap);