Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp816326rdb; Fri, 22 Dec 2023 06:06:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtWU+BaStih14LbftC+yaHeF0OBKpXNaJ9US8B38U4YKvGbt66k2STaUnRynDy/vnw3Cfs X-Received: by 2002:a05:620a:1441:b0:781:1d50:b4ab with SMTP id i1-20020a05620a144100b007811d50b4abmr1348014qkl.152.1703253962409; Fri, 22 Dec 2023 06:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703253962; cv=none; d=google.com; s=arc-20160816; b=Q0f4dCe3kaCsGtfyQKuk0JCwIMmuGznKmIGdpK43gqIppNOVO3zAjXwF/IpgKQa6tV WKIC4I8aO0ss54+jZ2hWVgVjaDJu4giJmrP2d2X0erkLPabxytXpcSFVWO8o+F8NgU/O M5VY2Rta1Xwnvmm3ixwoJTTRzBGQNBgG9ib3VEXTpgE/fsRtZxHna32pugHH5mPpE90I e7XCZjAIKdj0rJKNV99z+fNb+OJ+TzT1ITgMPQJpdxvOZ4fkQltV8Q9cqr+1gmBRZLmx kaicEVw83xTuPfQwNjsR54PZ/6M9yy3AQunkH1xLXVfzr0R1NKUIf2ftsNyeLmiCgJNg bMJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XP2AexlV3G7GLuTlAIigyiZXkG8ARUrxAREXhx19OIc=; fh=raN7acOFtyIoGIBUpyL8FZI6nYlPAjXjd0W7qyoBsQU=; b=nEHHdZBFFRGYYkWi/CaR8nE8EuxWds2wb4u033kHRGSejuAalLkSqDOunoSVHzv1Nm 4qBy/rgCPcfBhiyPM37ESujn1TJx2e4teRtIx5qzHV/RWnjDF1V7ySM+SjLvx2YUDb9s 7mDktmApMUf4+fKu3yqddS71Cj4C9nX6JnssXVOGlOO6RwUzw3tVWkdfh4FESCZdgNIx rYrNIXTN7clcxS/Da1xhiQEX5/gegbBGns+VnAqiqExkQuQmcnxQexmKFvhMT0aw2wjv aleUKWB5f2B2GdvbJly6CT2eLVbyi9ngbnVqG6jmu5YpH1K8my61dlH+afSJNwfnRQlG dTXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=CRxxr7Dx; spf=pass (google.com: domain of linux-kernel+bounces-9765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9765-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ff16-20020a05622a4d9000b004276175cda7si3874925qtb.136.2023.12.22.06.06.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 06:06:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=CRxxr7Dx; spf=pass (google.com: domain of linux-kernel+bounces-9765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9765-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2DB661C223CF for ; Fri, 22 Dec 2023 14:06:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52B661A5A2; Fri, 22 Dec 2023 14:05:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="CRxxr7Dx" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 595111A598 for ; Fri, 22 Dec 2023 14:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3bb69f38855so1305549b6e.1 for ; Fri, 22 Dec 2023 06:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1703253952; x=1703858752; darn=vger.kernel.org; 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=XP2AexlV3G7GLuTlAIigyiZXkG8ARUrxAREXhx19OIc=; b=CRxxr7Dx+KIuwH4p4SqMpnY/MmiidheA4ARwVZwM0GwJTXdErf0FyTXPZAa2gu9oCz Xde5WG5asDAu0+qrzElp2V3HSOwKYtkQZiaFm8HKox2tJsh8HaxTP2TbF6ljtTzoSocY V6zlxBYH0ZF2SQCcgb4Gh1EbaaHL+7zdzI1rFOCf+RK3cMfffNC6/KGqiPeaG4yOwdno 9AiLvRrKyXJipiur3VKyxbpLREQij1S93xdlAykSpC4otsr/+qYqr/UriLlJvkxcHfF/ DszXdNW4KBmfYwKLrq67IxrKNzhVT1xDp9YqyeObANbDeQmtrEE4nxfJc/BX4T5aW08C cfLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703253952; x=1703858752; 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=XP2AexlV3G7GLuTlAIigyiZXkG8ARUrxAREXhx19OIc=; b=PntetvFzHHhDjt4oIm57Pk/TXfNbZjyFKNkEMAZ2unkNOqCPj5TYwXmH/mJhjLatqq d0JZ2UqdeKEQqdtp3iT0t12yd6ZA7qADDtiWruoEKTl82sn0qzIcdcbAfkK3JT2r56Kr ukYMg8x1ah4f/uwn7ucH0UmR6E3TNOaU6K60e6YRJXBH7xJef1O3r7L+ZfRayStxDV4k Ib9p51YJPMEoRiJO6OZpexOM7LAyAySnFVi8DU/jzUWrGDQfykbnHuu/AMAM6mwsIqbv CCoXhXxZwaKAPkbJNmKWI8cD0ZBujKEuL+CaInBm9As/BTAPIlMHPMqOPRVYt6+txSUZ hzcg== X-Gm-Message-State: AOJu0YymaCEae+lJNrNjk53imZ3nL0ky3tPahHR/OjdKv6G50YGH76sD zMod4cdba1kHgFC1IiGv/C5AvKiGuvkj6QR6i+Ifes79Np5p1A== X-Received: by 2002:a05:6358:4291:b0:173:262:60b1 with SMTP id s17-20020a056358429100b00173026260b1mr1377603rwc.63.1703253952327; Fri, 22 Dec 2023 06:05:52 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231221012040.17763-1-warthog618@gmail.com> <20231221012040.17763-6-warthog618@gmail.com> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 22 Dec 2023 15:05:41 +0100 Message-ID: Subject: Re: [PATCH v2 5/5] gpiolib: cdev: replace locking wrappers for gpio_device with guards To: Kent Gibson Cc: andy@kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 1:47=E2=80=AFAM Kent Gibson = wrote: > > On Thu, Dec 21, 2023 at 05:48:52PM +0200, Andy Shevchenko wrote: > > On Thu, Dec 21, 2023 at 09:20:40AM +0800, Kent Gibson wrote: > > > Replace the wrapping functions that inhibit removal of the gpio chip > > > > GPIO > > > > Bart, I don't care either way and not enough to respin a v3. > If it bothers you could you fix it on the way in? > Sure! > That is if you aren't too busy reversing xmas trees ;-). > Joke's on you, I actually do find them easier to read and try to use them everywhere in new code I write. :) Bart > Thanks, > Kent. >