Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2221584/?format=api
{ "id": 2221584, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2221584/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260409-mtk-pmic-fixes-v2-6-73e83aa6345b@baylibre.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260409-mtk-pmic-fixes-v2-6-73e83aa6345b@baylibre.com>", "date": "2026-04-09T20:30:38", "name": "[v2,6/8] power: pmic: mtk-pwrap: use pmic compatible to select child info", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "3e2f9f72e6e2e70e81942ff0092128d929fc9dac", "submitter": { "id": 87228, "url": "http://patchwork.ozlabs.org/api/1.1/people/87228/?format=api", "name": "David Lechner", "email": "dlechner@baylibre.com" }, "delegate": { "id": 12423, "url": "http://patchwork.ozlabs.org/api/1.1/users/12423/?format=api", "username": "Jaehoon", "first_name": "Jaehoon", "last_name": "Chung", "email": "jh80.chung@samsung.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260409-mtk-pmic-fixes-v2-6-73e83aa6345b@baylibre.com/mbox/", "series": [ { "id": 499358, "url": "http://patchwork.ozlabs.org/api/1.1/series/499358/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499358", "date": "2026-04-09T20:30:32", "name": "power: pmic: mtk-pwrap: add more capability flags", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/499358/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221584/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221584/checks/", "tags": {}, "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.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.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=seTwIXX1;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.b=\"seTwIXX1\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=dlechner@baylibre.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4fsBTB0VHTz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 06:33:02 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 06D818419C;\n\tThu, 9 Apr 2026 22:32:15 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id B909B84198; Thu, 9 Apr 2026 22:32:11 +0200 (CEST)", "from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com\n [IPv6:2607:f8b0:4864:20::22b])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id C52A784201\n for <u-boot@lists.denx.de>; Thu, 9 Apr 2026 22:31:58 +0200 (CEST)", "by mail-oi1-x22b.google.com with SMTP id\n 5614622812f47-47018d34159so1077199b6e.2\n for <u-boot@lists.denx.de>; Thu, 09 Apr 2026 13:31:58 -0700 (PDT)", "from [127.0.1.1] ([2600:8803:e7e4:500:a548:cf0c:d054:fd01])\n by smtp.gmail.com with ESMTPSA id\n 5614622812f47-478a101b75esm293075b6e.6.2026.04.09.13.31.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 13:31:56 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775766717;\n x=1776371517;\n darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=YDyQDLGMdqUletDsc30qTzqtglhw4D1rGJgxVpC3dRk=;\n b=seTwIXX1o0o8PmMPeRbuswoHQYQ5R8uQolfiKUJsWSSeU94mHhVhBB3xgkbiQIs2tG\n xE8TPGly4pi5mrlKoDBqssYSaXGMH7+R/Il9pP1Nv1EJQRjn4pzpfy/Z2mktUSWLhJ++\n 0feIxvUIouW08C7et7re/MpszoxSGm0CzNwZLNuk4+8qpRAAHVsLYZ7U7Zjd730QQ+op\n kEyuCYTnZgLKxm1O63RmDB1mNcp3v6At89GO66ZiRSVrMCxYixnlaC7SC3Kz95ojN/a3\n AIZpGMwP+TZEZOSZ6XTV0FHvkiPEQ25c2Lx3irDmn03EjRMYWk3idEzgLC6gl14HgNAX\n PJKw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775766717; x=1776371517;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=YDyQDLGMdqUletDsc30qTzqtglhw4D1rGJgxVpC3dRk=;\n b=KBDi8FUiqf0m68IRHG4nyyNIs6HQSNLyMm92VbjfqvNFdOhCecNSTVpiu0TkQhhzso\n eAI4ln6DJC0XcijwiVO/5u1BjbKA2vfgyumypsvVG/pNUZIfRGugurDfZSr3nA46dadp\n DGTf5lEvg47bO+/FMOK8plHaL0z3ss70muWmv8mLnv84/udH78RIzShh9H6+Emj+G/hM\n b9WS+6sqIqa0DqnWFB0J3Nx1jimTGx1J1webd8SKCOOlAvj1EutSfWbew52bSH1hLSKE\n vGLkph9g0YG8Jt6hqdzbAojlQrW5so67DfpHb04YfzsSn66c3oszBbNRamn5QrtFTubU\n +MGQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXiJ+YhktxJjm5wUDWo/0AO1b+oKMxCm603r5rgPreD/kPhEWtVEqRp8zfl3Qrfq2Xe6WoNXrc=@lists.denx.de", "X-Gm-Message-State": "AOJu0YzF8vG7mWetV4mi0s9l16eNct8/ZWUNhyh5nzwQ1cmTjAS0e+s+\n Sci5MQOFUJOIn0h5D+t7YDiwBWGwHwnBpHPFMG50QC1bi5hpgw3aiesWWECtCZsnjKo=", "X-Gm-Gg": "AeBDiesllnUcJaxP1wHlhSG1GpU/pgf70V33rKgUJW6A4cmPparn+1aU8gfruP85dXs\n 86qyizbZqawhh5f7sEkBIKB/obTe8s8QXp81JOYj4t7pjL1oQCUNkXAZxx4ZU4rw9TMoOSzx5uw\n AekKKVAyRQ73u7SXb4GlQY0rbDgdJ69cvxN9QcSJ7pbJfno2x39DsSS4zmTO4o4fw2exonRbXiz\n //tujPzUY7hD35a562+tuxFECXQ3yQ4JGI+72runkFqAdkfB/pF5WWdfpU4Xs2IKaMuysAxHuvL\n 7RtCRUUO+iBQR8CVac6/SdOFLrDBIU7lbN/vSD+e6yRTWKVyzRPi+13EwqOYHkJituEOPP5jD6n\n CnMNYFxeQTH09HylnBhEtG8m/m3/yPbD1wScE3B8QoM0ZT0Asaz4PfQXD0XpDFdcniV9AZuPfbn\n SaS3Lt5QKU53fEA825SMF/hxkh+JPf", "X-Received": "by 2002:a05:6808:c168:b0:468:b01:c28c with SMTP id\n 5614622812f47-4789f909351mr419868b6e.46.1775766717388;\n Thu, 09 Apr 2026 13:31:57 -0700 (PDT)", "From": "David Lechner <dlechner@baylibre.com>", "Date": "Thu, 09 Apr 2026 15:30:38 -0500", "Subject": "[PATCH v2 6/8] power: pmic: mtk-pwrap: use pmic compatible to\n select child info", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260409-mtk-pmic-fixes-v2-6-73e83aa6345b@baylibre.com>", "References": "<20260409-mtk-pmic-fixes-v2-0-73e83aa6345b@baylibre.com>", "In-Reply-To": "<20260409-mtk-pmic-fixes-v2-0-73e83aa6345b@baylibre.com>", "To": "Ryder Lee <ryder.lee@mediatek.com>, Weijie Gao <weijie.gao@mediatek.com>,\n Chunfeng Yun <chunfeng.yun@mediatek.com>,\n Igor Belwon <igor.belwon@mentallysanemainliners.org>,\n GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,\n Jaehoon Chung <jh80.chung@samsung.com>, Peng Fan <peng.fan@nxp.com>,\n Tom Rini <trini@konsulko.com>", "Cc": "Julien Stephan <jstephan@baylibre.com>, u-boot@lists.denx.de,\n David Lechner <dlechner@baylibre.com>", "X-Mailer": "b4 0.16-dev", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2945; i=dlechner@baylibre.com;\n h=from:subject:message-id;\n bh=DCtW/6ItScysX8t+HymZdjuv554Mm7J+MxPKaM/lc3M=;\n b=owEBhAF7/pANAwAKAcLMIAH/AY/AAcsmYgBp2AyeCzhHA/83E5C5iT866ajls8/lV18rv7O+D\n MJD2x3HaQGJAUoEAAEKADQWIQTsGNmeYg6D1pzYaJjCzCAB/wGPwAUCadgMnhYcZGxlY2huZXJA\n YmF5bGlicmUuY29tAAoJEMLMIAH/AY/AnhsH/0/a1PxC6F4pJ6Lsr4de3cQBJMe0e0AMFrKrSRZ\n egpq2M+8CH07RcM8e+Mcjl5BXm56TeYH5CPb+oeoZTsu1NgWJl8zShTLkoBdvF8Vg44w/z/A6ay\n cXDRTlc3a1wNYwp1eSsZI7v9oC9/YBOzHMhcC7RbitKhLelrMK2mLSpA6//j5Wfk+mmH7yO1htm\n OyeVleHMgctgPgQ96xZ7hY4HaEk2L6CUHrmPbv8mi0O2ltHDRem6+eOwWe+awXyY2X2skL7qZzf\n 0ziOjG6NSp4NyCfAfqQswjHMscGDaUWQnX1De4cZ+B/PbCvMptHiRpVJPUabXZBuzmTtrBPoTwv\n Qi+E=", "X-Developer-Key": "i=dlechner@baylibre.com; a=openpgp;\n fpr=8A73D82A6A1F509907F373881F8AF88C82F77C03", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Change the logic for selecting pmic_children_info to use the compatible\nstring from the devicetree instead of expecting the pwrap (part of the\nMCU) to correspond to the separate PMIC chip.\n\nIn addition to being more correct, it also saves a few lines of code for\neach MCU type that is added by dropping the enum and type field.\n\nSigned-off-by: David Lechner <dlechner@baylibre.com>\n---\n drivers/power/pmic/mtk-pwrap.c | 24 +++++-------------------\n 1 file changed, 5 insertions(+), 19 deletions(-)", "diff": "diff --git a/drivers/power/pmic/mtk-pwrap.c b/drivers/power/pmic/mtk-pwrap.c\nindex c41ebeb62cc..7d84ab1f6d3 100644\n--- a/drivers/power/pmic/mtk-pwrap.c\n+++ b/drivers/power/pmic/mtk-pwrap.c\n@@ -341,12 +341,6 @@ static int mt8365_regs[] = {\n \t[PWRAP_WDT_SRC_EN_1] =\t\t0xf8,\n };\n \n-enum pwrap_type {\n-\tPWRAP_MT8188,\n-\tPWRAP_MT8189,\n-\tPWRAP_MT8365,\n-};\n-\n struct pwrap_slv_type {\n \tconst u32 *dew_regs;\n \tu32 caps;\n@@ -365,7 +359,6 @@ struct pmic_wrapper {\n \n struct pmic_wrapper_type {\n \tint *regs;\n-\tenum pwrap_type type;\n \tu32 arb_en_all;\n \tu32 spi_w;\n \tu32 wdt_src;\n@@ -780,7 +773,6 @@ static int mtk_pwrap_bind(struct udevice *dev)\n \tofnode pmic_node, regulators_node;\n \tint children;\n \tconst struct pmic_child_info *pmic_children_info;\n-\tstruct pmic_wrapper_type *pw_type = (void *)dev_get_driver_data(dev);\n \n \tpmic_node = dev_read_first_subnode(dev);\n \tif (!ofnode_valid(pmic_node)) {\n@@ -788,16 +780,13 @@ static int mtk_pwrap_bind(struct udevice *dev)\n \t\treturn -ENXIO;\n \t}\n \n-\tswitch (pw_type->type) {\n-\tcase PWRAP_MT8365:\n+\tif (ofnode_device_is_compatible(pmic_node, \"mediatek,mt6357\")) {\n \t\tpmic_children_info = mt6357_pmic_children_info;\n-\t\tbreak;\n-\tcase PWRAP_MT8188:\n-\tcase PWRAP_MT8189:\n+\t} else if (ofnode_device_is_compatible(pmic_node, \"mediatek,mt6359\")) {\n \t\tpmic_children_info = mt6359_pmic_children_info;\n-\t\tbreak;\n-\tdefault:\n-\t\tdev_err(dev, \"pwrap type %d not supported\\n\", pw_type->type);\n+\t} else {\n+\t\tdev_err(dev, \"pmic type %s not supported\\n\",\n+\t\t\tofnode_read_string(pmic_node, \"compatible\"));\n \t\treturn -ENXIO;\n \t}\n \n@@ -846,7 +835,6 @@ static struct dm_pmic_ops mtk_pwrap_ops = {\n \n static struct pmic_wrapper_type pwrap_mt8188 = {\n \t.regs = mt8188_regs,\n-\t.type = PWRAP_MT8188,\n \t.arb_en_all = 0x777f,\n \t.spi_w = PWRAP_MAN_CMD_SPI_WRITE,\n \t.wdt_src = PWRAP_WDT_SRC_MASK_ALL,\n@@ -855,7 +843,6 @@ static struct pmic_wrapper_type pwrap_mt8188 = {\n \n static struct pmic_wrapper_type pwrap_mt8189 = {\n \t.regs = mt8189_regs,\n-\t.type = PWRAP_MT8189,\n \t.arb_en_all = 0x777f,\n \t.spi_w = PWRAP_MAN_CMD_SPI_WRITE,\n \t.wdt_src = PWRAP_WDT_SRC_MASK_ALL,\n@@ -864,7 +851,6 @@ static struct pmic_wrapper_type pwrap_mt8189 = {\n \n static const struct pmic_wrapper_type pwrap_mt8365 = {\n \t.regs = mt8365_regs,\n-\t.type = PWRAP_MT8365,\n \t.arb_en_all = 0x3ffff,\n \t.spi_w = PWRAP_MAN_CMD_SPI_WRITE,\n \t.wdt_src = PWRAP_WDT_SRC_MASK_ALL,\n", "prefixes": [ "v2", "6/8" ] }