Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6031389rwd; Mon, 19 Jun 2023 00:59:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kzTfiGIi3zfqHQpmue+AxD0//ft3Nt+SXUtwrg9diOzJcSRG7OGSw7o8+8Vuzo3nLRmO9 X-Received: by 2002:a05:6a20:6a03:b0:10a:eea0:6987 with SMTP id p3-20020a056a206a0300b0010aeea06987mr12528716pzk.26.1687161556402; Mon, 19 Jun 2023 00:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687161556; cv=none; d=google.com; s=arc-20160816; b=k8lswWbDDRVNvUPphvNOaHHW96tPuLh+QDYcsDAIe4u6t4phpjiMbJfUf6JKwXqMQ2 y80Lh2Ydm7egh0qU10mK1ZYUPQSBxM83SNLPsD0q7lNUgDilbzVy/1eQanEB9a/wlXPU SU9jS2Ct7CRRnu9zlFsPiFeE1+zipzosgrX17k8/ts5OIVFNUXODtuxxIY4RKHVqwhMQ ovTh9Q5+plrmU0uqdE4l77ZD+9dAj7jBJO8Xe4foIl1xnMCt7FFYehXZu2TKRSeTF8vD t0uHOplYNs3f3G88sgf5aEZKbmZr29EmND/sfp/gDCJGOTtP1/PXDO7RxGKS0t3Bizsh bi/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4rfqVV4RqiyGX+NOos9GrR72Yg9f5DCocdZ0hjpuxCI=; b=azdP2g7NDP+VicbUYrbt1tQp8Qqo6+hFIJdXeT+bjkNh4o5XYggH9TRQIwIxDnns/Y UeHFIUSFSoEVJfZBj+4brcrAFiuiXhrS0qJ8bUAtMPdR/D5jcrFDIE+pExOdbOVJnC8f QT/6h3qY0pDMvtXwenbVf21f3xSHK+8FjwdYIO0yiVQPDV1lN7D3xX57JRXWvFF2Zrzr IljJcR9iBY4FiwcsFyGf/Ei4UrvWWW5PkIhtGOVDpJskFrFfQBEuJIbV6mWZ7kLl/22W Fu8MkTXFtlzYY09FNNy+AfksOwGSdG93xOzQ2RFIwzjLn3/EfdaPL9FUM6NhD3c4wc10 MUhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gF6aMplC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c196-20020a624ecd000000b006666cc2f03dsi723381pfb.283.2023.06.19.00.58.57; Mon, 19 Jun 2023 00:59:16 -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 header.i=@linaro.org header.s=google header.b=gF6aMplC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbjFSHoY (ORCPT + 99 others); Mon, 19 Jun 2023 03:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbjFSHoF (ORCPT ); Mon, 19 Jun 2023 03:44:05 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B29FB1 for ; Mon, 19 Jun 2023 00:44:04 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-bcd0226607bso6389981276.1 for ; Mon, 19 Jun 2023 00:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687160643; x=1689752643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4rfqVV4RqiyGX+NOos9GrR72Yg9f5DCocdZ0hjpuxCI=; b=gF6aMplCSu2sOB/mOJCxQ+kgwIDeX4++gFbVg8o3++FKFxZxhjseSDRKtp0V3+ETzH gIvOqxvPQQ4rNj78kJ5ToXXifY3Q/rVRIUk70dFCzv/huIacWmtwcez5OG42CtXeP6Ve TWSTaLit3tdftYavzZKYvbwq9NmNxnNlJVonqXOiT2RvQYOBP0iMjAHjA6NCIRNkKkl/ k/8rkYQuQbX1V0p/PrFsFF4vRF8wQafAqIs4blOT+GsztKb8knC05AamS5ncai+2rubY hGHwTW5TRyrwytELCOyoS0Hv24Co3KH3zpZQnCk4c5CnMG8ynVt3BJkI311WctPidttL wz5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687160643; x=1689752643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4rfqVV4RqiyGX+NOos9GrR72Yg9f5DCocdZ0hjpuxCI=; b=YEUr3tj/jIhXsVAn0f+HDkyN8M/J+nVYxvSa2faTJMF2hRfkCsuwC0Gy1+LAXV9qTB Bq330I4fjxrL1FtY/XxDttBeL90Wr1KyBTLiPEh9k4SjTxsratECWBn4TOTrJRBWmPWX T+qEv4DGrYmupo/fmX4iAs1lh5u5UiIU0FuwAqtEL67Y9/hzXIVSyKQd6Rd6vRpufKyO zJmxS2UZa0lv6WqvKrVjG1vuKCvB3NPpl5MoiKJSXUdeVM/+uoPvJLvmTceFsWCZJEqF pPVODVumxGy3CJJmgzUEOKYRkY+BtOGBPT2gtLIB8/vhR7cgczshcbcqIrhqXdTIbP7V mzoA== X-Gm-Message-State: AC+VfDz2lmNTxTFm+B880tWTLckYo9d7pc19qvjMkedqz+Da3e+5ShYa YvwFOclXNVLQWAKZ7VMKmMHCcGbXZ1FaUi7oBNB5zA== X-Received: by 2002:a25:6902:0:b0:bca:f08b:69ea with SMTP id e2-20020a256902000000b00bcaf08b69eamr5742162ybc.14.1687160643564; Mon, 19 Jun 2023 00:44:03 -0700 (PDT) MIME-Version: 1.0 References: <20230616-fixes-gpiolib-irq-domain-v1-1-27fe870db961@kernel.org> <4b55afe91d2a704c0229340c5ea4885e@walle.cc> In-Reply-To: From: Linus Walleij Date: Mon, 19 Jun 2023 09:43:52 +0200 Message-ID: Subject: Re: [PATCH] gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain() To: Andy Shevchenko Cc: Michael Walle , Andy Shevchenko , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Jiawen Wu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On Sat, Jun 17, 2023 at 4:25=E2=80=AFPM Andy Shevchenko wrote: > On Fri, Jun 16, 2023 at 9:02=E2=80=AFPM Michael Walle = wrote: > > Am 2023-06-16 16:13, schrieb Andy Shevchenko: > > > On Fri, Jun 16, 2023 at 09:30:06AM +0200, Michael Walle wrote: > > ... > > > >> /* Remove all IRQ mappings and delete the domain */ > > >> - if (gc->irq.domain) { > > >> + if (!gc->irq.domain_is_ext && gc->irq.domain) { > > > > > > Looking at this, perhaps positive about allocation? > > > > > > domain_is_allocated? > > > > I mean all domains are allocated ;) > > > > domain_is_allocated_externally? I'm bad with short and concise > > names.. > > Naming is one of the hardest problems in software... > Your variant is long, but conscious. I dunno. Bart, Linus, do you have > any ideas? No, this name is fine. It is meant for human readers and they will immediately understand. Yours, Linus Walleij