Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1143122lqo; Thu, 9 May 2024 06:08:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUxEcSpRlWvxyhHK64xEVX3gkRBn5jaiF21clcf3NCAPgdTwTp8TqlT+DRfyNEcnLgXo6U3ZYw02K6sk4d47N5ebpBJUkriMhYEpxgxA== X-Google-Smtp-Source: AGHT+IES3g6ToNG97gQb8mnd+rqBYMuVsfxuv2qFQF+xmO27PZJh/aixiCyLnixnP9te8xclPpfq X-Received: by 2002:a05:6808:11d0:b0:3c9:950c:2227 with SMTP id 5614622812f47-3c9950c232emr487761b6e.45.1715260087937; Thu, 09 May 2024 06:08:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715260087; cv=pass; d=google.com; s=arc-20160816; b=QvCFYoZCyEmVqurvPOyvdUh1NUnVT6Ufs7YZtw01ugOrIHzB8TI0JzG3jlglhIrJBm fkLgF5vTJJYycy/shki0KokqKcSgcVRNdWMOUz1ZXYLxnOOUnApqgr4H0ydLe3QGfpi1 IePKQnJV8Pn0hPAIh49GoTVlxEcxSbzoWwTseOnR7Eht7KdJRCzFT6E2A46nwoz24DB8 XXV27oUUPqgAeXPFq1aSjwNsbixypb2LQESHqbE8q0JVS2cgUF/BxvFk00H5Lq6vZzFP pulDRSZWgcyy+hUsSXUlI3UQAZXk0bk//yE0Z7n5W6qLlMY6CH6lvFdsKO38MPG4ZLa0 A1RA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BnIPJSuPpdfHAhCpgelWzQDxXKYscFTQ9fmV3MxWiXM=; fh=T/rScvA1trabj+aaROPtOT0nBbeWl4HdH2K2Z5OYt8c=; b=aR2RdiK9KMtF6MKNHh5vnLzJxZZ68eT9kcfCPVGVsz59Al8fPVGXL/Ex7JWLYitDZ9 KU2U03KlTV6khvLn9g+EOPz2Q6dx0Xl6nsIUOQ0YM5WN7iFdszK78x/CHIyHUxM8R20i vbbZ9nMfT0obIAaEnLP9El6kkcKNFRyyHs80nZhqoXCPXMZTc4vKQtgeePEmtfPht57B aqKwICGNpy5uzmtCoydEXBkd9jyNyubQ2ABFBb96b8iWq+BCMjB8YS6gqUifvhsHzH5D PvC8a7NnbNphSCfzBv3GDMRuoQMJnlT8/6n6tEjhZGUKI+Xe4HZdZ72axhQlamgFCj0B vsGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=QVwpTfNp; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-174528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174528-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-4806cb7e313si135472137.87.2024.05.09.06.08.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=QVwpTfNp; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-174528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174528-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 B0E3F1C21EA2 for ; Thu, 9 May 2024 13:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8199D15217A; Thu, 9 May 2024 13:07:58 +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="QVwpTfNp" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 183E31474CE for ; Thu, 9 May 2024 13:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715260077; cv=none; b=IWLoB6HUBc5l2yaVXQHaHFjZqgNYkyVroGvdSq7Rnj56q4nTQLra3iBiFjgt9fPLWZmldVh7hIJbd5UPNIgLaw7eNhXTVefsPVcWrQqlHmDIURL8FtnL1Nj6Tqf75mXpYNWsE6xU13wn/iHr5rg/JwSC0OTFtuy0RT8PGZDmgb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715260077; c=relaxed/simple; bh=z8SqJFswMNiOCt/oP6O/swgxgA2P0/VGrYDi7IdlXyU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=nXnTZUBXCOZKsP8HRPKvcvo5FH3s1ohzV1B5/EapuTggdgP837MlYOwwT8m80VtJg7yhqEaGImyXiE46GM1hcVv/0lvljWXzANKHdVsPj5wXBE665PidIjqEjB5OUl9u3rMCY2GsOq/F17GIF/uLVn1KIxqe9q3i+2aigeB+Apg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=QVwpTfNp; arc=none smtp.client-ip=209.85.208.176 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-lj1-f176.google.com with SMTP id 38308e7fff4ca-2e3e18c240fso8979291fa.0 for ; Thu, 09 May 2024 06:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1715260074; x=1715864874; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BnIPJSuPpdfHAhCpgelWzQDxXKYscFTQ9fmV3MxWiXM=; b=QVwpTfNpnFBE6FSBD5Z1mVRCF0biN2xFbwAnyst68JqoS9BEABNmZP+hUhvkAiG9KS 1tSRA5djNokPEEGG2lHtZ3Rco9n0H7FWKbNVsgRjUS1eQ3+0G5BqPw8n1CSlQEGxuZow awlG60ddW+ndAC0R/IeoBcGdOepQwKc+68w3HONwScqLSCoU7l01Fa5ryg4UOuumXzre EcTwFNNf45hM/knUaXjagCp1YD04K9hopJPtuRSl13jHvLELNqtlN1xPiBJV/+NtqpdO TYYYjOubTWoA+apwtmZSlQlm1jv5X71p1W/Y00VgPnK5dXR3etJ6NMahhA6iP8bqW+3a CXHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715260074; x=1715864874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BnIPJSuPpdfHAhCpgelWzQDxXKYscFTQ9fmV3MxWiXM=; b=tWkPH+YLLylRB5sLD72q6NlyiL/kfeXVvcnhtJfxZCs+UE7AG5YYcQOKw6jcB4EHaw zMvRaKx+SXSpf6xpIDGvXuRNlbnxM0YdGQ1jOpccvxgbc3ZEoaX7PXgr6X6h0nTw5skw GZ04/dwuR62CHmY5+ZpAqo+YNC+7cIdjZbHfZO/qnQ651qWSS9pfun0M4vC1trvoTPGZ edvjD6zEkGGu39u5q7khMvcAm01MEGs2kF2xs1uZ4jPhRDjYoe7E+Bineo7YohSL1eqT +CubOg8vS/OPuzVG+kn3mz5+un4PvEUJrpheMs/025EwV2ZkMtH6RjRWRfwZEd946yzk u59g== X-Forwarded-Encrypted: i=1; AJvYcCWbX0qe4ufkJf6Drzagw7xvYEY2jcrwGltBJsVjGZKTsGRRny7448qN9DMAoQHJooP9FVpijW4C7RIR1PEE1keZA0RPj8iXRvDJztT8 X-Gm-Message-State: AOJu0YyJBqQzQdKLJTHfjUylhACt15IEaaqoabygFTzXRr0DjZPJI4R1 AdsHD620aOR1/mMUt7StFT9Xe6++ycrPS9vGl7D4Cjjjn0FzZu3qUW5kEWe1Gy0= X-Received: by 2002:a2e:870d:0:b0:2e0:3f37:5af5 with SMTP id 38308e7fff4ca-2e447697286mr45694331fa.41.1715260074260; Thu, 09 May 2024 06:07:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:75a:e000:5c73:df7d:ebfd:d941]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f882085c5sm60626675e9.40.2024.05.09.06.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 06:07:53 -0700 (PDT) From: Bartosz Golaszewski To: Kent Gibson , Linus Walleij , Bartosz Golaszewski Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E . McKenney" Subject: Re: [PATCH] gpiolib: use a single SRCU struct for all GPIO descriptors Date: Thu, 9 May 2024 15:07:52 +0200 Message-Id: <171526005990.16179.13548989415103122490.b4-ty@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240507172414.28513-1-brgl@bgdev.pl> References: <20240507172414.28513-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski On Tue, 07 May 2024 19:24:14 +0200, Bartosz Golaszewski wrote: > We used a per-descriptor SRCU struct in order to not impose a wait with > synchronize_srcu() for descriptor X on read-only operations of > descriptor Y. Now that we no longer call synchronize_srcu() on > descriptor label change but only when releasing descriptor resources, we > can use a single SRCU structure for all GPIO descriptors in a given chip. > > > [...] Applied, thanks! [1/1] gpiolib: use a single SRCU struct for all GPIO descriptors commit: 7765ffed533d4a9f0291a0edc660496d104396ec Best regards, -- Bartosz Golaszewski