Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1887938rdb; Wed, 31 Jan 2024 12:09:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmHYeOTnba96ThHvqGTbAKzRaW/UPaymJhpWm/xZ25+MKnsJwMMMhn6BHqa+j1croMXlm4 X-Received: by 2002:a05:622a:54e:b0:42a:60cd:ce41 with SMTP id m14-20020a05622a054e00b0042a60cdce41mr3526895qtx.53.1706731782550; Wed, 31 Jan 2024 12:09:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706731782; cv=pass; d=google.com; s=arc-20160816; b=v+CV+d7rcpfYdnXs6dqJhjlueDjauLQiKsDQv6AuK/A6EqGXGpuCECfDrW2aY3lg2Y LaP5FZOw3UPLsTOv/jB0iWbRRHR5Rxses+cImaAyQjotlL+sfatUs//tlQaBDr+wT53o 6uPBfDypuCAshNeTGtOFvIAPXFDKyV2QRENz3c0OhYYSrA34wNzSVp/adrtxqqrxl5Fw timqO1FIJ7e4n3Fkix2gv7edA5cNS8qKYmqqz2m1LvajQ8EFJlwqYB4AjVePeFdisAX/ hEIXvYQQBNE97c16W6uVu9/CgBnudU/8Dg7SAAAFqhNuFM1qWlMEsolcovGlcPLmd+F/ V0cw== 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=JLs3ujfSuCNHk+r9kdTZgZWtpODoYZr4k8z7pON1yvs=; fh=jOigZTQQPOxul4vAWFZSrkS9oZGR6ylVq91zDMBo0ME=; b=Nm5WsfHVuDffv6UTbUl9Hy8hGQjVO6LQrC5jW+mwrbiAm9vwUP7ZmGIPfVrqFDm6Ut OxuFwryTxQyLxyS4aWOWAcSIZmG/VD7DomoImNRFWqQom1rMhXK76AKQCgBJZkYlKHz/ LxCrajAP0EP5yxWQk1ml4TgSIM+BGn0zNBECaAHvu21baoeIaNpDUmirzPCcA8b15BoT VHQrRusgNwDtnO2dPdzO3twrCufecADS+doODYXwowvfpurp6aVLq+h38x/Qc3Q77O4W rmZ3WaHQat6R8FBjC2AxXc+FN2qyZc9ipg9xB7+yWS0ySuR1udCXb495XkBimEz9bJDg ZgbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bK1cfyt6; 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-47047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47047-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; AJvYcCUAs9tJ93kWq2BsxDktXo6Re7Y66eSrjgRFJPMgnJ1fKMOxycUn+uMEfrxvCN8x87D2n7ZZ9ZqidsAwSMfhNiKvcsd7+PWX3M6+mYB8EA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l6-20020a05622a050600b0042a2e1312a0si13055934qtx.216.2024.01.31.12.09.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 12:09:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47047-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=@linaro.org header.s=google header.b=bK1cfyt6; 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-47047-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47047-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1981A1C23E11 for ; Wed, 31 Jan 2024 20:09:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB0533FB0D; Wed, 31 Jan 2024 20:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bK1cfyt6" Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (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 532FE3F8C0 for ; Wed, 31 Jan 2024 20:09:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706731777; cv=none; b=JlUzYY0CMcgcmw2+DH9W/fX4ZKT3yt8LVBwPMcgu8gsXfP86kqegT+MpqxaaBRWmAqV8EpWAmtHGisM+gwWUb7nTC5DuUjZBmtvSkIIEj5H7t1OuPOkZLOIKvxX9A94Z2lDlEIthGrLSxqVD1BvwBVKAAiGV9P4nPhA4h6rF9Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706731777; c=relaxed/simple; bh=JLs3ujfSuCNHk+r9kdTZgZWtpODoYZr4k8z7pON1yvs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EebbpQZ9w3VoBB+Pq+zgX8bYPidehuGU4aAlbQyWP0ZbhLO3Tn1oUwu4ASpYxhHWWzrU5taAI4IUzaEsf2BlKVioDR2MXfDWBQpifQ9flIIuigJrKdY/pqzCQt3WaWnVqOQr3mR9MKewHZdN7Eu2HkAV95kZ349Ne6yq7l9tXuY= 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=bK1cfyt6; arc=none smtp.client-ip=209.85.128.177 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-f177.google.com with SMTP id 00721157ae682-604055e48a3so1748637b3.0 for ; Wed, 31 Jan 2024 12:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706731775; x=1707336575; 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=JLs3ujfSuCNHk+r9kdTZgZWtpODoYZr4k8z7pON1yvs=; b=bK1cfyt6tYlf+j0o+Y7hyr2YFD+Hh5ghGyUg/DFZVQNalDf45++avXVLDg1MvaFLwZ xYNuJfEF3uaI6TypnVMudQREDL565kIgHR030mem2aXkNAMYVi+6nOPMKL0cd4WV+Yxn X7hOjjdqmz5ISGznMdOlcKrobnQQkPv8ca4MCK8OkbzHOMaQX2pzkzb9A2z1AX3hcW37 0QbOrpW230E8IUFSIDjsUaLjly3eNNvdXem6bFuuX34IMtRZ2sJo+zVP0jk6d0rkMhZD 0LZdel/bJMwLTmYL2OyKYH5Ol0YDxJshYLTivMUklEueI7HLiH2se51yWzRNpRrWEjpX yM5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706731775; x=1707336575; 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=JLs3ujfSuCNHk+r9kdTZgZWtpODoYZr4k8z7pON1yvs=; b=oPhtINa7+qFIUU0yY04G3jPOLYn4idQwMUsfDluGX5btN0PQR9xQfd/Qe2eOK6ejCJ 5tvgSITB06MQbhhISvzPnqAy6mHyrqajXRxwl5dRpFd8ftitP73VbTdUUS+yLpVo6vGY QbV1agOWPu7bxpxF0/8zg0/ENc3+stxbfGvHXp6SawvKQI4jcsmEiBfqRm6JQVGVqkxD ZxkIKvD+QIXiFkAg1ABfWXrNpb6PupjF9iFucDe37ub/LnJxasWSAO48Tv2XQt4V/sDl dRfy/deoIPP5F/7quIF3In60OB1TbEanA36GDuCV7cnKr/h1nE4pJld/9C0eetR+3Kby syug== X-Gm-Message-State: AOJu0Yx8gj9mFLP5xldh2obCYHI14n6Xs17QeugiBVdvUR9HCITqUm20 JiRXR7gDN2fG123fxhTvNxWwvZ/aF8mFpR5cckKutQ7qL6ELhuO/IPUPFGNI5xIdYyecVspRZYX 37dWr+mR5jR09E4OpG6bOe8kfaC7Ip881oUAIyg== X-Received: by 2002:a0d:c286:0:b0:5f7:5054:19da with SMTP id e128-20020a0dc286000000b005f7505419damr2622544ywd.46.1706731775231; Wed, 31 Jan 2024 12:09:35 -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-14-brgl@bgdev.pl> In-Reply-To: <20240130124828.14678-14-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 31 Jan 2024 21:09:24 +0100 Message-ID: Subject: Re: [PATCH 13/22] gpio: sysfs: pass the GPIO device - not chip - to sysfs callbacks 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 > > We're working towards protecting the chip pointer in struct gpio_device > with SRCU. In order to use it in sysfs callbacks we must pass the pointer > to the GPIO device that wraps the chip instead of the address of the > chip itself as the user data. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij Yours, Linus Walleij