Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229986/?format=api
{ "id": 2229986, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229986/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429035134.1023330-3-happycpu@gmail.com/", "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": "<20260429035134.1023330-3-happycpu@gmail.com>", "date": "2026-04-29T03:51:34", "name": "[v2,2/2] gpio: 74x164: support lines-initial-states for boot-time output state", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "280c34ce76260338d38d6d8dd5509d037d1f8226", "submitter": { "id": 93205, "url": "http://patchwork.ozlabs.org/api/1.1/people/93205/?format=api", "name": "정찬홍", "email": "happycpu@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429035134.1023330-3-happycpu@gmail.com/mbox/", "series": [ { "id": 501981, "url": "http://patchwork.ozlabs.org/api/1.1/series/501981/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=501981", "date": "2026-04-29T03:51:34", "name": null, "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501981/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229986/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229986/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-gpio+bounces-35746-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=Mkcd4255;\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-35746-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=\"Mkcd4255\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.179", "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g53Pf2ClSz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 13:56:06 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 58F3B3086186\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 03:51:57 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1315B3112BC;\n\tWed, 29 Apr 2026 03:51:46 +0000 (UTC)", "from mail-pf1-f179.google.com (mail-pf1-f179.google.com\n [209.85.210.179])\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 0A727388E6B\n\tfor <linux-gpio@vger.kernel.org>; Wed, 29 Apr 2026 03:51:42 +0000 (UTC)", "by mail-pf1-f179.google.com with SMTP id\n d2e1a72fcca58-82cf636dac8so5209102b3a.3\n for <linux-gpio@vger.kernel.org>;\n Tue, 28 Apr 2026 20:51:42 -0700 (PDT)", "from happycpu-p1.. ([121.160.151.7])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-834ed5f30ddsm502899b3a.26.2026.04.28.20.51.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 20:51:42 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777434705; cv=none;\n b=F1tViJouSxpREp/WckTGx0Mp5SchC7T2MCIucg9ePjPZFEZ733ixOl2Bw0Xd4Opr1/XaC+50atvyjXwU4FEjo3A4sY6wsYH6Vg0aQRGa4CGw67Qx1nGNzfa4n1bgLaQWErsxinhtgZwGeAC4XuTwEl/4ogXAvW0W74ozz+UO5RE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777434705; c=relaxed/simple;\n\tbh=8ZTEWpljO0UJ4t5lvQukdUtvqSV7WB3UYomQlWmFqCw=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=CESX+3JmlpBh7JfS1ra2zu4ppNldrWvLhRoy6YDeBdgQttnMRkRUXbx1oRC3UubgQFX7PusOzBUzDqfl/ffdR6NmzmkUV0vZOWfMglmkq1gu8Up0AaeCD8nOmOOXVjvlim3VgwMHoqTI1lvdMo/JfPJxZezErfSWzyh9hK7OW0o=", "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=Mkcd4255; arc=none smtp.client-ip=209.85.210.179", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777434702; x=1778039502;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=DJRe07kUVUgqjg/ti8//IJVD4xo2eVRTabM2wx2IjhE=;\n b=Mkcd4255Nezp7I6VHDgWlkeZndr7xVbo42+7xJyvUcjyQ9FTXuCQUEmRsq5ZBBhR3+\n Tx1+QesUqmYnhfKigrzINV3559Igkt7vsZiTAaQeOlzDTnbFtM0FK8qw0yI8+A8dt6BK\n YhWyRBFRGoLXLFfGJh4wGYWb3pRou+rCjKpVDtZuny6LyjXP57qocYNoSAaAvdBfcdeD\n AjfRGMtgR9Cpqnh9CXx4EMCkY7j4q3kRcyuvrXjzrSsFFnFUHyS0mRKSyM+cmZfDaBsa\n usHYHENHKptKNSDKAFstWdTkkUOck/yF+avm8oSFE43u9QxA0VjcE21dNweYJXpDWsTs\n XmIQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777434702; x=1778039502;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=DJRe07kUVUgqjg/ti8//IJVD4xo2eVRTabM2wx2IjhE=;\n b=XV21qmGFHzHC980Sd4NMDZOutLArrMHLYAI9QmKN8tdKV9EjxoKkjqRDAkW8nztB2v\n u9SSMvgSVw2CErNW8DvWx/FgqS5nR9IzAavVkR+fKWRKCb7TeeL4Hmt3zeubDhgGluv7\n 2qW3rdHXwAo6YVFrwPrM54/LbI8d85EX6i0mbPc+0zmpjRWltmCrih6GJmhF9e57O51o\n zbII/OBsdJe9ntDS2CKgutsh3PuoaaD8JFHNxJ6fN/b4MJ/uQ+w27DdS2RgxdEH94kbg\n m8su6AbWwE51oyC2t80aaRuuZKPPD19L12aH2t+Qq1Ngj59JvAs2CAosjvMBNYXoRLQ9\n NFpA==", "X-Gm-Message-State": "AOJu0Ywg5bYVmJr/ImNEgSk+kA0ocI60oqPmLpjzgAuVIUJNwkwXnoyy\n\tlnI6w6nYJzHQw1LwvE+y2ccLLsYaSWPnfWDeFluVmoNRxRkeP7DLXv0F", "X-Gm-Gg": "AeBDiesf9bQ2sKb0Axj5QrPqTp1Ol6GIRQnALHGKANgiRgSjEaLTiLIxfH8C4M6Z3KB\n\t285Rs06tOzc/a+bFGtpKd9qA4UnrU2dArJKfRqXHrMfH5DOuyWMMX6LmJWMy2MtZoZOLEb35gw9\n\t8MGjilufPkgbmAu2M7z5P8ydvPDG4sMb/egJBigAjrG++E+4djWI3ulz9OspTbyqp8yd1kkXE2N\n\tURM3qnCbfg04F6ZCxKb9smMMkKDYLe2BjDdjYY7f1OwcK86e/691/CkjBZ4jGAAf+hLybJZ6squ\n\tIDzQBHeXFOS0GF54qVRJ7K/wP9NefHUCrqthWFpozutCAnOSPz5cFZsMkZt0E1545dUHD9zqnNA\n\tMDSX7EwBXvf00x+4qDzDuHLkRhzjMg/fJt3FELVKC53IUPzwcyUF+fS+ipKtgFyfCMgyL6gapnA\n\tWTF419yr1yuZ55tHtjSNp6wfHDCM38HeBFTAtKPKWvhF31zBAMsE0MV+f8AjPY3wPi", "X-Received": "by 2002:a05:6a00:3486:b0:82f:72e6:ed4 with SMTP id\n d2e1a72fcca58-834dd91736fmr6337129b3a.0.1777434702416;\n Tue, 28 Apr 2026 20:51:42 -0700 (PDT)", "From": "Chanhong Jung <happycpu@gmail.com>", "To": "Linus Walleij <linusw@kernel.org>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tMaxime Ripard <mripard@kernel.org>", "Cc": "linux-gpio@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH v2 2/2] gpio: 74x164: support lines-initial-states for\n boot-time output state", "Date": "Wed, 29 Apr 2026 12:51:34 +0900", "Message-Id": "<20260429035134.1023330-3-happycpu@gmail.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<cover.1776872453.git.happycpu@gmail.com>", "References": "<cover.1776872453.git.happycpu@gmail.com>", "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": "74HC595 and 74LVC594 chains retain their output state from the first\nserial write onwards. Today the driver always kicks that first write\nfrom a zero-initialised buffer, so every output comes up low until user\nspace issues a write. Boards that rely on the chain to drive signals\nwhose power-on state matters (active-low indicators, reset lines, etc.)\nhave no way to express the desired initial pattern via DT.\n\nRead the optional lines-initial-states bitmask, recently documented for\nthis binding, into chip->buffer before the first\n__gen_74x164_write_config() so the chain comes up in a known state on\nthe very first SPI transaction. Bit N maps to GPIO line N (matching the\nnxp,pcf8575 convention); on this output-only device, bit=0 drives the\nline low and bit=1 drives it high. Property absence keeps the existing\nzeroing behaviour intact.\n\nSuggested-by: Linus Walleij <linus.walleij@linaro.org>\nSigned-off-by: Chanhong Jung <happycpu@gmail.com>\n---\n drivers/gpio/gpio-74x164.c | 17 ++++++++++++++++-\n 1 file changed, 16 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c\nindex c226524ef..5ca61cf52 100644\n--- a/drivers/gpio/gpio-74x164.c\n+++ b/drivers/gpio/gpio-74x164.c\n@@ -112,7 +112,7 @@ static int gen_74x164_probe(struct spi_device *spi)\n {\n \tstruct device *dev = &spi->dev;\n \tstruct gen_74x164_chip *chip;\n-\tu32 nregs;\n+\tu32 nregs, init_state;\n \tint ret;\n \n \t/*\n@@ -134,6 +134,21 @@ static int gen_74x164_probe(struct spi_device *spi)\n \n \tchip->registers = nregs;\n \n+\t/*\n+\t * Optionally seed the chain with a board-specified pattern so the\n+\t * outputs come up in a known state on the first SPI write. The\n+\t * property follows the nxp,pcf8575 convention where bit N maps to\n+\t * GPIO line N. On this output-only device, bit=0 drives the line\n+\t * low and bit=1 drives it high. The bitmask covers up to 32 lines;\n+\t * any further outputs come up zeroed by devm_kzalloc().\n+\t */\n+\tif (!device_property_read_u32(dev, \"lines-initial-states\", &init_state)) {\n+\t\tunsigned int i;\n+\n+\t\tfor (i = 0; i < min(nregs, 4U); i++)\n+\t\t\tchip->buffer[nregs - 1 - i] = (init_state >> (i * 8)) & 0xff;\n+\t}\n+\n \tchip->gpiod_oe = devm_gpiod_get_optional(dev, \"enable\", GPIOD_OUT_LOW);\n \tif (IS_ERR(chip->gpiod_oe))\n \t\treturn PTR_ERR(chip->gpiod_oe);\n", "prefixes": [ "v2", "2/2" ] }