Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp460295rdb; Thu, 18 Jan 2024 08:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5VujtHKxRVRSH5vNwjrnqQ2/lj7oRP7ERzdJk0tuLs9aJro06BE+jQwDmFAnvtLBhB1/f X-Received: by 2002:a17:906:9e13:b0:a23:32bd:d166 with SMTP id fp19-20020a1709069e1300b00a2332bdd166mr567037ejc.48.1705595482819; Thu, 18 Jan 2024 08:31:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705595482; cv=pass; d=google.com; s=arc-20160816; b=qoXzrldzXPx3QveMEd17plH2FcALiU2OMH8uYzUv+fy2ZqVgbsVTUBJvO2AYLPVR6Z ahoFdBf6QT3T/NqwTUBoNYc4ZnIeo8AjljJHtS/Meb1GQaIm3X+EZnXt1+rHuYJ7JAcE 8rasgtpKmpdq7fF/d/bPLUhkfTBE8BjHX9DrjzPSdDHx5xzrguFY5Sds0nOaWE62LWEE wpbt4AxR8u4UccE4b6mv3ZwOC5o/lO+EuTV4qHfqiOeDoWhGCFH8Ifd2UIWWg3MR7nV2 LrF0ASNx9gsYnB9TyXFKI+1JGHye3SE19MszfbdGP5UGS8fP0sH1wvqeqe9U49g9m969 U6JQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=5q/z9NBhcvbN4NnTkJ2O74o645DmNo6KC9OmwgIIYJA=; fh=PEWt9zI5h8YhX6O/HRKFnDhMGUMkQT0AbQr801FLong=; b=ndPVeLBQRgb1c/1VO9ZYpoRR2Pqr1EaaEIjAVcupkXd8Yj4snnv+wNiyITSNNKv9tv RbtM4hmlEnqI/9pYp4oZKimgTpIHtZMqms86pAYB3sizMGRJOittsM0QK90UT4UApbL7 aYzYGl22uZK0+M0kQ/6IaSgG4J97URlV7wNjYQXyfLEhvsDuacQ96PYHUjX2EV5LTPye GHFOan3jm22rzci2kFSx4flJjFvVLADLGrVZ2YJQAk2nU5OEcHYoVHXjcQ8aPBtpQtYe vLGmV01v06JriycuciANcTOuto1GzKRx60gDB7XRysxX8qBXI8Yo0XQlWZBrV9rTqirt yPhg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=tjOehITw; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-30119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30119-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l2-20020a170906414200b00a2db48077a3si4194932ejk.350.2024.01.18.08.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=tjOehITw; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-30119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30119-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 04E1E1F21995 for ; Thu, 18 Jan 2024 12:53:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24A3B25106; Thu, 18 Jan 2024 12:53:26 +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="tjOehITw" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 93965250E6 for ; Thu, 18 Jan 2024 12:53:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705582405; cv=none; b=BQTIw02Cpg6tQF2OXvyM7C684qt8brn2G+Cc88JFGTk/ADGrwqaWfosSDC50hajkEygQNjU77R0L7Mq2xAPPdprg560z+LPdwtVBT6d3rT3H5CWHCVtM61mSRXH+XuERWaY3PAd5BM8LMloa4hWqvUZ/Zq2EFhN+K2Z0xM5gabY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705582405; c=relaxed/simple; bh=sXJi9gg0uJsuoxrQNc/wYI76+8EiIEebZjWq19GEBsQ=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version: Content-Transfer-Encoding; b=HN1HUMsdbtKQFfztofQ+nQKWz5UITDmnWQ/Y938QIe5NXb/Pd8OMjwL3xAhOP2KXT79qb+369Ng3DXmhOCKo/NMw5l/WpwGWBfXFmbTrdQ+urTRtEe4Ny7wgKSmdZDlIiStSf6GKLfcfHQ8KdWYd4ygHJoK3xvG2i/CX7aXdxfM= 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=tjOehITw; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-336746c7b6dso10462936f8f.0 for ; Thu, 18 Jan 2024 04:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1705582402; x=1706187202; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5q/z9NBhcvbN4NnTkJ2O74o645DmNo6KC9OmwgIIYJA=; b=tjOehITwkkUMbEOqLY8R8j1lBCVQTXiALlgsQvey7YRL5E5mTxVxnlomTw92nPBsgx tCcwojmIZrKxJttSQQ0ZRExak8bbq/aRKKenFTCXX7Vh3OGQSFBqMi6cFXxovyw7fpHo vU0vgPGisKhZlvmoNHkfXLnj3iwn2Al7ChzJCY3FwMnQzJoshWIIWxa2ESkG5gh11AYT BKKPhRmt7DCeQ8DFS+hIOTbjluDL4cE/yBsrXhlgQ0uQgc6S8vLQPXj+yZfO0Se7mLPq HkTgLMVU/C8iuggxJtJzS4HIp08rT03beYpEUhmozJosQW7IqFwWgXyCcgYUgPndjRPx P5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705582402; x=1706187202; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5q/z9NBhcvbN4NnTkJ2O74o645DmNo6KC9OmwgIIYJA=; b=DYvsRwppydiTu8yrjEwg5qlUVIM5WtPYWwBLfAyVUgAAGd1hlYNTYO4W02RoyaE2Gs vyfA083Me8M1OPGbuKWwpM/oDbnvuTYwsEqWhWP0mTBjX8DgBcJWO+ZQNZvrCFCCT0x+ GRovOZjXU+9zatf1MH2MKQ9m1C8oDHBbpo3CuI1LIrq4ahW/gzNdIkYnN+JK/WCwS6LG prAs3mT9B/qXLQBpjTCXVqo7tGMBaNrXy7QxlbQInXtqQRQpqOc3cEPHuxTiXCzF6Lxd t57LEkX3nauO/ceRh76NN/ImpE1sesZZ8w/iSN2sBukAGbZu9b0q9747KDyH9cSO4dZv YHfQ== X-Gm-Message-State: AOJu0YwQJ+Zlc1qYE9Xw4u8IxLMIS+fsN8Mhg4osXy6nH0AW3iMMPg/k WEIi9lf0hIL6w1j++XeWASWDxN8V+k0AxpwLJRfpO5HoOaj0etOxuUN2SMZidYU= X-Received: by 2002:adf:e541:0:b0:336:8242:3803 with SMTP id z1-20020adfe541000000b0033682423803mr449563wrm.11.1705582401684; Thu, 18 Jan 2024 04:53:21 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:33f:7f63:7b64:4bc1]) by smtp.gmail.com with ESMTPSA id i4-20020a5d5224000000b003374555d88esm4004379wra.56.2024.01.18.04.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 04:53:21 -0800 (PST) From: Bartosz Golaszewski To: Linus Torvalds Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [GIT PULL] gpio: fixes for v6.8-rc1 Date: Thu, 18 Jan 2024 13:53:15 +0100 Message-Id: <20240118125315.16778-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski Linus, Please pull the following set of fixes for the upcoming RC. Apart from some regular driver fixes there's a relatively big revert of the locking changes that were introduced to GPIOLIB in this merge window. This is needed because it turned out that some legacy GPIO interfaces - that need to translate a number from the global GPIO numberspace to the address of the relevant descriptor, thus running a GPIO device lookup and taking the GPIO device list lock - are still used in old code from atomic context resulting in "scheduling while atomic" errors. I'll try to make the read-only part of the list access entirely lockless using SRCU but this will take some time so let's go back to the old global spinlock for now. Please pull, Bartosz Golaszewski The following changes since commit 576db73424305036a6aa9e40daf7109742fbb1df: Merge tag 'gpio-updates-for-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux (2024-01-12 13:35:31 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v6.8-rc1 for you to fetch changes up to efb8235bfdbe661c460f803150b50840a73b5f03: gpiolib: revert the attempt to protect the GPIO device list with an rwsem (2024-01-17 09:52:37 +0100) ---------------------------------------------------------------- gpio fixes for v6.8-rc1 - revert the changes aiming to use a read-write semaphore to protect the list of GPIO devices due to calls to legacy API taking that lock from atomic context in old code - fix inverted logic in DEFINE_FREE() for GPIO device references - check the return value of bgpio_init() in gpio-mlxbf3 - fix node address in the DT bindings example for gpio-xilinx - fix signedness bug in gpio-rtd - fix kernel-doc warnings in gpio-en7523 ---------------------------------------------------------------- Bartosz Golaszewski (1): gpiolib: revert the attempt to protect the GPIO device list with an rwsem Dan Carpenter (1): gpio: rtd: Fix signedness bug in probe Lukas Wunner (1): gpiolib: Fix scope-based gpio_device refcounting Michal Simek (1): dt-bindings: gpio: xilinx: Fix node address in gpio Randy Dunlap (1): gpio: EN7523: fix kernel-doc warnings Su Hui (1): gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe .../devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml | 2 +- drivers/gpio/gpio-en7523.c | 6 +- drivers/gpio/gpio-mlxbf3.c | 2 + drivers/gpio/gpio-rtd.c | 15 ++- drivers/gpio/gpiolib-sysfs.c | 45 +++---- drivers/gpio/gpiolib-sysfs.h | 6 - drivers/gpio/gpiolib.c | 135 +++++++++++---------- drivers/gpio/gpiolib.h | 2 - include/linux/gpio/driver.h | 2 +- 9 files changed, 114 insertions(+), 101 deletions(-)