Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp499336pxb; Thu, 26 Aug 2021 07:52:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJlSMBvvRfamH445qjiJ2fVZXJqPkTY5WBer/fdJ5QK3ELWhAWogwRPyM+r5qCGu/cXx8o X-Received: by 2002:a17:906:7208:: with SMTP id m8mr4810965ejk.82.1629989571561; Thu, 26 Aug 2021 07:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629989571; cv=none; d=google.com; s=arc-20160816; b=ubkDIV2orOnPgcgxg9XkXF3Z4Ta67QRt5YbFxeBxTClGp/QLub4G71BAYAsBWImaG+ oro0PyqdKrrMK+8XdA7C6XYhWXDl82HCf1SxDxcf9AT8s8Sct/j3Q8siMX19e+u2X9DL pGinuAI7J5NxSg7bJHNFxuO3vjLxEA4uLd4A9z+KZHo9L5O29YxI508YAkOJh9rXHZjl Z/7Qd7pWA876/Nen/ieD9L9ztGIUbSN3k0t90B9gWGOeHggA49bFGP60fkqn88BEqVop zqnNLgkux2xarAYzUTvqAV9xm9nazMdlEc2niBAessJ5hWLcTbPiDwo/Y7x/nmaR3lQh H8jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1+ENAf5FZOlmtXasRwpAAYffdzdQsa2mkRD7ZauWNfU=; b=lIJfPvM4hLCzkr9WKaO/UEKrpyXOQ4p+xyrCcfz1tGhKTO9H1ULcfl3pCwmv/eegvQ xKyQvBSzSCjtuBxoddGPY7bbebgAobnuPE4syFwmvLys2526grwEIXju1OfKqBrN3hdL U5tsPHv06PX3J9uPKR+oLFOaiWKMqq6IweuSd2xumuNJQ6XIOKMPPR3855qpX46q5wKH dPSHaiQupeg/XDsx130CpU67V0pCVoPz75y39GjhvUanMW78vp2jwijhBB+dN0K/nXdR 13Reh2lblqjgrlmONB7qmPM8xChTZnLrdhEdmP+Ihy09MBM2AOk+yUoQoUlMlr0VFwsy sY5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si3018857ejv.167.2021.08.26.07.52.09; Thu, 26 Aug 2021 07:52:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234068AbhHZOuC (ORCPT + 99 others); Thu, 26 Aug 2021 10:50:02 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:56511 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232815AbhHZOuB (ORCPT ); Thu, 26 Aug 2021 10:50:01 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MplsZ-1mojLw0uej-00qBXb for ; Thu, 26 Aug 2021 16:49:13 +0200 Received: by mail-wr1-f45.google.com with SMTP id u9so5482058wrg.8 for ; Thu, 26 Aug 2021 07:49:13 -0700 (PDT) X-Gm-Message-State: AOAM532s1G7jlaJ+axeRLjvUgnpS0+BXnwo9cAdmIFVplUV+aMOdPNwy oZW8vcJWwqH+JmDQEO0Y6eDrflxmR0dJSi063/8= X-Received: by 2002:a05:6000:188d:: with SMTP id a13mr4484495wri.99.1629989352818; Thu, 26 Aug 2021 07:49:12 -0700 (PDT) MIME-Version: 1.0 References: <20210825205041.927788-1-vladimir.oltean@nxp.com> <20210825205041.927788-3-vladimir.oltean@nxp.com> <20210825220023.rqskspy2usvleoqr@skbuf> <20210826135725.lrn2afoekxzzvtbf@skbuf> In-Reply-To: <20210826135725.lrn2afoekxzzvtbf@skbuf> From: Arnd Bergmann Date: Thu, 26 Aug 2021 16:48:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] mfd: syscon: request a regmap with raw spinlocks for some devices To: Vladimir Oltean Cc: Arnd Bergmann , Vladimir Oltean , Mark Brown , Rasmus Villemoes , Lee Jones , Thomas Gleixner , Marc Zyngier , "Z.Q. Hou" , Biwen Li , Greg Kroah-Hartman , "Rafael J. Wysocki" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Yqo5RM7wBwlNerRMAlbr/rtZ49Dn4fvQRba5Kg6tSe1gzBV1rry tw64/6izj+Sc9LT+fdYTcaFSsiy8gjUg6t0k506k9lF4oE1FBbMdUdxpbXQXUQb4GzOMPO+ Ou/JmVsaq/p6qou8IDW4QQ+LkP74P5zJeRdDRtEpOezql5iPHDmTs3bH+bPcCcdpB5U+YU+ TvXn6WF3z8CftsuawxaUw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:il2CvKVGKNQ=:JBfIfwwHC0jKtCO+ZG4Cw2 FdZBaVetjPKlVj2VCN4eUASMVGs9RvaiAdREvEMPhUFfZxLXv8xEFlhCCKR2HPKsojO5csG3q KsfH2/GzLcDYJaZyyF6XXpCMVyqqSYs6LJ87Kktao+7jIQU1wzmD7iD3Do2ohpvbDqlAfNuz4 9CR4c+PksapGGS1894S1A5up/b34gyxVDXnZp6X2oBlKYrJCUe+IzwvZ5xZUZE5xFFvhVkmhk +xY+YUa59C1LTnr7QRQih0SVDn8F2dA/xP+UJ5VsEKdrJdIV4OSrOMr0uCBY5o7dlOeq/seML LFFCvBjmtZnLljXkOjPpYtDYGsNwZTdwLl05o//qxmpTJzokCfo8+mVb6fR8pCU9H5z3J7xIh ykA/ZnUmVJH65Uk1WmTjVWQSS4c8VhekTG8MymDd/iS4spJknDLuOtXvYcDlVj4kY/6yk/zdr 0/zRTigJnxtWCWfrmoyOLVRtmJ35z35WBxygCc5+IVO5NhTCxkInbURYIwyqiSWLQeVoVzv8E QBycbd5d4iQiDQ2QWdeK+Y8KGrpHOoILbDk07DLUWhO2aelD5CznSR1dt0f44RrmLw198tgeh xA8TE0zr3knG+Luy9TFYVXWKLfeBB5KaoyDC9DwQguPSpiYU89WuRp2ArNUXPDy8/vD7TEwF7 lkMoz4aDQ1NQX/bdpLnNhU4jS2pH37IY1uzXtAyHkvc07huJlXDdPmKcbAfO8A3XsbD0OupJF odqzTca5aPfa77Bs6DHIZWox7CN3kNPX6NlJQQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 3:57 PM Vladimir Oltean wrote: > On Thu, Aug 26, 2021 at 11:24:24AM +0200, Arnd Bergmann wrote: > > So basically you want me to create a platform driver under drivers/soc > which probes on: > "fsl,lx2160a-isc" > "fsl,ls2080a-isc" > "fsl,ls2080a-isc" > "fsl,ls1088a-isc" > "fsl,ls1043a-scfg" > "fsl,ls1046a-scfg" > "fsl,ls1021a-scfg" > and does the same thing as syscon, but sets "syscon_config.use_raw_spinlock = true;" > and that is the only difference? That would work, but it's not what I was suggesting. > By the way, how does syscon probe its children exactly? And how would > this driver probe its children? syscon does not probe its children. As far as I can tell, your irqchip driver works by accident because it uses IRQCHIP_DECLARE() rather than builtin_platform_driver(), so it works even when no platform_device gets created, as IRQCHIP_DECLARE() just looks for the compatible string on its own. My suggestion was to have the driver that binds to the isc node export a high-level interface such as fsl_isc_set_extirq_polarity(). If the extirq irqchip driver can work as a platform_driver(), then the new isc driver can also be responsible for probing its children using the mfd infrastructure, which solves the probe order problem, and lets you have child devices that are not irqchip or clock controller. Arnd