Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196447/?format=api
{ "id": 2196447, "url": "http://patchwork.ozlabs.org/api/patches/2196447/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260214003402.3851492-1-dlechner@baylibre.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": "<20260214003402.3851492-1-dlechner@baylibre.com>", "list_archive_url": null, "date": "2026-02-14T00:33:55", "name": "[libgpiod] dbus: add -c option to gpiocli-get/set commands", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1be143f002f3c98b8e79917b64638e45eb742db5", "submitter": { "id": 87228, "url": "http://patchwork.ozlabs.org/api/people/87228/?format=api", "name": "David Lechner", "email": "dlechner@baylibre.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260214003402.3851492-1-dlechner@baylibre.com/mbox/", "series": [ { "id": 492148, "url": "http://patchwork.ozlabs.org/api/series/492148/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=492148", "date": "2026-02-14T00:33:55", "name": "[libgpiod] dbus: add -c option to gpiocli-get/set commands", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492148/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196447/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196447/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-31679-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=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256\n header.s=20230601 header.b=brDb8/fb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-31679-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=\"brDb8/fb\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.54", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=baylibre.com" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4fCVQw1PB1z1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 11:34:16 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id A5129303814F\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 00:34:12 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F081626299;\n\tSat, 14 Feb 2026 00:34:11 +0000 (UTC)", "from mail-ot1-f54.google.com (mail-ot1-f54.google.com\n [209.85.210.54])\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 2992433993\n\tfor <linux-gpio@vger.kernel.org>; Sat, 14 Feb 2026 00:34:08 +0000 (UTC)", "by mail-ot1-f54.google.com with SMTP id\n 46e09a7af769-7d4c4b494fcso624433a34.3\n for <linux-gpio@vger.kernel.org>;\n Fri, 13 Feb 2026 16:34:08 -0800 (PST)", "from freyr.tailscale.baylibre.com\n ([2600:8803:e7e4:500:84e0:63c6:648f:4671])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7d4a7720a95sm6857983a34.29.2026.02.13.16.34.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 13 Feb 2026 16:34:07 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771029251; cv=none;\n b=Dfg0MEE2OXyqLB/TDwWV6s3HgRxB8F4D14/KxBXEktvkxJlk25bzQLm6DjInI49cuTr46YPXPGe+N/kcbyrDM7KNzCQ0qaAGBXtRw1yzLAreCqKUl/TyatTQLhmgCaXnSMIa/UvKU2yVs+c9SwOCothIzhModGYU7rm5CprFIkk=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771029251; c=relaxed/simple;\n\tbh=Ec3SbFTfob1e+f2s4dreSgT6PXF7rt3ydMpAhKVxXiI=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=nldOECXZjRa2OLuMuK6/mFEhkDxkeXn5xrqyA2NQzmfUj0LG6B8GKOUDJi/l4ZqZCTL3HQt5BeNAutdrawdn69pejq+VjNb01uYXg4jlfExCjf+yo6RsTK5ZIlpl9fplqU1MJh26du3MkoCvx2PRyQNgBHYYLmAwkVvyncGw+g8=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com;\n spf=pass smtp.mailfrom=baylibre.com;\n dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com\n header.i=@baylibre-com.20230601.gappssmtp.com header.b=brDb8/fb;\n arc=none smtp.client-ip=209.85.210.54", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1771029248;\n x=1771634048; 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=+P51XJ9Fm0IpHOFd6Kod1QEZg9fv2OrgmqrfQ1nsGS4=;\n b=brDb8/fbzbhGNZQ8FXhvM8/JYYvYcbow1AyZoDio3WREChSkOeCnxWGzFU7Yd6/+ku\n +iMgyQuvdendMd7rptb9/jKZ0Q5M4a7PLqPgiGDvTLTEawYooSp1N54/WporHIh7PkNU\n tGfmnDblafyotdERi6SOkfudXRKy/beWevZPA9p6uPKRpKv4QmC/lW1JRFxekKVrPpOU\n o9woTIgrYLFNyVxHrOR5YzYfAT/G0je049i6Tu0GlKHoDnL83NEKuaC6AG+vy+58PcCi\n wj36wrCjcAew6NHBa6eICVZUfbR2hqn3cDRy7xoqiDj8RZiIUUZ2e9pl78skWXsT7Xg0\n TvTw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771029248; x=1771634048;\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=+P51XJ9Fm0IpHOFd6Kod1QEZg9fv2OrgmqrfQ1nsGS4=;\n b=dkZcQlP1fqcALT1nzNc/rPjRJWZGHfKaQgxHgr4DcKDDZtsl+Ta+GpUhrhaNLaZQHx\n DR9l/3L1tVYGtYlVumV1D9BycutoIGLPOXm907i7iusjfVO9vVJC5LQ2fAVU+Ty1KaNJ\n II7gxVAjJKWhZFYjXuTb5wwRvBKApEMVU13w/rrq6wQc2+MuS7Mo6zzINAe2D+d0G1LO\n xm58a0kYLGSTkPhOsashN+m9QXUJhwGrt8DAzhTaFE7rt3etMrWdzbSu4PhdUMo3rREO\n Par6TazvuE6A2hCeOTpvusm4h6cimTrFHIRwHksVmmAwWNczwxk5/kz+WP2o5k785fDR\n 6ndg==", "X-Gm-Message-State": "AOJu0YwpNP4VhfkQ2F3/e5b0I4W0+vjsK9XV+WQ9YWoSjML0RliEfaeY\n\tmCU7qxQXf0gW9/8M6NruyPL5s/erPes/LOS4oS3szrQpSjTAagPgTK3DRQYs538xAS7oS6CfMW1\n\tEw4je", "X-Gm-Gg": "AZuq6aJEd1HXKmAnU4I8PTfEXRra3GI46C+Ut1Rw4gp1z3wt/KcA3xyjV2PnclNShZ6\n\t2LsuKeX3hq4iLzImc81yPXW/xHfSeO8meD3Em+mL5H8xddxwoKs4wiz4LhA6WHb+767F7IzD5kT\n\tUq9JBllzthUe8fdUySpI8VhESblYyjLbR5Rg3Ls9izDbD43zYfxcAWQSoIz0AfRBcPiecfd9lD8\n\tnFT1p6GpY6xMhALmeVLrghqi9anqd+j3f4vZjC3iKUAvq0OLCn33Cm4O5IMwcKbGi6pQbDI7ZmF\n\ttw6hv3nW2n88LDy/SVsv3kY9153T0QkkRPsy/vMNI9GjyPt8WTWI3KDu9FEOoWulwLucZ2lJxt4\n\t55ezvnP8aKBr/FwdP/Ox2gd4WrwI76G/yPjCVFDCN7iXP1Hwg0QulMdHuwwjVHEUdhkj8CmLo9k\n\tX5QJkbYJw9xUEwmrqaXxfNSguEhwiLvBtaoJqGPdtF495EoU5/Qw==", "X-Received": "by 2002:a05:6830:7316:b0:7cf:cb09:b7e8 with SMTP id\n 46e09a7af769-7d4d0c799b7mr575320a34.36.1771029247972;\n Fri, 13 Feb 2026 16:34:07 -0800 (PST)", "From": "David Lechner <dlechner@baylibre.com>", "To": "linux-gpio@vger.kernel.org", "Cc": "David Lechner <dlechner@baylibre.com>", "Subject": "[libgpiod][PATCH] dbus: add -c option to gpiocli-get/set commands", "Date": "Fri, 13 Feb 2026 18:33:55 -0600", "Message-ID": "<20260214003402.3851492-1-dlechner@baylibre.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": "Add the -c/--chip option to gpiocli-get/set to allow users to specify a\nchip and line number instead of a line name. This is useful when a line\ndoes not have a name.\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n dbus/client/get.c | 24 +++++++++++++++++++++---\n dbus/client/set.c | 24 +++++++++++++++++++++---\n 2 files changed, 42 insertions(+), 6 deletions(-)", "diff": "diff --git a/dbus/client/get.c b/dbus/client/get.c\nindex 4ca6f3c..62825a7 100644\n--- a/dbus/client/get.c\n+++ b/dbus/client/get.c\n@@ -23,6 +23,7 @@ int gpiocli_get_main(int argc, char **argv)\n \tg_autoptr(GpiodbusObject) req_obj = NULL;\n \tg_autoptr(GArray) offsets = NULL;\n \tg_autoptr(GArray) values = NULL;\n+\tconst gchar *chip_name = NULL;\n \tg_autoptr(GError) err = NULL;\n \tg_auto(GStrv) lines = NULL;\n \tGpiodbusRequest *request;\n@@ -34,6 +35,16 @@ int gpiocli_get_main(int argc, char **argv)\n \tgint value;\n \n \tconst GOptionEntry opts[] = {\n+\t\t{\n+\t\t\t.long_name\t\t= \"chip\",\n+\t\t\t.short_name\t\t= 'c',\n+\t\t\t.flags\t\t\t= G_OPTION_FLAG_NONE,\n+\t\t\t.arg\t\t\t= G_OPTION_ARG_STRING,\n+\t\t\t.arg_data\t\t= &chip_name,\n+\t\t\t.description\t\t=\n+\"Explicitly specify the chip_name on which to resolve the lines which allows to use raw offsets instead of line names.\",\n+\t\t\t.arg_description\t= \"<chip name>\",\n+\t\t},\n \t\t{\n \t\t\t.long_name\t\t= \"request\",\n \t\t\t.short_name\t\t= 'r',\n@@ -91,9 +102,16 @@ int gpiocli_get_main(int argc, char **argv)\n \t\t\tg_autoptr(GVariant) arg_offsets = NULL;\n \t\t\tg_autoptr(GVariant) arg_values = NULL;\n \n-\t\t\tret = get_line_obj_by_name(lines[i], &line_obj, NULL);\n-\t\t\tif (!ret)\n-\t\t\t\tdie(\"Line not found: %s\\n\", lines[i]);\n+\t\t\tif (chip_name) {\n+\t\t\t\tchip_obj = get_chip_obj(chip_name);\n+\t\t\t\tline_obj = get_line_obj_by_name_for_chip(chip_obj, lines[i]);\n+\t\t\t\tif (!line_obj)\n+\t\t\t\t\tdie(\"Line '%s' not found on chip '%s'\", lines[i], chip_name);\n+\t\t\t} else {\n+\t\t\t\tret = get_line_obj_by_name(lines[i], &line_obj, NULL);\n+\t\t\t\tif (!ret)\n+\t\t\t\t\tdie(\"Line not found: %s\\n\", lines[i]);\n+\t\t\t}\n \n \t\t\tline = gpiodbus_object_peek_line(line_obj);\n \t\t\treq_path = gpiodbus_line_get_request_path(line);\ndiff --git a/dbus/client/set.c b/dbus/client/set.c\nindex 6460dd5..44bed94 100644\n--- a/dbus/client/set.c\n+++ b/dbus/client/set.c\n@@ -26,6 +26,7 @@ int gpiocli_set_main(int argc, char **argv)\n \tg_autoptr(GpiodbusObject) req_obj = NULL;\n \tg_autoptr(GPtrArray) line_names = NULL;\n \tg_autoptr(GArray) values = NULL;\n+\tconst gchar *chip_name = NULL;\n \tg_autoptr(GError) err = NULL;\n \tg_auto(GStrv) lines = NULL;\n \tGpiodbusRequest *request;\n@@ -38,6 +39,16 @@ int gpiocli_set_main(int argc, char **argv)\n \tgint val;\n \n \tconst GOptionEntry opts[] = {\n+\t\t{\n+\t\t\t.long_name\t\t= \"chip\",\n+\t\t\t.short_name\t\t= 'c',\n+\t\t\t.flags\t\t\t= G_OPTION_FLAG_NONE,\n+\t\t\t.arg\t\t\t= G_OPTION_ARG_STRING,\n+\t\t\t.arg_data\t\t= &chip_name,\n+\t\t\t.description\t\t=\n+\"Explicitly specify the chip_name on which to resolve the lines which allows to use raw offsets instead of line names.\",\n+\t\t\t.arg_description\t= \"<chip name>\",\n+\t\t},\n \t\t{\n \t\t\t.long_name\t\t= \"request\",\n \t\t\t.short_name\t\t= 'r',\n@@ -133,9 +144,16 @@ int gpiocli_set_main(int argc, char **argv)\n \n \t\tline_name = g_ptr_array_index(line_names, i);\n \n-\t\tret = get_line_obj_by_name(line_name->str, &line_obj, NULL);\n-\t\tif (!ret)\n-\t\t\tdie(\"Line not found: %s\\n\", line_name->str);\n+\t\tif (chip_name) {\n+\t\t\tchip_obj = get_chip_obj(chip_name);\n+\t\t\tline_obj = get_line_obj_by_name_for_chip(chip_obj, line_name->str);\n+\t\t\tif (!line_obj)\n+\t\t\t\tdie(\"Line '%s' not found on chip '%s'\", line_name->str, chip_name);\n+\t\t} else {\n+\t\t\tret = get_line_obj_by_name(line_name->str, &line_obj, NULL);\n+\t\t\tif (!ret)\n+\t\t\t\tdie(\"Line not found: %s\\n\", line_name->str);\n+\t\t}\n \n \t\tline = gpiodbus_object_peek_line(line_obj);\n \t\treq_path = gpiodbus_line_get_request_path(line);\n", "prefixes": [ "libgpiod" ] }