get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2231593/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2231593,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231593/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260430214202.58405-1-rosenp@gmail.com/",
    "project": {
        "id": 21,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/21/?format=api",
        "name": "Linux Tegra Development",
        "link_name": "linux-tegra",
        "list_id": "linux-tegra.vger.kernel.org",
        "list_email": "linux-tegra@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260430214202.58405-1-rosenp@gmail.com>",
    "date": "2026-04-30T21:42:02",
    "name": "ASoC: tegra: ADMAIF: allocate with a single kzalloc",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9bb2a80841e40ac7ad47a05fa4551de3100ff3e8",
    "submitter": {
        "id": 70304,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/70304/?format=api",
        "name": "Rosen Penev",
        "email": "rosenp@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260430214202.58405-1-rosenp@gmail.com/mbox/",
    "series": [
        {
            "id": 502395,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502395/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=502395",
            "date": "2026-04-30T21:42:02",
            "name": "ASoC: tegra: ADMAIF: allocate with a single kzalloc",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502395/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231593/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231593/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-tegra+bounces-14117-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-tegra@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=hcLk+M3z;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-tegra+bounces-14117-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=\"hcLk+M3z\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.222.177",
            "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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g673H2vWWz1y1d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 07:43:55 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 7598930022CA\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 21:42:24 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id BB7D13B19BF;\n\tThu, 30 Apr 2026 21:42:23 +0000 (UTC)",
            "from mail-qk1-f177.google.com (mail-qk1-f177.google.com\n [209.85.222.177])\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 4372A3A3830\n\tfor <linux-tegra@vger.kernel.org>; Thu, 30 Apr 2026 21:42:22 +0000 (UTC)",
            "by mail-qk1-f177.google.com with SMTP id\n af79cd13be357-8ec37d52c0dso144429085a.0\n        for <linux-tegra@vger.kernel.org>;\n Thu, 30 Apr 2026 14:42:22 -0700 (PDT)",
            "from ryzen ([2601:644:8000:5b5d:7285:c2ff:fe45:8a32])\n        by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8fbf420e984sm24378185a.47.2026.04.30.14.42.19\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 30 Apr 2026 14:42:20 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777585343; cv=none;\n b=ISU0mEv3Ddibv12aq63I9IxEfGAciydWcIg1YCRub4+GnP90lTjhI68UtVpnXTmrQ+t22Sz8y86hoOBIvaaisIDMbUG9/CNWt1JwI3Y7yvWvAMgbdGRnqyRbDyKmVZATqAzbZ784y4cy1RHE+XXtIjMbfLkC9bgcy1mM0SAuNzk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777585343; c=relaxed/simple;\n\tbh=VjuwkmWTRytJbDUFZ8FgrsM6SQXVC7FBHKMz8U+rjwY=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=j/tYdV8F6sw//UgJtfD+d3kR9fZbOKrsMt7+RZhtTAcilG09ss4wPFbX2pJXXhvKSVwmpzAvFwn44R3j+8R7ZL1ndWxeMKYSPYD3h2s4zWVY/+hoVGgwBee7ulv3JSwW2SDIg20TTuwkLkjbuMoFO5nV/CDPhZ/sjOv4YopVFV8=",
        "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=hcLk+M3z; arc=none smtp.client-ip=209.85.222.177",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777585341; x=1778190141;\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=QaqCe9pe6XmQZeTZUwBv7+3qnfbWH0HbjUSW3TsEOPw=;\n        b=hcLk+M3z6dh8f24GUb69wfl3EBooN+OmRdyXXGIhx5mtAzftaFB0NuasmwChOZY5yM\n         cgWZbxgj8dF3V5cXJlLE1qRo+vlOBugijysdU1gI5XArjyYhiFfTIux6y8L9SX4Zen4+\n         LtDMCoKT6tKiiNb9WwOLp6vcVFm7mGyg/ofTcF3MQbSGfdZ9y7UL6vGNQsUiOsvEoCkH\n         1izALh+fgrhST8GJ50yRCBcdwiUnuoybYclXpAMUTA+7zf0QlU1s6f8oom4DubeHLdmd\n         FgaN2WLcPJdNDsC7+zBXAwNh8tSVfC8T8lvvAnpvYGXX/QnzPvghp97c3uB7rdFMnLSQ\n         5wLg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777585341; x=1778190141;\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=QaqCe9pe6XmQZeTZUwBv7+3qnfbWH0HbjUSW3TsEOPw=;\n        b=cPiL4L7BYmW3Pi/7iaEv7FuuXrh4pKL+5CyVnH82FD6KCeQRmRaBE9ffLVvtrTBXDp\n         y/Z5GgaDrR44WAgCx99JE0eHBuQMbtBCIxL3MvpXOZYovyEbwJqJKpyDE2zOYntACNj0\n         1ws+PW1vnFY2SgXiS9LGwQ9Puto/g858y007whxFHpDbk302ixG0OyDQiYdD88LQ2npc\n         XJ80mSuBSBhqcj3uDGdPdz2Kcp936flQJP0nDIbLCnDqHoWVKByEYC26pjsMLNfnE8wJ\n         /OUi2DO50FiNuMaYcPJ4ot2+mTiirfirYlxqesLQqbx5IBfjiw0i9sWZV/ztEd3LfeJE\n         k8eQ==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ/CCu3a8nDuaPPZdDIQyh4dwKQ85cDhL5vYtQWesvt+TUt+A062+rTXQNeUaPFp40Rl1unIS5VyTzUOnQ==@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0Yz+3Q52p1DbNImR+V+CLpGLvm9tQEKMwWuyu7ihhvrElz/BT0s3\n\tN0g4is9BpbBRrzg080HzZmhtoMpD3DekMVwCcG2fpvZwr79jDyGKZ6MM",
        "X-Gm-Gg": "AeBDieuuPDbruL1NTYqYlPcb4ZvuEA/byrsxLHtRvE30enafGCdEiOdHPkycgLLPa4w\n\t7tA+xzaoqd9lVY41zKludsleVqKMAep44SjpunxyJgD95BEv1ryoblqV/MUnvBarB1u6E29flsT\n\tx/foUic8Vwzd0/LOkboePKTBj3/UpfMpTb9zktaysPFjt53zmrUzPLDYPd4c6eDK8jt06OZ2Moa\n\t1oxfvVbddf7uXKET5sS3VhKYSYSijGIRH/yh0wGp3hk1yLrWgmV4/NoGxdCFjhEzreJxn8EI+Iv\n\tjBVt1LKLlsVCBIPLxERrPpoZYsfx6tZDJR/xj9RYdiVKUcX5lIDUY5sI0RAer29d8dlhk7V/dxa\n\txVFaHGhsvzdvP8R5XlORxPtloIX5411Mft3PASNqNyiz4GTEdR1nE385WXNTZthIScG7ZoEWpay\n\tMbJoPAXFpclSgN2rmKQxHuuMqZF5LKtkSj4tI3yhoZL9r66Z341qIrX34y78zIi8isV//3GkF1X\n\tad2QPOss3myKbLZF2kZk/vkPgrSE+xo58POxAngfmfo5w==",
        "X-Received": "by 2002:a05:620a:46aa:b0:8eb:92a5:5c6c with SMTP id\n af79cd13be357-8fa8884277cmr779003485a.33.1777585341293;\n        Thu, 30 Apr 2026 14:42:21 -0700 (PDT)",
        "From": "Rosen Penev <rosenp@gmail.com>",
        "To": "linux-sound@vger.kernel.org",
        "Cc": "Liam Girdwood <lgirdwood@gmail.com>,\n\tMark Brown <broonie@kernel.org>,\n\tJaroslav Kysela <perex@perex.cz>,\n\tTakashi Iwai <tiwai@suse.com>,\n\tThierry Reding <thierry.reding@kernel.org>,\n\tJonathan Hunter <jonathanh@nvidia.com>,\n\tlinux-tegra@vger.kernel.org (open list:TEGRA ARCHITECTURE SUPPORT),\n\tlinux-kernel@vger.kernel.org (open list)",
        "Subject": "[PATCH] ASoC: tegra: ADMAIF: allocate with a single kzalloc",
        "Date": "Thu, 30 Apr 2026 14:42:02 -0700",
        "Message-ID": "<20260430214202.58405-1-rosenp@gmail.com>",
        "X-Mailer": "git-send-email 2.54.0",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-tegra@vger.kernel.org",
        "List-Id": "<linux-tegra.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-tegra+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-tegra+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Signed-off-by: Rosen Penev <rosenp@gmail.com>\n---\nConsolidate the allocations for capture_dma_data and playback_dma_data\ninto a single kzalloc by using a flexible array member at the end of\nthe tegra_admaif struct. This reduces the number of allocations from\nthree to one, simplifies error handling, and improves memory locality.\n\nsound/soc/tegra/tegra210_admaif.c | 28 ++++++++++------------------\n sound/soc/tegra/tegra210_admaif.h |  2 +-\n sound/soc/tegra/tegra_isomgr_bw.c |  1 +\n 3 files changed, 12 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/sound/soc/tegra/tegra210_admaif.c b/sound/soc/tegra/tegra210_admaif.c\nindex a1c2757a3932..7299c6bfcf15 100644\n--- a/sound/soc/tegra/tegra210_admaif.c\n+++ b/sound/soc/tegra/tegra210_admaif.c\n@@ -11,6 +11,7 @@\n #include <linux/platform_device.h>\n #include <linux/pm_runtime.h>\n #include <linux/regmap.h>\n+#include <sound/dmaengine_pcm.h>\n #include <sound/pcm_params.h>\n #include <sound/soc.h>\n #include \"tegra_isomgr_bw.h\"\n@@ -912,35 +913,26 @@ MODULE_DEVICE_TABLE(of, tegra_admaif_of_match);\n \n static int tegra_admaif_probe(struct platform_device *pdev)\n {\n+\tconst struct tegra_admaif_soc_data *soc_data;\n \tstruct tegra_admaif *admaif;\n \tvoid __iomem *regs;\n \tstruct resource *res;\n+\tsize_t alloc_size;\n \tint err, i;\n \n-\tadmaif = devm_kzalloc(&pdev->dev, sizeof(*admaif), GFP_KERNEL);\n+\tsoc_data = of_device_get_match_data(&pdev->dev);\n+\n+\talloc_size = struct_size(admaif, capture_dma_data, soc_data->num_ch);\n+\talloc_size += sizeof(*admaif->playback_dma_data) * soc_data->num_ch;\n+\tadmaif = devm_kzalloc(&pdev->dev, alloc_size, GFP_KERNEL);\n \tif (!admaif)\n \t\treturn -ENOMEM;\n \n-\tadmaif->soc_data = of_device_get_match_data(&pdev->dev);\n+\tadmaif->playback_dma_data = admaif->capture_dma_data + soc_data->num_ch;\n+\tadmaif->soc_data = soc_data;\n \n \tdev_set_drvdata(&pdev->dev, admaif);\n \n-\tadmaif->capture_dma_data =\n-\t\tdevm_kcalloc(&pdev->dev,\n-\t\t\t     admaif->soc_data->num_ch,\n-\t\t\t     sizeof(struct snd_dmaengine_dai_dma_data),\n-\t\t\t     GFP_KERNEL);\n-\tif (!admaif->capture_dma_data)\n-\t\treturn -ENOMEM;\n-\n-\tadmaif->playback_dma_data =\n-\t\tdevm_kcalloc(&pdev->dev,\n-\t\t\t     admaif->soc_data->num_ch,\n-\t\t\t     sizeof(struct snd_dmaengine_dai_dma_data),\n-\t\t\t     GFP_KERNEL);\n-\tif (!admaif->playback_dma_data)\n-\t\treturn -ENOMEM;\n-\n \tfor (i = 0; i < ADMAIF_PATHS; i++) {\n \t\tadmaif->mono_to_stereo[i] =\n \t\t\tdevm_kcalloc(&pdev->dev, admaif->soc_data->num_ch,\ndiff --git a/sound/soc/tegra/tegra210_admaif.h b/sound/soc/tegra/tegra210_admaif.h\nindex 304d45c76a9a..fd9877aa95d3 100644\n--- a/sound/soc/tegra/tegra210_admaif.h\n+++ b/sound/soc/tegra/tegra210_admaif.h\n@@ -229,13 +229,13 @@ struct tegra_admaif_soc_data {\n };\n \n struct tegra_admaif {\n-\tstruct snd_dmaengine_dai_dma_data *capture_dma_data;\n \tstruct snd_dmaengine_dai_dma_data *playback_dma_data;\n \tconst struct tegra_admaif_soc_data *soc_data;\n \tunsigned int *mono_to_stereo[ADMAIF_PATHS];\n \tunsigned int *stereo_to_mono[ADMAIF_PATHS];\n \tstruct regmap *regmap;\n \tstruct tegra_adma_isomgr *adma_isomgr;\n+\tstruct snd_dmaengine_dai_dma_data capture_dma_data[];\n };\n \n #endif\ndiff --git a/sound/soc/tegra/tegra_isomgr_bw.c b/sound/soc/tegra/tegra_isomgr_bw.c\nindex fa979960bc09..c0f300fb3d38 100644\n--- a/sound/soc/tegra/tegra_isomgr_bw.c\n+++ b/sound/soc/tegra/tegra_isomgr_bw.c\n@@ -6,6 +6,7 @@\n \n #include <linux/interconnect.h>\n #include <linux/module.h>\n+#include <sound/dmaengine_pcm.h>\n #include <sound/pcm_params.h>\n #include <sound/soc.h>\n #include \"tegra_isomgr_bw.h\"\n",
    "prefixes": []
}