Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2219405/?format=api
{ "id": 2219405, "url": "http://patchwork.ozlabs.org/api/patches/2219405/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260402230321.6579-1-vfazio@gmail.com/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api", "name": "Linux GPIO development", "link_name": "linux-gpio", "list_id": "linux-gpio.vger.kernel.org", "list_email": "linux-gpio@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260402230321.6579-1-vfazio@gmail.com>", "list_archive_url": null, "date": "2026-04-02T23:03:21", "name": "[libgpiod] bindings: python: allow releasing LineRequest multiple times", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1918e301b6b66c75eceedbfdb33e46fd5154d9d2", "submitter": { "id": 78694, "url": "http://patchwork.ozlabs.org/api/people/78694/?format=api", "name": "Vincent Fazio", "email": "vfazio@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260402230321.6579-1-vfazio@gmail.com/mbox/", "series": [ { "id": 498560, "url": "http://patchwork.ozlabs.org/api/series/498560/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=498560", "date": "2026-04-02T23:03:21", "name": "[libgpiod] bindings: python: allow releasing LineRequest multiple times", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498560/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2219405/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219405/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-34622-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-gpio@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=I+1qBQTP;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34622-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"I+1qBQTP\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.49", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmy836Rtmz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 10:03:31 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 897263033279\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 2 Apr 2026 23:03:29 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 41E2331AAB8;\n\tThu, 2 Apr 2026 23:03:27 +0000 (UTC)", "from mail-ot1-f49.google.com (mail-ot1-f49.google.com\n [209.85.210.49])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id CA1D81A6825\n\tfor <linux-gpio@vger.kernel.org>; Thu, 2 Apr 2026 23:03:25 +0000 (UTC)", "by mail-ot1-f49.google.com with SMTP id\n 46e09a7af769-7d7e9b97a73so1577374a34.0\n for <linux-gpio@vger.kernel.org>;\n Thu, 02 Apr 2026 16:03:25 -0700 (PDT)", "from Zephyrus.localdomain ([131.93.209.211])\n by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-422eaed47easm3559910fac.4.2026.04.02.16.03.23\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 02 Apr 2026 16:03:23 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775171007; cv=none;\n b=en+l7R1tatrG25qderP4SyL0v8WbM0fzGJ5ajcrBxKi4896h5hMssr85ydVL7IzcQQ9/z3R61YnSknjQl0qO9ske4zuO273+7N9G3O+YBlm9WphGPDE4t/nwb8DYQuhoelrHXwqENrrVvMKVySY4pKNpGX3D/aAibfq3TxKR+xs=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775171007; c=relaxed/simple;\n\tbh=4YZC+ZhUY1w4CHuLM14NQiOb8XVy+NqmRkTcKjVHliw=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=ghqJMvTnWTKet/j4VOdjlmVtmzw7nrg9O3V03+aG1BlXzpHiXj2zSb45nWJ+VKCK6kbMi/eUx9eGjta8HkhkaXY1CGv82Dyw/JiBwCTkRI7bL0GmXbkGshjDdViqDUw2PAVyGooDtvohBOVjVmTi9JhMUTUoswZ2cG2SLpYxetE=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=I+1qBQTP; arc=none smtp.client-ip=209.85.210.49", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775171004; x=1775775804;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=zF4qWgvIJqyrtB/QUzZ1hx7/GrHawUzBem7h+zGp1pY=;\n b=I+1qBQTP1lhJGnW1jh4Nnxm891pTwLHey5cPnIdBeiC8yEaNw0G/H5DL2a69E+fvla\n Sec38/yealA0a2/7d1xyM56F6da19ed28Juxdu791qTt1RlYc1DTejaAzYhHqhA9WcFk\n kOwKk1kS3hTA0OC8GuUhL914b3bOqIkWDwqaleaDdlYCsarI9sM7qW7jtbLZYVOgyWJU\n JGI3/PHCoXg5plrpdmjXdosOgAMVjU+nlMIqcmzF7fewdVShT4EYaBL9XA1SSrGyWfsD\n iyBMN8DEcf2GgSsmsjLnIqSjPfxxqF8WH09JOqexRfnyv8NIbHYqma884efQeFjWhpQl\n Sudw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775171004; x=1775775804;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zF4qWgvIJqyrtB/QUzZ1hx7/GrHawUzBem7h+zGp1pY=;\n b=Zg1zjon2cba+6jsKxvdDlpZbA0ePUELsG8QF2Sw8swiSqVNuflOJWnXI2a7v81ahFs\n 0uRja6bcFyIsz78yuB1/i2JGtdfmLeWWLKdQD1/Yzr1t+Xf1nE5bdFMy458MbEdUHeEi\n +kVmvmwSxfSFd/noe992AWUpx3xupM/Rz33bxdGQSniVYx74dHMuZfJxfx/yS7ZHwR9y\n mvzOZFLhT7KcPqPkzeyEpaqYcT+0G+5/I2oyfUu2eZF+c3rGkqz5nN+SFWrNH1N+dUgK\n 7BhmdNUZ/IKz3b149rQjoi0j2FMu9xEOx6VUa9Dkgcdn5YzKqt/xcnc2Xe9AMHgkWkO0\n ZLDA==", "X-Gm-Message-State": "AOJu0Yyzyeqha8EBuDPGhXRga9LID5VcMzoDbd/jjVFI4CxaJ9Jis653\n\tAdRayEgIEVcv11r/NFKndDdkWVP1TZs5KBMmc5ThmmXpTNPeoNLTF0uUdaLLtw==", "X-Gm-Gg": "ATEYQzzUHczzkBRecalhD5Nd/+rCfYb3KnXmQBaLd0AbO3BLcBbeBmKHEU9P1mi/idc\n\tCp92uCFygNGdvZXLJkaFM/A+LFmfM3ajsjxMDcnqbBfr8uhEs7YknK+2o2ASHj3fsUYHck+5CKn\n\ttBSjQWf6ZwUnJjNT1hbaqzsCv/7c5dmLqtky+rwvuHqFWk9D2iqUHjE+t5afhnVepw3TtO5y5e+\n\tsMKBBhacKk1vaTJqst6t3/LDQWB3RYlKI1OJRQ4+bXerBpJutzcMO3d8f8O3DoaxOhZCv9dbW69\n\trTzBLADewwA4NbYfBtTyAtFiHEN2UlwfX8hsqD2JUOYvfy9MZFJxjV2dksGScDkYK4unbLAqMW+\n\tg8U0UXy6KomH7j5EwDF9KlrJDS/9fW23j/jjXzFyUn1Kdg4Ab1ONsueRwwJhDrUG4rBdr7xwqyv\n\t++e2ohb+5/STWCONgE8BQ0JYA5YzED+wLk4HcwH+9SZehM73jXRr/uXEiwEF0lBQ==", "X-Received": "by 2002:a05:6820:5389:b0:67e:963:d733 with SMTP id\n 006d021491bc7-680fa7d2151mr1414220eaf.35.1775171004383;\n Thu, 02 Apr 2026 16:03:24 -0700 (PDT)", "From": "Vincent Fazio <vfazio@gmail.com>", "To": "linux-gpio@vger.kernel.org", "Cc": "Vincent Fazio <vfazio@gmail.com>", "Subject": "[libgpiod][PATCH] bindings: python: allow releasing LineRequest\n multiple times", "Date": "Thu, 2 Apr 2026 18:03:21 -0500", "Message-ID": "<20260402230321.6579-1-vfazio@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "Precedence": "bulk", "X-Mailing-List": "linux-gpio@vger.kernel.org", "List-Id": "<linux-gpio.vger.kernel.org>", "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Allow releasing a LineRequest mulitple times without throwing a\nRequestReleasedError to adhere to common Python semantics.\n\nSigned-off-by: Vincent Fazio <vfazio@gmail.com>\n---\n bindings/python/gpiod/line_request.py | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/bindings/python/gpiod/line_request.py b/bindings/python/gpiod/line_request.py\nindex 0287791..a271080 100644\n--- a/bindings/python/gpiod/line_request.py\n+++ b/bindings/python/gpiod/line_request.py\n@@ -75,9 +75,9 @@ class LineRequest:\n Release this request and free all associated resources. The object must\n not be used after a call to this method.\n \"\"\"\n- self._check_released()\n- cast(\"_ext.Request\", self._req).release()\n- self._req = None\n+ if self._req is not None:\n+ self._req.release()\n+ self._req = None\n \n def get_value(self, line: int | str) -> Value:\n \"\"\"\n", "prefixes": [ "libgpiod" ] }