Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1893045rdb; Wed, 31 Jan 2024 12:19:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKJv0A7FzrzkHYFD5uHiD9XXt9NiCy3/AUqd98gvwCpBw8dI5KusbGVE4MdQI711l72cPR X-Received: by 2002:a17:90a:31c1:b0:290:2cf6:9780 with SMTP id j1-20020a17090a31c100b002902cf69780mr2676443pjf.22.1706732370319; Wed, 31 Jan 2024 12:19:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706732370; cv=pass; d=google.com; s=arc-20160816; b=QjZby4gZdzuBx0F28uJS6xODNYL8WmjGHmZksGgJ8njMd+3vaEZFNaAvnFCcYEjQaJ +Rp6YpYmtHRrLaOWuv8GDZgv4JuZQRvXl+gL1VmGVaDJBOVv/4FavCcSCNdUivRXSCaM Rg9fTyNgv5dlx4t3NvkMC2QWxLVEL56o7hRhn5WB+7E+EzuA70fVTJDF9Bj2SP1mmdw1 VXg2z6aEsiI9Y4PMbD4w8+hCgQMSL4SCaqJn65dN2EAfPWnweFLuTT5QT08bNB5WD8oj LbkGTRQLw7EHrj3S4K+UFB5XfPkfxVwNa1yR+O10T/2XnS0mZ0uGuDTR/Xxl++31B99u Fbug== 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=BTliOxaTIKtdhGrJh/+gt3GB4Eb5h9IjYdumB/YLq0A=; fh=XXTSSEg3emB9WxYFx8FG+x7HKxUEefdx82syMhZoMEQ=; b=kDpIF31EVbNxMr+r0iPh45D68r0FKRtf4/0ILdAfkOpxuuD8Napy1FqcPazUNNn5gl xsA4WBlnGrKNZkAjo3Vw+x6T/sgWZ+yyY+RrPkFXYk0Lgq7S3NNpjCikehSEUTFxYZ22 i+FFN8bXwgvI/NLV6FenJVmQvkzB5/2I1kAZSACoBt71VenbI01R5D8h04sndsrNV2Qt pRfuvg6Q5kw22FPOOw5TxaDUgV7bWDhB/JHtiw8DYeu/ulF4MbmcxIKvD7vWjWgoI5xY d/fz3aiX6od9Z0j+2j0XsaSqQudVbM5a8G8RS6WJFLIVyt5mE2ZiLQ3zH0GIb1fsywoI qtlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fDaNr2Ao; 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-47055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47055-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; AJvYcCXOWv9tQi2x9e+bta3G1Z76sl2PQy2zGFTGzwUCBmidXZdD+I6RQkXbW6687zjjw+tLiZaZfxeXINSkPTKvrP1RwtsXkuvP6H+tlHg/qQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j24-20020a17090a7e9800b002943cd1b20asi1950439pjl.93.2024.01.31.12.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 12:19:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fDaNr2Ao; 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-47055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47055-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C9C6928389F for ; Wed, 31 Jan 2024 20:17:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4B453FB35; Wed, 31 Jan 2024 20:17:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fDaNr2Ao" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 70D523EA9B for ; Wed, 31 Jan 2024 20:17:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706732252; cv=none; b=so4nwXyzm7Rfe9VaBKxSFvxqLxbn5O6qUSjsOtASVhLwwCdV5ZUUmXdMY0MnLUqfuIK6Xfc6CUfwnA8zuAT+es78w9ZqKtn0Xula/7LaAkBJtdYbU9zAikksikLTuk3Btfe0y7RQ9Lulqn5b88GA2DruvARpGY/MDDxDnkvZpaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706732252; c=relaxed/simple; bh=BTliOxaTIKtdhGrJh/+gt3GB4Eb5h9IjYdumB/YLq0A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=a54wSTljgoYwWxO5QUo+sqdm+zZZAQq3HyZpQqdv92Ur1Aq7THHjEvzHRvWmFKJ5ENvN6/92oZ7GWB2AeeWwV5Ha+BGtQVKwV2C7/BoB3xOonbMZzxteFCAFzWiA6HuLAtxN2xXdrC+gHGRIaMwGUUfznjYotzgaJubKcvjke2U= 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=fDaNr2Ao; arc=none smtp.client-ip=209.85.128.182 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-f182.google.com with SMTP id 00721157ae682-603fdc46852so1627837b3.2 for ; Wed, 31 Jan 2024 12:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706732249; x=1707337049; 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=BTliOxaTIKtdhGrJh/+gt3GB4Eb5h9IjYdumB/YLq0A=; b=fDaNr2Ao7hZVgSbDc7CNLOsmpj3bC+iwhd2SUj3SP+CzQhOMOsmvbfg34cmHtQNrYc Ef2wfDFIpj6Xvw8duIyahJAIcbpqmohmsaRLg9DGFoIqi0vRf6SzYxXbx0x3sUmN/Who G8Gtk90ShAagF1E+4U+nRpGF3dQyerPmDJspIHm/7pesqdD50fyj1JLp2EdggjsH0naa X3Shu9my5CTY8ehHsrd50zOJMAzD+08XFMGORQNsKZdupksGQ5tAxcGnz6iKbrXOdfCQ TGJ9JLKL0WjQ6kLzW7xnCd5I+HkHWtdYiMKRIVGWNiRUNSQolsQT8ThO8e0bELCc9sU1 tvQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706732249; x=1707337049; 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=BTliOxaTIKtdhGrJh/+gt3GB4Eb5h9IjYdumB/YLq0A=; b=kQaRCmawLWui/cKwlQfMFvWt8sVGbeiDXLzZ/AYZURvzzKJKo5V8CIMEHk9y/SPip5 ji5jWYTWDByqDEdlrmjQHDollTcLf3BaFIWoyCIcuLqr7Sd/2d9rnzes+daflLOPoCf1 CCyjfUPX8cMu+Cm7HTAqemNmrBLEN0Ohvg8servuvN1tkG7jv/MtZklG3IPbWgJB3rAv uYDty5QeXWQ7Fd95nxKdXm/XWVgWNwcxYPaYrz1jnGz8EyB2GeYUCy0oSRZ9+c9gVXrc /xbVxKAdPR0Xkgg6dnjF9RaPAUNdOPjDykuKj8Emg8gI8pxUvGqosQODwjMb7lykcKMu d4kQ== X-Gm-Message-State: AOJu0YxKqbhzGgosBhjE2alFlBWV7qyAMrI5Q7aCvQaHr2JpjtVsGQI/ TLXtc4dJv3/nZNeJJUeE2gk+6MZa11hJjrIZn65Nz1Eeg5aoNrQicV5J3OhxVzIBJVWut/njJ2U 8yfFBrI9Ul6kPWMqhy6OpFc5b/gCUkUPUP1SWAlnkV+ZLzuoHWvk= X-Received: by 2002:a81:ae5e:0:b0:5f8:f50e:bcf9 with SMTP id g30-20020a81ae5e000000b005f8f50ebcf9mr2827329ywk.20.1706732249448; Wed, 31 Jan 2024 12:17:29 -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-19-brgl@bgdev.pl> In-Reply-To: <20240130124828.14678-19-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 31 Jan 2024 21:17:18 +0100 Message-ID: Subject: Re: [PATCH 18/22] gpio: add the can_sleep flag to struct gpio_device 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 > > Duplicating the can_sleep value in GPIO device will allow us to not > needlessly dereference the chip pointer in several places and reduce the > number of SRCU read-only critical sections. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Yours, Linus Walleij