Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp506483pxb; Thu, 14 Jan 2021 11:06:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8onTVFsnKFux9Fct7xAJQmGywqcq2+7UBgkKXQ7dZ/tMH217IqNhh/VpGbcsfym7s3oaX X-Received: by 2002:a17:906:8597:: with SMTP id v23mr2175687ejx.72.1610651179794; Thu, 14 Jan 2021 11:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610651179; cv=none; d=google.com; s=arc-20160816; b=Ocb7m86iq2YOSr5bFqjku2ljdxYt+PJnzZ2lnOb6veoaGMCu1YyKcykY37np6yiL+r GLKjYwXNmJBkMVr4oUIeWkY79B5Ox7tI4k+bXJVt7pvMzlM3pyw0orXQnsNrTQ933ujs bt3joSfu8P1DhXUntel0Wx3/ceGMhkNbSBqL4miuvu54DM4JL1amhruoCMFXWTFr/3Xa ZLXP81afuu/fDy0YaPs58QEPtcTO6ijaM9smtIQkg16rp/FUif68lm4YIQ5GGOnJYtRC e3v3JuPR7dDkzKx3kPGDgoxr9RLWZbdDdrEHnIkgdm8STzH1n9Laox4KJpTczyJnqCr6 6qyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=p9JyyoEzSfZPYysKaNAbup8AeW9Ygru9GNwL3DVNY30=; b=rAU8Vng2Phw+la9itWs18TUjcqE+xfuOza32AqkqbQ35/u6K9AhanJIL7e12n/kM+M DiVtVgP0xFq6+91ty3drkxyBbsnhM183QLeZEcOPZ/TBXg5N22wpChu2m4cPcdpawe57 y7A5eYt4FQxtN3X+INbfXWQFj01ELT1eLaAumqeEKAOeUwIIFZOSAldzv9BNSINOjV06 nJyHQZJgI5XlQXhE/T5fn+ppcx4/KeECkM2KKnO7tY6bDPNgfVjQvmV/igEetY54suOT d5TX6wm3ayI721XMZ8xKqgPa9yy8VBTkHDUSKg/HH0MplJ4yhRaqAdVQuFSbA/Tdvjom xWMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="iQK/0vq0"; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si3029677ejf.168.2021.01.14.11.05.54; Thu, 14 Jan 2021 11:06:19 -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=@samsung.com header.s=mail20170921 header.b="iQK/0vq0"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbhANTEU (ORCPT + 99 others); Thu, 14 Jan 2021 14:04:20 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:55137 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbhANTES (ORCPT ); Thu, 14 Jan 2021 14:04:18 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210114190336euoutp013e72240966150bc0969d11dbbbc564c4~aLpDyvETT2821428214euoutp01T for ; Thu, 14 Jan 2021 19:03:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210114190336euoutp013e72240966150bc0969d11dbbbc564c4~aLpDyvETT2821428214euoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1610651016; bh=p9JyyoEzSfZPYysKaNAbup8AeW9Ygru9GNwL3DVNY30=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=iQK/0vq0ZGCl/UKVD3EJtrNEXMICLr435myXg60lutkYzRljk6EsGkMWJStu2VY2q ayZ8JfBNqbOr3GaMpvxOn7BJiTzUxk0rXnZ1iFOc5F/uS930y37IEx5ZdVqMMLwVEa YG+M3ceKguNF3DfAp/KP6VR9jt3WQQ8vOVFFsuWo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210114190335eucas1p29ad219336e7348c5398b5e0a6eb475be~aLpCyefoq0423104231eucas1p2m; Thu, 14 Jan 2021 19:03:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 9A.1A.45488.78590006; Thu, 14 Jan 2021 19:03:35 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210114190335eucas1p209f9ccf7e413aa34ff712afa1216c7ef~aLpCQsflj2716227162eucas1p2P; Thu, 14 Jan 2021 19:03:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210114190335eusmtrp12a2aa4abe2f2dd74b830899758ae9d95~aLpCQH7RY2919329193eusmtrp1c; Thu, 14 Jan 2021 19:03:35 +0000 (GMT) X-AuditID: cbfec7f5-c5fff7000000b1b0-96-60009587a9d7 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9C.1C.16282.68590006; Thu, 14 Jan 2021 19:03:35 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210114190334eusmtip1d845562ee9967990b013f8997594077b~aLpBzp5vE0394703947eusmtip1Y; Thu, 14 Jan 2021 19:03:34 +0000 (GMT) Subject: Re: [PATCH] soc: samsung: pm_domains: Convert to regular platform driver To: Saravana Kannan Cc: Linux Samsung SOC , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , LKML , "Rafael J . Wysocki" From: Marek Szyprowski Message-ID: <58e1cfb2-cd35-badf-0238-7c62122e2d05@samsung.com> Date: Thu, 14 Jan 2021 20:03:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRT2d+/17rqaXae2g0rBxMJKbSQ2yqKizAoqiyh66cyLmjpzcz21 bD1dD0yT3FJT0hKppmNqzjBckpjkRK3M1PWw6OEIc1lZ6zF/VP73fed85/d95/BjSGGuqw+T KE/nFHJZspjmU7X3v1mCTuW7xMwtez5TWl2gd5VaLFU8aZepkJYWWBoJaZE9n5RqzA56CR1Z YlBFGiqz6cjzxkoUOWKYtp7ayg+P45IT93KKkMUx/ISGziN77F77WwoHiSyU56FBDANsKAwY wzSIzwjZCgRVxaMIEzuCyuY2V0xGEHzJqf9D3MYnunvHeLhxHYG9vIbEZBjB6EcN6VR5shvh XLaVcGIvdhYYHr+inCKS/YDgqqOL52zQrAQ0Ng3txAJ2MXzJNtLOUBQbAN2Xx9282Vjo77tH YIkHtGoHKSd2Y6PguzFr/BmSnQ51tkISYxH0Dl4hnF7AdjDQfHSIwLGXg7bmI42xJ7xvMfIw 9oO2vLMUHjiG4EX7TR4mZxF0qQsQVi2Evvax8XQkGwh6UwguL4W2J3oCX9IdemweOIQ75NZe InFZAKdPCrF6Buhabv2zberoJHOQWDdhNd2EdXQT1tH99y1BVCUScSplSjynnCfn9gUrZSlK lTw+eFdqigH9+TZtP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TM0sDU0szYyVxXpMja+KFBNITS1KzU1MLUotg+pg4OKUa mDy3c6vdjONh0p9y4tajaX0O2zMjC/J+NqXKr/UQkVl9bl/2b4m42QKn/8bx13/+vZ031/7G PP7by1lX8WrPjjL+tORc9qSc2fmCX0stL83epLBZdFb0l3em1nnlW58VbmxtmXZpZ/Kvk1Mt Ljhdn9Vs7u4nN/viv22dTJ/MNxkKNMvN8irkEQgN07jAN8/HYYb7wSLGwsPHPn/Y+aDzucSZ wsgtZxqVl1ZMiV3AKN8yq1B7r6CcgYqxGIvSrceMG1hmqq9jyp7ItG3XztZZlicYsq/91Pl3 R/+OvcBt/dJQ/1mia/5/u5x5o2/2l36NxvU316/69FJ417pL3z/8SYrY2qFpHybQutYqQLl7 pbgSS3FGoqEWc1FxIgAjxTeONwMAAA== X-CMS-MailID: 20210114190335eucas1p209f9ccf7e413aa34ff712afa1216c7ef X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20210113110330eucas1p1e7efa719b5db55ccf3774450a8c1e452 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210113110330eucas1p1e7efa719b5db55ccf3774450a8c1e452 References: <20210113110320.13149-1-m.szyprowski@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saravana, On 13.01.2021 21:27, Saravana Kannan wrote: > On Wed, Jan 13, 2021 at 3:03 AM Marek Szyprowski > wrote: >> When Exynos power domain driver was introduced, the only way to ensure >> that power domains will be instantiated before the devices which belongs >> to them was to initialize them early enough, before the devices are >> instantiated in the system. This in turn required not to use any platform >> device infrastructure at all, as there have been no way to ensure proper >> probe order between devices. >> >> This has been finally changed and patch e590474768f1 ("driver core: Set >> fw_devlink=on by default") ensures that each device will be probbed only >> when its resource providers are ready. This allows to convert Exynos >> power domain driver to regular platform driver. >> >> This is also required by the mentioned commit to enable probing any >> device which belongs to the Exynos power domains, as otherwise the core >> won't notice that the power domains are in fact available. >> >> Signed-off-by: Marek Szyprowski >> --- >> Some more comments are in the following thread: >> https://protect2.fireeye.com/v1/url?k=8ac052ac-d55b6ba4-8ac1d9e3-0cc47a31c8b4-9068b559b0fd155d&q=1&e=b393c3ff-16ba-48a4-9d72-6805d02971d5&u=https%3A%2F%2Flore.kernel.org%2Flkml%2F2556a69b-5da5-bf80-e051-df2d02fbc40f%40samsung.com%2F >> --- >> ... > Skimmed through this patch and at a high level, it looks good for what > it's trying to do. Thanks for doing this! > > Btw, I assume that this won't work with fw_devlink=off/permissive > (default since 5.10 or earlier)? My concern is that we might > temporarily set fw_devlink=permissive by default if the other > breakages aren't fixed in time for 5.12? How do you want to handle that? I've applied my patch on top of vanilla v5.10 and checked on my test boards. Surprisingly everything works fine, so something must have been changed during the last few years as the power domain driver in the current form has been written long time ago. I remember that the moment when platform devices are created from the of nodes has been change at some point, so maybe this is somehow related. Anyway, the platform driver for Exynos power domains registered from core_initcall works fine with v5.10 kernel. I have no strong opinion on the way of merging this fix. It can go via Samsung tree, so in the end the v5.12-rc1 will have both my fix and your change, but won't be fully bisectable in-between. Krzysztof, what's your opinion? Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland