Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2320424ybb; Fri, 27 Mar 2020 03:21:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvsV7Bww6ZeEjupu1o3W6GFg+5JeFoak/yM/WVu20WucPtg7kcUdhmVvk1byy+AT5C0bjbK X-Received: by 2002:a9d:7992:: with SMTP id h18mr3591109otm.315.1585304513401; Fri, 27 Mar 2020 03:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585304513; cv=none; d=google.com; s=arc-20160816; b=JJYg3llcziV17mNgs+3kbt4boRJ3YxtWzQIRF64NgGQSTWzPLXIEhivgvlHM+JegIp ufmbyVpkBfSe88W/LFL1+z/ygLHjJutF5rqKZYw5kFGvvDXjcVUcflKf2TkNIKHzasnN AkT2ojL1mGdC2dkCO2k7wJG14u9ctTjBbAwPKEyGSyCrUs/P0wVVoEVf/aFy1HSVqn1e KPEaq9Wwyfn9XR6vXcUIEyG8Ke5AHl4rVn8vMS0L//urCqZbmYzUqK1/sbw7g3J5KjXQ if4pCcRujQYqveMjhyXGcg8eHazArNPeqKYy9NtJ+BXTunJ3QPQxaKRDEocMFIjMIyrD n6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TuB8BNTEMS6Xu4xWKK0GTpM0KTFJDSPd7CoTH260LEY=; b=YAaxZfn8vDwyxfRIp67VQ3ajSnSNRCW5BfhZonHFxJmzLyzvhy9sTDR0Ql0Pnp0wVG 1jT4WlPrgcvXi61/x4VHPn6V0xRV69DlMSCE45PxRDgAc8DjDbtIGTfrhpfcOSekd+bW GFlwlNSMKgp8WznRx+tNKdMKDoLUyEFSe6riOVA2iQQ3gPVrAuUTfwkCRUzaOa9AW6wm hUaj5B7R5Z2ATImIoQqK/eOJvvIHB5/mYyrTMm0X/MMz1lLbQC+UZPsi3Cj/t/gzTGYQ gelqZhc6NYHZiOp8WSJM1I+XJw7a0x3fvVIs8ci+oRAMwxSmG3anAWitibB/efPA6sFH Q2OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWdcmcSO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si2194365oor.36.2020.03.27.03.21.40; Fri, 27 Mar 2020 03:21:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWdcmcSO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgC0KVM (ORCPT + 99 others); Fri, 27 Mar 2020 06:21:12 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36631 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbgC0KVM (ORCPT ); Fri, 27 Mar 2020 06:21:12 -0400 Received: by mail-lf1-f68.google.com with SMTP id s1so7370578lfd.3 for ; Fri, 27 Mar 2020 03:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TuB8BNTEMS6Xu4xWKK0GTpM0KTFJDSPd7CoTH260LEY=; b=BWdcmcSOZAia9WokqOKv83FwargH+rfDXr2Mp0QwyZsT/mABCSd3y3ZMISvNsbmXhU gQMIR1duY1UxdvKr1tbHQzNudMLJvKqINJWtOlrbk9+kwOmXToR95IOMrI3yVrYmqYw4 ERIXKr3kSqBiWHHSNhbcDl9Iko5A1Q0USZ7lVRGh7i4ZWuu8E4UBLvEJ0Rb7XNIkfIsy aw8uoNh4prsuenO/RPpdtz/llUkVRpSahQ6WFiqcc4YqGBOhRx5YxeATNzXZkpF5gRXs u9qzGndEeTvD5XvNeditQ2MMZ58/zYFaGXYoaCpP0AzoqV0GaxsvyztxFYEj52lAcoCH pBJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TuB8BNTEMS6Xu4xWKK0GTpM0KTFJDSPd7CoTH260LEY=; b=rln4Yd7cKCiM7XyFwTcY1Fa7EA6Hj5H9otsTrpdNMgXDOGVxbx8Kq2q4AygdUu74Cl ekfLWcbib3vC7fsbmzCOFfbg6t6dqJP9JAl+sPReNi5Szz0kHaGKxJjJbL30J88k+N5a 3mY0ryDOIOu7/b05kW4jzOaDmj5JEcrZ0kIqB8tzEIg7O8yvIhM2jl3H5b66X98UaHwO dTAOtnB8en9CHmHoV77S1KWC3u+kC3rWmxFYOFSnJJvak3ET+6xQJTxyXy664mhFc/3d Ey+Qg5p138DUY2yChhOt218cOJEvGjL2ZSZqbR3Ph76ys7yZx7vC91hFDswu/RY553xW N8YA== X-Gm-Message-State: ANhLgQ3/NjOes02RkWEOr9HJo85T/8x7GE3YxIEKLdYq7FLJ5eOV6/Rt CA/v4soNGQrfqUHMkfq2MuREGr0v+RlN/CeVjRs+vg== X-Received: by 2002:a19:ac8:: with SMTP id 191mr8675462lfk.77.1585304468041; Fri, 27 Mar 2020 03:21:08 -0700 (PDT) MIME-Version: 1.0 References: <20200317205017.28280-1-michael@walle.cc> <20200317205017.28280-13-michael@walle.cc> <9c310f2a11913d4d089ef1b07671be00@walle.cc> <22944c9b62aa69da418de7766b7741bd@walle.cc> In-Reply-To: <22944c9b62aa69da418de7766b7741bd@walle.cc> From: Linus Walleij Date: Fri, 27 Mar 2020 11:20:56 +0100 Message-ID: Subject: Re: [PATCH 12/18] gpio: add support for the sl28cpld GPIO controller To: Michael Walle Cc: Bartosz Golaszewski , linux-gpio , linux-devicetree , LKML , linux-hwmon@vger.kernel.org, linux-pwm@vger.kernel.org, LINUXWATCHDOG , arm-soc , Rob Herring , Jean Delvare , Guenter Roeck , Lee Jones , Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 9:06 PM Michael Walle wrote: > Am 2020-03-25 12:50, schrieb Bartosz Golaszewski: > > In that case maybe you should use the disable_locking option in > > regmap_config and provide your own callbacks that you can use in the > > irqchip code too? > > But how would that solve problem (1). And keep in mind, that the > reqmap_irqchip is actually used for the interrupt controller, which > is not this gpio controller. > > Ie. the interrupt controller of the sl28cpld uses the regmap_irqchip > and all interrupt phandles pointing to the interrupt controller will > reference the toplevel node. Any phandles pointing to the gpio > controller will reference the GPIO subnode. Ideally we would create something generic that has been on my mind for some time, like a generic GPIO regmap irqchip now that there are a few controllers like that. I don't know how feasible it is or how much work it would be. But as with GPIO_GENERIC (for MMIO) it would be helpful since we can then implement things like .set_multiple() and .get_multiple() for everyone. Yours, Linus Walleij