Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2221468/?format=api
{ "id": 2221468, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2221468/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260409132724.126258-1-linux@fw-web.de/", "project": { "id": 42, "url": "http://patchwork.ozlabs.org/api/1.1/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": "" }, "msgid": "<20260409132724.126258-1-linux@fw-web.de>", "date": "2026-04-09T13:27:23", "name": "[v1] gpiolib: fix trace on missing gpiochip->get_direction callback", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c8bd8dc33ed33604f170e5df2ea113cc48a7367c", "submitter": { "id": 79793, "url": "http://patchwork.ozlabs.org/api/1.1/people/79793/?format=api", "name": "Frank Wunderlich", "email": "linux@fw-web.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260409132724.126258-1-linux@fw-web.de/mbox/", "series": [ { "id": 499300, "url": "http://patchwork.ozlabs.org/api/1.1/series/499300/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=499300", "date": "2026-04-09T13:27:23", "name": "[v1] gpiolib: fix trace on missing gpiochip->get_direction callback", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499300/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221468/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221468/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-gpio+bounces-34951-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 (1024-bit key;\n unprotected) header.d=mailerdienst.de header.i=@mailerdienst.de\n header.a=rsa-sha256 header.s=routing header.b=fGiKEsYI;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34951-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de\n header.b=\"fGiKEsYI\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=134.0.28.8", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=fw-web.de", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=fw-web.de" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4fs12N4Knwz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:27:40 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 9F737300845D\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 13:27:37 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3431327B32C;\n\tThu, 9 Apr 2026 13:27:36 +0000 (UTC)", "from mxout3.routing.net (mxout3.routing.net [134.0.28.8])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id A698F40DFA4;\n\tThu, 9 Apr 2026 13:27:34 +0000 (UTC)", "from mxbulk.masterlogin.de (unknown [192.168.10.85])\n\tby mxout3.routing.net (Postfix) with ESMTP id 34589607C1;\n\tThu, 9 Apr 2026 13:27:33 +0000 (UTC)", "from frank-u24.. (fttx-pool-217.61.155.21.bambit.de [217.61.155.21])\n\tby mxbulk.masterlogin.de (Postfix) with ESMTPSA id 117E71226C0;\n\tThu, 9 Apr 2026 13:27:33 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775741256; cv=none;\n b=QUQE0P7TsWRIb8MnE0SwLNM5d2Oj0QLLEZztuSdicU5jmZA+dR/SIjNgSbIIEDLh39uKUIzo4gW24JdksDBLzQ9NFgOZBgFJi3cQuvw5PKlY96ZAbFNypyoQlMoGCqdxWZH/8zy6P0I1EAmuGB/h0lS4rSnL3i71oOw3TicVnuc=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775741256; c=relaxed/simple;\n\tbh=QVGgy9FCZdktz5EZIp48pU14WW2kGSyI9jNxNO3iheo=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=blS0S2xN3MuyUSUNire2qxdfED2rBCLXNe9AuKz2qev+x7xuZXUPGt4+Li3hOh10eFxfkIEKITAqQ3dtBajEleAtL28Ogzt29QdDV3eUWfMIAPBmWW9MGSHd9z7shLeutvn2QNcicn49pI0/Qvz02cYVDZXVcnDHNFKk9MchkiI=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=fw-web.de;\n spf=pass smtp.mailfrom=fw-web.de;\n dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de\n header.b=fGiKEsYI; arc=none smtp.client-ip=134.0.28.8", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de;\n\ts=routing; t=1775741253;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=f1Sc1Zx4mgmF8p47InuqbAp8dKDMOOHe+MdMcqY/fZk=;\n\tb=fGiKEsYIY7iS1f1r8LLt+RsiqVz0/3uTX38vU0Ylql6mfxpHwm6xVLfrAf74JpBrE/JgRg\n\tb3PRMu6u1HjJORmQyZ4a2S7k1KfVpuYSNbqvKGOSfd2pY3BDcvkx87Mbo8bd8Z82J0/Y50\n\tdd+otpo4WHYIcL/eAVomo7Ze4OMmNME=", "From": "Frank Wunderlich <linux@fw-web.de>", "To": "Linus Walleij <linusw@kernel.org>,\n\tBartosz Golaszewski <brgl@kernel.org>", "Cc": "Frank Wunderlich <frank-w@public-files.de>,\n\tlinux-gpio@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tDaniel Golle <daniel@makrotopia.org>", "Subject": "[PATCH v1] gpiolib: fix trace on missing gpiochip->get_direction\n callback", "Date": "Thu, 9 Apr 2026 15:27:23 +0200", "Message-ID": "<20260409132724.126258-1-linux@fw-web.de>", "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": "From: Frank Wunderlich <frank-w@public-files.de>\n\nif gpio_chip.get_direction callback is not implemented (e.g. pinctrl-moore) there\nis a bunch of traces because of this.\n\nJust remove the WARN_ON to avoid traces and restore previous behaviour but keep the\nsanitization active.\n\nFixes: 471e998c0e31 (\"gpiolib: remove redundant callback check\")\nFixes: e623c4303ed1 (\"gpiolib: sanitize the return value of gpio_chip::get_direction()\")\nSigned-off-by: Frank Wunderlich <frank-w@public-files.de>\n---\n drivers/gpio/gpiolib.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c\nindex 86a171e96b0e..302cbd7989f3 100644\n--- a/drivers/gpio/gpiolib.c\n+++ b/drivers/gpio/gpiolib.c\n@@ -420,7 +420,7 @@ static int gpiochip_get_direction(struct gpio_chip *gc, unsigned int offset)\n \n \tlockdep_assert_held(&gc->gpiodev->srcu);\n \n-\tif (WARN_ON(!gc->get_direction))\n+\tif (!gc->get_direction)\n \t\treturn -EOPNOTSUPP;\n \n \tret = gc->get_direction(gc, offset);\n", "prefixes": [ "v1" ] }