From patchwork Wed Dec 2 06:47:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 335941 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp790779ilb; Tue, 1 Dec 2020 22:50:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWpT4FJwOdKKouEWudbntGb53kDQaJaQbNAl+AA5dr3bVoZhzb+5yB6lgvxquyDKDHQ1d+ X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr1234925edu.379.1606891849835; Tue, 01 Dec 2020 22:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606891849; cv=none; d=google.com; s=arc-20160816; b=d16wiCNsHKMCdO08RhQerPWhY0glz9OqcvVWKp9hNYY6I9hLwyuPRjlxomZNGckhrR rjQp/PdIWs5Be3dXhK35kYInIdtZVYY6Ruo3bpOpEY9W5vhJQSLdj9BlheStaehaQk2n yffWjYeNuwUCUouJQO9xyPsFnzSvGJFDCPFrU6ZxrLrfay0Z944pD/+q2nnq4tgoGxai 5xt8oerhMWq9j/t0TfC+QKVdLpwMrQfFdib1GlhnBnFqPwlQ5tko5WaAT0hSWSkhz3Cb zgZ2zAsL+dEkipnJ1AP8wO+/39Ez4wD+6b/gUQNT9QMqTKad5+yJfTQ0CZahDnaQ6Pp2 9IXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=9ovn9JFtBCo1MPpfzJwcl+vEgamQPJqwqNu7w6wshpc=; b=swHG/IpoCCywMzA4c61Ho5sG5lJJhJA5gPRh78SxDkB8VtTTu+TZJYhFkeJPQ514wU e3VkFEKvDMSLPETHqXpg0wEyZWL8eb4+TFxJpwZrtEpZPSPDBTTLJA0OwgItK6okIFOj 5MIPqvb1IdXOBuU109fhLBkvBLRwz15Bk9tjIVqjxjdXsm0ZnYkmnDy4Z3seVkzrJ94+ 163tM4JHuFkijeVskHc2/bF+xSKJ/ZnzQ8CC9KYpvyeIYcjcp7QQSdjN6YFQH1xfsZG3 8b5qgR4IAagQof7AHCnlWimDZflcZUjuu02gLT557coy38wDU1ukUPx6J84asf+VzAgz CGcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LWnfsESD; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si363349eja.450.2020.12.01.22.50.49; Tue, 01 Dec 2020 22:50:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b=LWnfsESD; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbgLBGtH (ORCPT + 4 others); Wed, 2 Dec 2020 01:49:07 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50973 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgLBGtG (ORCPT ); Wed, 2 Dec 2020 01:49:06 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201202064815euoutp0269f77a9f08653241f1df73b421d3db9d~M03u3P3Oq1491214912euoutp02U for ; Wed, 2 Dec 2020 06:48:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201202064815euoutp0269f77a9f08653241f1df73b421d3db9d~M03u3P3Oq1491214912euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1606891695; bh=9ovn9JFtBCo1MPpfzJwcl+vEgamQPJqwqNu7w6wshpc=; h=From:To:Cc:Subject:Date:References:From; b=LWnfsESDK3PbaYFPaHanpvy3nksFJ9o0KbwesWep79ndhKd1hJQx98zUI4v/M23ko uFuiUCJ1SuPGy/3FG/LUqrMG2sy/lhQMlyNcnXV34hhVl4pU1xNRb1Ayslp3K0wEfh Lb4aYHox4eZgb+dKB7U8tvtZ6y6pLRYv0Zp4K3Dc= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201202064807eucas1p28206d47669ef9bc81fd832184b894e48~M03n8AtMd1112011120eucas1p2V; Wed, 2 Dec 2020 06:48:07 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 94.F8.27958.7A837CF5; Wed, 2 Dec 2020 06:48:07 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201202064807eucas1p124fbd6237538e9ba01c7981891e7a082~M03nXeoNS2527425274eucas1p1t; Wed, 2 Dec 2020 06:48:07 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201202064807eusmtrp2fa2f4e8e648afd966c5da00bb5462cae~M03nWypZU2913329133eusmtrp22; Wed, 2 Dec 2020 06:48:07 +0000 (GMT) X-AuditID: cbfec7f2-f15ff70000006d36-35-5fc738a7e26e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 59.46.21957.7A837CF5; Wed, 2 Dec 2020 06:48:07 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201202064806eusmtip22d0ed016b3d4c26ebd04aefcb40d4cdc~M03m1uim82440024400eusmtip2o; Wed, 2 Dec 2020 06:48:06 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sylwester Nawrocki , Marek Szyprowski , Krzysztof Kozlowski , Vinod Koul , Kishon Vijay Abraham I , Bartlomiej Zolnierkiewicz , Willy Wolff , Marian Mihailescu , Markus Reichl Subject: [PATCH v2] phy: samsung: Merge Kconfig for Exynos5420 and Exynos5250 Date: Wed, 2 Dec 2020 07:47:59 +0100 Message-Id: <20201202064759.24300-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsWy7djPc7rLLY7HG8z6bWKxccZ6VosLT3vY LM6f38BucXnXHDaLGef3MVm8PPKD0WLtkbvsFuun/WS1OPymndVi550TzBbfTjxidOD2uHWn 3mPnrLvsHptWdbJ59G1Zxehx/MZ2Jo/Pm+QC2KK4bFJSczLLUov07RK4Mk6/+s9c8JC/YkPr VMYGxh28XYycHBICJhLTDu9nAbGFBFYwSvQ/5epi5AKyvzBK/Jl2hRUi8ZlRYvsOhS5GDrCG 9pN+EDXLGSVunmpihms4+uA32CQ2AUOJrrddbCC2iICqxOe2BewgRcwCK5klfnd0MIEkhAX8 Jf6sPgjWwAJUtP/aJ7AGXgFbiWn3HzBDnCcvsXrDAbANEgJLOSTaO66xQZzhIrHlUhpEjbDE q+Nb2CFsGYn/O+czQdQ3M0o8PLeWHcLpYZS43DSDEaLKWuLOuV9gg5gFNCXW79KHCDtK9J/6 ygIxn0/ixltBkDAzkDlp23RmiDCvREebEES1msSs4+vg1h68cAnqZA+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vxJuSWFmVWpQfX1Sak1p8iNEUaN9EZinR5Hxg3OSVxBuaGZgamphZGphamhkr ifNunbsmXkggPbEkNTs1tSC1CKaPiYNTqoHJ4NVFk7bsKxVcr5g+Pb5Wx8ZhNeGxeptVbojI ghtpnFd2+JUH/E77btCbohWsO0NLMJI5t9pK6c3LE42mMWUKC+z+b792UbB3a91j3k17C08a 2AgYcr318/i6oUzr0B51MxFTmYZZfr7vqw99ZHH8U6jZJznpUZrh2tUG2wNOPbmWfJHpt71h rPfap0K6zz92LFTsSW8K7Xsa45J+SG+eUKIAq65tuMDDo1ci+8SOT7V/4lrnyKI++dTXmdHT V75YIDN/5dPCo29VZp/ee8mW+8a+thThy/H7+xZdZzr6o+fJqpdnSktmFNxzsm4TmLIuhOd4 /W8j8Rfn+DWFi4/01f76/SvhzcZDO6Y6nbqmxFKckWioxVxUnAgARDrgLeMCAAA= X-CMS-MailID: 20201202064807eucas1p124fbd6237538e9ba01c7981891e7a082 X-Msg-Generator: CA X-RootMTR: 20201202064807eucas1p124fbd6237538e9ba01c7981891e7a082 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201202064807eucas1p124fbd6237538e9ba01c7981891e7a082 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Exynos5420 variant of USB2 PHY is handled by the same code as the Exynos5250 one. Introducing a separate Kconfig symbol for it was an over-engineering, which turned out to cause build break for certain configurations: ERROR: modpost: "exynos5420_usb2_phy_config" [drivers/phy/samsung/phy-exynos-usb2.ko] undefined! Fix this by removing PHY_EXYNOS5420_USB2 symbol and using PHY_EXYNOS5250_USB2 also for Exynos5420 SoCs. Reported-by: Markus Reichl Fixes: 81b534f7e9b2 ("phy: samsung: Add support for the Exynos5420 variant of the USB2 PHY") Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Reviewed-by: Jaehoon Chung --- v2: - reworded subject --- drivers/phy/samsung/Kconfig | 7 +------ drivers/phy/samsung/phy-samsung-usb2.c | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) -- 2.17.1 diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig index 0f51d3bf38cc..e20d2fcc9fe7 100644 --- a/drivers/phy/samsung/Kconfig +++ b/drivers/phy/samsung/Kconfig @@ -64,12 +64,7 @@ config PHY_EXYNOS4X12_USB2 config PHY_EXYNOS5250_USB2 bool depends on PHY_SAMSUNG_USB2 - default SOC_EXYNOS5250 - -config PHY_EXYNOS5420_USB2 - bool - depends on PHY_SAMSUNG_USB2 - default SOC_EXYNOS5420 + default SOC_EXYNOS5250 || SOC_EXYNOS5420 config PHY_S5PV210_USB2 bool "Support for S5PV210" diff --git a/drivers/phy/samsung/phy-samsung-usb2.c b/drivers/phy/samsung/phy-samsung-usb2.c index 3908153f2ce5..ec2befabeea6 100644 --- a/drivers/phy/samsung/phy-samsung-usb2.c +++ b/drivers/phy/samsung/phy-samsung-usb2.c @@ -127,8 +127,6 @@ static const struct of_device_id samsung_usb2_phy_of_match[] = { .compatible = "samsung,exynos5250-usb2-phy", .data = &exynos5250_usb2_phy_config, }, -#endif -#ifdef CONFIG_PHY_EXYNOS5420_USB2 { .compatible = "samsung,exynos5420-usb2-phy", .data = &exynos5420_usb2_phy_config,