Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp631474rwe; Thu, 1 Sep 2022 05:31:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XIU6FkPqQUKMUmZtJ7Z7TztyUaXD0GL2YLBTcj3NkUYA16Q9kR+fP3QPJwz+rgM0v0GVu X-Received: by 2002:aa7:8397:0:b0:535:933b:54c with SMTP id u23-20020aa78397000000b00535933b054cmr30583458pfm.38.1662035474593; Thu, 01 Sep 2022 05:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662035474; cv=none; d=google.com; s=arc-20160816; b=KKHqK24pz7Asrl8DJJE2r5rTaDs3QBMeGzoEqsL4+MU3/scBDiLtG7+wd+qbZDX7Tt x+LXZY/KEDOde4poyOGHRz/Ne61/eBbEOmJCug9gy6PmNbAg78yzeqee5knfhf+a7Qg/ qtaxheCRdvI+uXMk2S1RPTWWR7+fLJuBLB2rFxwaQZVgRgeCYa6yEGgeiYsLMrWFJvzb FyFdx8CxEao2Uo9E4DJ/jDKxTgo48ArCJ486SuvHjxIbqc7uWqqOf2cRsTCVOkE9ORze kD37L/EAS6e8sy0vkIn4IkDNx7I/4ofjaCmD+4cWu8pSXBC37/iuqa24PH5zWL3+EsAo LlIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5o5T+cNPjW0KviUEr8asDCjXy32h/49HXr3yNLpVmZ4=; b=idOvB3Oy/xKWYyHGzZcJ45rlHSnyOrz60NWp/Pg6DJdHoT9NXknX8hkvhYq2fioX90 m/YBgDQjh/ISRgmbMivTtu+h+8nFZQYlMuqorTO2V1ASP83PfsnbHUcbGgueRIxZYNgU rV44ICKjVgSNikRvk2ywv0VENcTf47fFSlperAW6aUNHHK8l/QbRehmbKOV6LktZvr/v 9DL8wBHErxCc/hZA/ndjmnyesMo/J92We/X16xzb/bUNo8PV+7jhhRyaUx9qZfLLxEYU 0Y6lwnTqMF3ZYpSVoZwvQBBLIv65+Nr7xj6CFcFiAaOR+zngtFbNZIS/vDc7kaw44Sj+ C8gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=QIccnKip; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a17090a5d9300b001fde29cdb5asi4154938pji.59.2022.09.01.05.31.02; Thu, 01 Sep 2022 05:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=QIccnKip; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233233AbiIAMVG (ORCPT + 99 others); Thu, 1 Sep 2022 08:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233470AbiIAMUk (ORCPT ); Thu, 1 Sep 2022 08:20:40 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D668B7E6; Thu, 1 Sep 2022 05:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1662034824; x=1693570824; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5o5T+cNPjW0KviUEr8asDCjXy32h/49HXr3yNLpVmZ4=; b=QIccnKipNbrTytGmuIOZUf7ywmR/gUpOvxBEpGtjjoit+A/bWo77uy13 twcwT0sh8LGlB+v0MfpMdbK/RBZUG1TBZTotwTZvKx2bjRvczapn/EVkQ mErrB61kOdMdUyxwa/Z+LSev4chlROG5uYaObCDQsXcItZVK6++To3FoN /77QF+or4T4h4wheKPxvvx9BkjYgOBLVr8SURdq02DSrAbmvHSKx4eFHi 18C7iDFmH4GzWOCNzi13liQeDi+MYcRiV4qkJmiDPNd3ArIZd+FYt99Qv ezCW2f7lRQ5an8oIGWdEFbdcXpqMkRE0bcLzTPtjHNi2ynWaui9Z/STHM w==; Date: Thu, 1 Sep 2022 14:20:13 +0200 From: Jesper Nilsson To: Krzysztof Kozlowski CC: "dj76.yang@samsung.com" , Jesper Nilsson , Lars Persson , "robh+dt@kernel.org" , "krzk+dt@kernel.org" , "lee.jones@linaro.org" , "javierm@redhat.com" , "bjorn.andersson@linaro.org" , linux-arm-kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Moon-Ki Jun , Sang Min Kim , Wangseok Lee Subject: Re: [PATCH 4/4] mfd: Samsung: Add Samsung sysmgr driver Message-ID: <20220901122013.GU22198@axis.com> References: <20220713045746epcms1p302c6643d12ed505d24298e1edb5889ec@epcms1p3> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for your comments Krzysztof and sorry for being late in replying, I'll try to fill in the blanks for some of the issues below. The ARTPEC-8 is derived from a Samsung design, but built to order for Axis, so long term responsibility will fall to Axis (me and Lars primarily). The ARTPEC-6 and ARTPEC-7 were built by an other vendor and are quite different not to mention that they are 32-bit ARMs, compared to ARM 64-bit for the ARTPEC-8. The driver in this patchset is derived from the drivers/mfd/altera-sysmgr.c and solves the same problem, in where the SoC system controller IP is a collection of registers that controls quite a lot of different peripheral functions (from PCIe and Ethernet to PWM) and is reachable only through SMC calls. I think the naming of the software was set as samsung-sysmgr since it is not Axis design at all, but (to my knowledge) only existing in ARTPEC-8 as yet. I can't recall why the mfd driver route was selected, but it could be that the earlier implementation was more complex and used both smc and direct mmio writes. The users of this system manager would initially be the ARTPEC-8 DWC EQoS and ARTPEC-8 DWC PCIe drivers sent in other patch-sets. I believe a possible alternative to solve the system manager problem is to open code the SMC calls directly from the drivers in question, quite a lot of drivers seem to do this, notably a specific altera driver (drivers/edac/altera_edac.c) even though it also has a reference to the above mentioned altera-sysmgr regmap... :-) Does that seem reasonable? Thanks for your patience and excuses for the top-posting. /Jesper On Wed, Jul 13, 2022 at 09:27:52AM +0200, Krzysztof Kozlowski wrote: > On 13/07/2022 06:57, Dongjin Yang wrote: [...] > Best regards, > Krzysztof /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com