Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1873921rdb; Wed, 31 Jan 2024 11:40:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQVZ9Jbf23BucdNcF94d+WoLQME/xz5qHo0WA288wMsgPjgl06ZlelTYS3SexH5srxm7Sj X-Received: by 2002:a05:6a20:968a:b0:19c:9105:967b with SMTP id hp10-20020a056a20968a00b0019c9105967bmr2454213pzc.32.1706730051817; Wed, 31 Jan 2024 11:40:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706730051; cv=pass; d=google.com; s=arc-20160816; b=IbYP+cyyyzED/kNzoZeM40AZYvc6MG0ieoDGdRRts8jKsUdLQQZgJErH0AEm4uizUe ppZZuIIYwnvDTYVub9JLplZu56o/4+28kSrIFUhcxG3lBD6AX3HNBQN3HknjtO1SSLRM 8lxVWNRdNIh2PIcuWEJVc67/vAh9T1xV568oHN1gLGezxNSJfe1XeVcAW+hOoSi5X20t QyW1VXqcdtD0bQXPoGNJn0RYTqhFMzxZHrNBpzqxEvQVOTUBIqz4zxuoSuueYZGbhDxO DBA+clhWdHNRg77QhFpBiUgt3Mm0TqbfgyrWPdc62zW/HbhajZKPJ2mrmpcBzJDQs1EX xnMg== ARC-Message-Signature: i=2; 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=UDmCmOtnw8M0P/f5Q0lrehAH3NXDTmEoF/3d+TzNzB4=; fh=O4xjmAY01R9r/yr0z1GHkPzDlF1sbWBBkWEiBExUmWQ=; b=NKeJf+4gm3DheD9Yib5LOe19MW88gAjdakynGRrtzqv0Dl7HPVyZEKKyjunblEEdQH pqhasDDkPRScTAG4GA1Y0XTJl3oknN/DrX+3TUUjaOnDkAstBhFjhY6p2paZf/rJ6qZ/ 69VllxBqj0w0R6qgaUkr42fOO7GMVutCqWqZxeiWxXdJbUdAvA3DGwFYnT1vcEyN3MWj oDvSZivCmX7oGNyXd71qYop0yoGAtqAR0vuR2f14jBvKCZWqARCN8EErWqDXNySPSDUQ jEhmrqpYPwSeUFRW3OS2Yg8nkHK3CKY3JQreuTewLC8tWXgC5u6MI80M3dMtpuwCiZ1o a+Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvIdksbI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-47019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVTjP6GC8YRY8VwVUZYTdZUUd13+9tfx18cSfJZXZ5QZzidCY16VHSDkJmtNV9T98a0opixZ5HNrCpekQCH1+is5fmLXbY+W+Hvh8ovBg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p23-20020aa78617000000b006d9bde32376si10266182pfn.260.2024.01.31.11.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 11:40:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvIdksbI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-47019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 04A02B25B6B for ; Wed, 31 Jan 2024 19:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B10863E494; Wed, 31 Jan 2024 19:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XvIdksbI" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 3AC7939FF0 for ; Wed, 31 Jan 2024 19:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706729720; cv=none; b=RePKigy+EokaQ7zFn20pSQhGhULzI/xrrLAk9EUQ910unmBjtGI+MAFPdUwAQU6UFPRZ6stTdoOW532f0X/wY8YUDS7AeJV8zIkDH9ybIwQIHMwIkVSfduY75afa0YiEZ+p62e4R76T9R2RTiHgSbNJE2taTuz09iXqBVl+ZF1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706729720; c=relaxed/simple; bh=UDmCmOtnw8M0P/f5Q0lrehAH3NXDTmEoF/3d+TzNzB4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Zcj6VbpxuOHvORR2fWHVnRK0SuC8u9KSGNz9R3QQ1LpNU0IBsCQhuU4UmIYOai4CGDlQmsX3gUSW9mS7zjufrJrNcrVqEGctchLu2xihBPzIAWGDVAzAShsx+kzq1FFfXm1Px0Bgq+n7TVq44pxiYts/oBGJTL/tRlfNTpxrqt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XvIdksbI; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-5edfcba97e3so1399907b3.2 for ; Wed, 31 Jan 2024 11:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706729718; x=1707334518; 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=UDmCmOtnw8M0P/f5Q0lrehAH3NXDTmEoF/3d+TzNzB4=; b=XvIdksbIwvURcsyRbLLtSjazwD2J2t9XYDp/QWdJuVg+AFGMyl3weFYimWDsDZKGQ8 MxVENR43W0EadA5G+qixVROVVA7ha/E26HqZR+gAoAwKeC+gf9fhDkKzptDljC9Jn2OF ZAVYJBYNVIMZFbGOvo46ruafUxLz4BrXXwxwqZNuy9bofdouhzJaEmsBolyK+tVdswb9 LfS+EVTZKunL4/0inK+q++Ny8T8OlenU8XExHWSCoBy1b6+lBuPSaqBj4zy4imMW1Ifk tTRlW84+fR2BCXmMhquxBn1jtRziSibQTSRI04Xm0TNWawsuJzH28Ie3AQ2Kqm0LmrRs E/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706729718; x=1707334518; 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=UDmCmOtnw8M0P/f5Q0lrehAH3NXDTmEoF/3d+TzNzB4=; b=vh4qnhdwIjHhKVlqX0kPdzc+XZ1BkplfxN3TWtrMrtBpZHRk+R92qhZazMG3tWM88V WxTqi8G8rsGQ74bjoIhGI6i2Uim/jEkwhGrsHmovFsL7AVq7eAoi8IY6DDzC8vfnSW34 zSMUiM4Mqx5htZ+YqdavMLjt13FHCaJl6xcXAFdQIeMeVRjG3e0EHl9u+pTYUpebPssq s+U/LBS22CUVKwa774Rpfn6xofn1mJtbr24p1RboDpqKCKLn3XTojaqm/MvJotKdAMvi HHlQsXBovhWhdvVPCPnf+FTWUJ5t4rUeYhRJzzytnB3nEyQ/9SSdTQ4i+6KU4MbMSaaR rDaw== X-Gm-Message-State: AOJu0YxcB4hyrFmgDBvAht2R2V6ZzCKGz/TjyvAfTDbW+UFPtmVXkt90 xtuObt1b49IgbL4vl/DInTWWTX5LHF746hu6XdtFD0Pkv6z4+egHinTzG0nk+Y5GjpymO62lswX CmPuv7rn9iUSxcBFFB7B6RUfFucm4FSzlZG6FYw== X-Received: by 2002:a0d:cc12:0:b0:604:2c8:e49f with SMTP id o18-20020a0dcc12000000b0060402c8e49fmr2039032ywd.50.1706729717963; Wed, 31 Jan 2024 11:35:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130124828.14678-1-brgl@bgdev.pl> <20240130124828.14678-7-brgl@bgdev.pl> In-Reply-To: <20240130124828.14678-7-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 31 Jan 2024 20:35:06 +0100 Message-ID: Subject: Re: [PATCH 06/22] gpio: add SRCU infrastructure to struct gpio_desc To: Bartosz Golaszewski Cc: Kent Gibson , Alex Elder , Geert Uytterhoeven , "Paul E . McKenney" , Andy Shevchenko , Wolfram Sang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 1:48=E2=80=AFPM Bartosz Golaszewski = wrote: > From: Bartosz Golaszewski > > Extend the GPIO descriptor with an SRCU structure in order to serialize > the access to the label. Initialize and clean it up where applicable. > > Signed-off-by: Bartosz Golaszewski I don't know the inner transcendental semantics of SRCU but the code sure looks like it is doing the right thing. Reviewed-by: Linus Walleij Yours, Linus Walleij