get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2191547,
    "url": "http://patchwork.ozlabs.org/api/patches/2191547/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260202141058.648965-1-s-vadapalli@ti.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260202141058.648965-1-s-vadapalli@ti.com>",
    "list_archive_url": null,
    "date": "2026-02-02T14:10:56",
    "name": "board: ti: j721e,j7200: fix do_main_cpsw0_qsgmii_phyinit",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a910a6a51f39465595ac7f4172cba1640a443bdb",
    "submitter": {
        "id": 84157,
        "url": "http://patchwork.ozlabs.org/api/people/84157/?format=api",
        "name": "Siddharth Vadapalli",
        "email": "s-vadapalli@ti.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260202141058.648965-1-s-vadapalli@ti.com/mbox/",
    "series": [
        {
            "id": 490637,
            "url": "http://patchwork.ozlabs.org/api/series/490637/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=490637",
            "date": "2026-02-02T14:10:56",
            "name": "board: ti: j721e,j7200: fix do_main_cpsw0_qsgmii_phyinit",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/490637/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2191547/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2191547/checks/",
    "tags": {},
    "related": [],
    "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 (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=selector1 header.b=c0ft3oyi;\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=pass (p=quarantine dis=none) header.from=ti.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"c0ft3oyi\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=s-vadapalli@ti.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f4T5j4XKtz1xpg\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 03 Feb 2026 01:10:01 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 4575A83E8E;\n\tMon,  2 Feb 2026 15:09:52 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 55FC183A8E; Mon,  2 Feb 2026 15:09:50 +0100 (CET)",
            "from CY7PR03CU001.outbound.protection.outlook.com\n (mail-westcentralusazlp170100005.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c112::5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 770A883A3D\n for <u-boot@lists.denx.de>; Mon,  2 Feb 2026 15:09:47 +0100 (CET)",
            "from BL0PR02CA0133.namprd02.prod.outlook.com (2603:10b6:208:35::38)\n by MW4PR10MB5839.namprd10.prod.outlook.com (2603:10b6:303:18f::5)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.16; Mon, 2 Feb\n 2026 14:09:42 +0000",
            "from BL6PEPF0001AB75.namprd02.prod.outlook.com\n (2603:10b6:208:35:cafe::d9) by BL0PR02CA0133.outlook.office365.com\n (2603:10b6:208:35::38) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9564.16 via Frontend Transport; Mon,\n 2 Feb 2026 14:09:39 +0000",
            "from lewvzet201.ext.ti.com (198.47.23.195) by\n BL6PEPF0001AB75.mail.protection.outlook.com (10.167.242.168) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9587.10 via Frontend Transport; Mon, 2 Feb 2026 14:09:41 +0000",
            "from DLEE204.ent.ti.com (157.170.170.84) by lewvzet201.ext.ti.com\n (10.4.14.104) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 2 Feb\n 2026 08:09:40 -0600",
            "from DLEE205.ent.ti.com (157.170.170.85) by DLEE204.ent.ti.com\n (157.170.170.84) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 2 Feb\n 2026 08:09:40 -0600",
            "from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE205.ent.ti.com\n (157.170.170.85) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend\n Transport; Mon, 2 Feb 2026 08:09:40 -0600",
            "from toolbox.dhcp.ti.com (uda0492258.dhcp.ti.com [10.24.73.74])\n by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 612E9YC21869506;\n Mon, 2 Feb 2026 08:09:35 -0600"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no\n autolearn_force=no version=3.4.2",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=VFCNujDsw5DzEW+lZ7L4xMnZqkslKQdQpiXdpYfSWsochA2CuNpNZuhpbz6ofdvLJ18wmd4hrzLfAbZ7wL6/caRSwKJp8XTP98HQMRgM0m0oWhvLIcrTci25zTVwoeZieB1v07kDkV65rRNg6inrAVVrTYtZRs7He3wXqgNb2BkxEsXHbw0vJnXTCoVZiOJCilZhGC3XXJl7qofyAGTasY/mT+gKPQadcSFvTIwPag1KAn0lCYzjHvgGzG+En75vXgbPvATsExtWFNqOgyUNrDiPETbGmx5wToOIHD8uFsjRTss6/HrbfeqF9I1l71/Q3ywDqLibJpn89RHeHAdVBQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=AOsE6flMcTOtK89khessikrhKlcpd0jVhu2WQf+t9aI=;\n b=qeay7fpe2OHdgvkwSAasqxlt3i/CJSZh7HBkXXdCljeMYBPeDH+OldCKVUnKJpu+syO9Q1hBvGJW2cc1CWkT9OBSa8JPPD/DGmAsxlrbd9OEFA0ozh7h+jA/TS3J24uTbENjXaXfqGOUQH68euH/jIr/OEO0gyTpEPdAYDgxyQXuUa/9UQTkMrPqy0M1PA/T6ORCCFiezESqKrU/hPJWMekrKcYwGeZk5lvLmEGTLizGCwx/TxDatCIfumvHcw1X2krewUgunsoGj0LM9jdKUvORVbUR5eFNFAgk9nKJFaPr9tavG3DlcK0ZRn6FoSkRJrQhO5z5x7q0QsVG6Qj64A==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 198.47.23.195) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=ti.com;\n dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=AOsE6flMcTOtK89khessikrhKlcpd0jVhu2WQf+t9aI=;\n b=c0ft3oyiK4vjctyoEzyCaP0tvyCJMr5HGFfd8roTRi516FveSVuVLpv59TH65j1dhlsdywQyESf8bi+swQ2wNpcK0JC5V0vVSACtPjkmm7Ou+ipMipaXKwnnffGXvxuAC1CcdZEq8iQ/lmPwHYk0nx8WDk1M8tGR5HkF+0dMOAk=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 198.47.23.195)\n smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;\n dmarc=pass\n action=none header.from=ti.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of ti.com designates\n 198.47.23.195 as permitted sender) receiver=protection.outlook.com;\n client-ip=198.47.23.195; helo=lewvzet201.ext.ti.com; pr=C",
        "From": "Siddharth Vadapalli <s-vadapalli@ti.com>",
        "To": "<trini@konsulko.com>, <joe.hershberger@ni.com>, <afd@ti.com>,\n <n-francis@ti.com>, <b-padhi@ti.com>, <ilias.apalodimas@linaro.org>,\n <peng.fan@nxp.com>, <jerome@forissier.org>, <neil.armstrong@linaro.org>,\n <d-gole@ti.com>, <anshuld@ti.com>, <j-humphreys@ti.com>,\n <semen.protsenko@linaro.org>, <bb@ti.com>, <m-chawdhry@ti.com>,\n <mkorpershoek@kernel.org>",
        "CC": "<u-boot@lists.denx.de>, <srk@ti.com>, <s-vadapalli@ti.com>",
        "Subject": "[PATCH] board: ti: j721e,j7200: fix do_main_cpsw0_qsgmii_phyinit",
        "Date": "Mon, 2 Feb 2026 19:40:56 +0530",
        "Message-ID": "<20260202141058.648965-1-s-vadapalli@ti.com>",
        "X-Mailer": "git-send-email 2.51.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-C2ProcessedOrg": "333ef613-75bf-4e12-a4b1-8e3623f5dcea",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "BL6PEPF0001AB75:EE_|MW4PR10MB5839:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "d829d0ad-18af-4138-d4bd-08de6264b559",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|376014|36860700013|1800799024|82310400026|921020;",
        "X-Microsoft-Antispam-Message-Info": "\n ScyJI4Vu1vRprw4Dx7N7HCWNQkQmHJL+DflXJ+UyQU2cLs4BcRUni1/TVqAjNDu9uLXtNmL2bCeS3Vohe02pyGSoTvk2z4E/HmJqaoitrh74fR8roDwvE3etTvYGO6yHWXDOrteW+YwN6q6c0RVpUskA5DhUYWSn/6X115973/zHKD6j27qfhUVc0405+zDjNoId4xriy9YWOb0O40WMakWonGxjwy/gGwCciORGV7wwJxYPh67OodmuFujtcDtUuHQtZ6HEX5/DGsGhT8DkeeWcYvno15tVhuFgCXpGMw+Oz/R6+iAc8ku37+vQbBO7543irmm+4bPHKFYhqucluV//r4mZRUzz0rXhJ0OByI3YluEW0OLP6aBfknWIuDcU08Ws8WnX6yuerF1qKkJ2IQUoHWjmxPOHI/6uFLdPIHGE+vkOH+YzahRiK1Di5OPGSh1Q6Eci+Io3R/jpX5cz7v8GFIvkdEEMuh1RhAMbWWppe5/YfoXCXttwSoYWMF7YNqBMFVcfJBDPzT1pT+0IGR98+3MfWPILAFtl4hqMVBy6N7HfGlVs0qbJQv28erJoxWcCyYW1IaWC5oF+TzbgEmuY2p6Bi+G9D5XgnSuS/2qTNhcvGVbGYMLVbw+ct47/GobBm8wnfErGI2LyBGZDaw02IOjLdAzJdFWA0AnOGU0Gjn5DL88PtGWFTJFwTIpt30/5yrGCZhvF3GRcb8nz1ouUOk/Ujsr2VS+S1IDFN1SIXfSbX+bEjbtRwD5z6EVATQGuHSS4jQvoDrKdyX6JPcFP1YT9W+pN0tdoKe61WhsUVBNVzoeqoNzy5E7vZz2JiXrfFIfOqBYUnYZky20e5EctB1znk0LpK7qdw77c4ocLABdpwVpJyAQBEzZ5b+Q/uFmOqZ91C5l6aRbobdQW7WgcB3jJJaqrArxiz9Qjh/FZM+LY4Wn9uj9QYsAptHjsdLOqN68EwaJqorav2zqAn1LVR+I75LO+9ZnrLIl40x/EE55XZV8yqZFRUKgKsaQICvkFV3klXYJ72bBoTZREadJgthpayx+0I297GAB/iQWwiKRXejQxAwm1zfjmZzsYEF2jg85GIxDEBlSOqI/PDK7iRcIE1O11525MpEzIJEpmvsg6KAW3mxRUpIf5U0A3aWX1b2SkIiF2o30xWhHuZ0PQbXEtHUF7YCsSO6fGszC0j5dh22osFebSwud2vkLdOkjAkp6DTuS1iy9Hs+evQksikQ7OPZ//vj1+XcV6ysTR/n1ak3T+ZWdDvRxJG/s9FfyNLcFQIR0y9X2Vo4uxWiTBQWa+KqO93oNzDAyGaXnllIDGu8z/6CJmfMzUwbyukr5qFVDq4CJ96ghnR6qYNYGOq3Ymt2VWs3mG2Xb6tgj8A4iay4t9DK0M6qKVQCMdN7EJQg0XXIAnJ+1MkRH5ZVf8rKybBUQVAlf/24iIDkpLJDEZtrhjpKGraQenwWI9EJk00YdVDM7B+KIhpCvm/S697E20Etq/PyDAZsRhsYyRqokCDgVjO/rMpWLInsFex9YncVbOXHMN/GpnN14Nka0opDRXlYdNvDlmphlA4DCUrse8d9JWRSqvOObLWxvdX7LEZDWRNbm6fJ19CI2ps8DCRlF4ckJOn4oQdxWya99yTQIidvxX0L6P6m55X2T0",
        "X-Forefront-Antispam-Report": "CIP:198.47.23.195; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:lewvzet201.ext.ti.com; PTR:InfoDomainNonexistent;\n CAT:NONE;\n SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026)(921020);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n 0B5zhHVutqVXud2OTigK6MtxcVu4CLHiupIAhiJ95M6IbsA48m1YpP+DPlt1SZjPei2VZ5Ku/9eEvJM/yU/A21Y7peJknBZZy6J7g57TFs32aNEieHs4cUTXUca0by/s+rlUYdLXPoEeANYV3URy7u7iuSbIF/7qNlMRcS9euU4ImjDRKLW+bOBlh1LvKW4dsGUeKotGPhqGmCFq1lZeJH7mCERR3BxUrie2ftrFbq7WprDyi7kiqF5LPIlsRYoEHLBfqIxEt05xsPAfZvzSHAdlEt10YhLQKyFOETEboFRHTIs81/WaObzHvOvvRQ65jlecLVDDOq2hm4f3YwGRFkPxSnjGoPI3Zp0cpbqo/R9UGboSliI3j1WHkI8C/sqllKzuzH3lOV1OmqeJLTwgKb52GvSeX9d0yVoLLqoBx0plv3b+RreGxRn+EM7XGGl/",
        "X-OriginatorOrg": "ti.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "02 Feb 2026 14:09:41.0855 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n d829d0ad-18af-4138-d4bd-08de6264b559",
        "X-MS-Exchange-CrossTenant-Id": "e5b49634-450b-4709-8abb-1e2b19b982b7",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7; Ip=[198.47.23.195];\n Helo=[lewvzet201.ext.ti.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BL6PEPF0001AB75.namprd02.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MW4PR10MB5839",
        "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": "Since commit 27cc5951c862 (\"include: env: ti: add default for\ndo_main_cpsw0_qsgmii_phyinit\"), the value of the environment variable\ndo_main_cpsw0_qsgmii_phyinit happened to remain '0' and couldn't be\nchanged without user intervention. This behavior is due to the following\ncyclic dependency:\nA) ti_common.env sets do_main_cpsw0_qsgmii_phyinit to '0' and its value\n   can only be updated automatically by main_cpsw0_qsgmii_phyinit.\nB) main_cpsw0_qsgmii_phyinit is defined in j721e.env and it can run only\n   if 'do_main_cpsw0_qsgmii_phyinit' is already '1' which isn't possible\n   unless the user manually assigns the value.\n\nFix the aforementioned cyclic dependency by using board_late_init() to\ndetect the QSGMII Daughtercard and set do_main_cpsw0_qsgmii_phyinit.\n\nAdditionally, to address the issue of do_main_cpsw0_qsgmii_phyinit being\n'undefined' for other platforms, replace:\n\tif test ${do_main_cpsw0_qsgmii_phyinit} -eq 1;\nwith:\n\tif env exists do_main_cpsw0_qsgmii_phyinit;\nin ti_common.env.\n\nFixes: 27cc5951c862 (\"include: env: ti: add default for do_main_cpsw0_qsgmii_phyinit\")\nSigned-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>\n---\n\nHello,\n\nThis patch is based on commit\need514b11d0 video: correct label for cyclic video_idle\nof the master branch of U-Boot.\n\nPatch has been tested on:\n1. J721E-EVM (Has a QSGMII Daughtercard)\nhttps://gist.github.com/Siddharth-Vadapalli-at-TI/0b453ca7d9e133263ebe10f79b3f685f\n2. J7200-EVM (Has a QSGMII Daughtercard)\nhttps://gist.github.com/Siddharth-Vadapalli-at-TI/3f408ec145e71404ef46194b8c1d4f5b\n3. AM625-SK (Does not have a QSGMII Daughtercard and the 'undefined\nvariable' error isn't seen):\nhttps://gist.github.com/Siddharth-Vadapalli-at-TI/a16d4a02701b7ef594fd1b98ee015144\n\nRegards,\nSiddharth.\n\n board/ti/j7200/j7200.env     |  1 -\n board/ti/j721e/evm.c         | 16 ++++++++++++++++\n board/ti/j721e/j721e.env     |  3 ---\n include/env/ti/ti_common.env |  3 +--\n 4 files changed, 17 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/board/ti/j7200/j7200.env b/board/ti/j7200/j7200.env\nindex 292fc72fd58..e22a954d8db 100644\n--- a/board/ti/j7200/j7200.env\n+++ b/board/ti/j7200/j7200.env\n@@ -26,7 +26,6 @@ bootdir=/boot\n rd_spec=-\n \n #if CONFIG_TARGET_J7200_A72_EVM\n-do_main_cpsw0_qsgmii_phyinit=1\n init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;\n \tgpio clear gpio@22_16\n main_cpsw0_qsgmii_phyinit=\ndiff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c\nindex e030fe7dc87..d82bf4af7e8 100644\n--- a/board/ti/j721e/evm.c\n+++ b/board/ti/j721e/evm.c\n@@ -403,6 +403,19 @@ static void setup_serial(void)\n \tenv_set(\"serial#\", serial_string);\n }\n \n+static void qsgmii_daughtercard_env_update(void)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i < ARRAY_SIZE(ext_cards); i++) {\n+\t\tif (!strcmp(ext_cards[i].card_name, \"J7X-VSC8514-ETH\") &&\n+\t\t    daughter_card_detect_flags[i]) {\n+\t\t\tenv_set(\"do_main_cpsw0_qsgmii_phyinit\", \"1\");\n+\t\t\treturn;\n+\t\t}\n+\t}\n+}\n+\n int board_late_init(void)\n {\n \tif (IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) {\n@@ -412,6 +425,9 @@ int board_late_init(void)\n \t\t/* Check for and probe any plugged-in daughtercards */\n \t\tif (board_is_j721e_som() || board_is_j7200_som())\n \t\t\tprobe_daughtercards();\n+\n+\t\t/* Update env for power-on-reset of the QSGMII Daughtercard */\n+\t\tqsgmii_daughtercard_env_update();\n \t}\n \n \treturn 0;\ndiff --git a/board/ti/j721e/j721e.env b/board/ti/j721e/j721e.env\nindex ead7fbdb212..34f5f63d60a 100644\n--- a/board/ti/j721e/j721e.env\n+++ b/board/ti/j721e/j721e.env\n@@ -29,9 +29,6 @@ rd_spec=-\n init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;\n \tgpio clear gpio@22_16\n main_cpsw0_qsgmii_phyinit=\n-\tif test $board_name = J721EX-PM1-SOM || test $board_name = J721EX-PM2-SOM || test $board_name = j721e; then\n-\t\tdo_main_cpsw0_qsgmii_phyinit=1; else\n-\t\tdo_main_cpsw0_qsgmii_phyinit=0; fi;\n \tif test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then\n \t\trun init_main_cpsw0_qsgmii_phy;\t\t\t\\\n \tfi;\ndiff --git a/include/env/ti/ti_common.env b/include/env/ti/ti_common.env\nindex 03e3267ef8a..a0ed83f52ac 100644\n--- a/include/env/ti/ti_common.env\n+++ b/include/env/ti/ti_common.env\n@@ -22,11 +22,10 @@ get_fit_overlaystring=\n \tdone;\n get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}\n run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}\n-do_main_cpsw0_qsgmii_phyinit=0\n bootcmd_ti_mmc=\n \trun init_${boot};\n #if CONFIG_CMD_REMOTEPROC\n-\tif test ${do_main_cpsw0_qsgmii_phyinit} -eq 1;\n+\tif env exists do_main_cpsw0_qsgmii_phyinit;\n \t\tthen run main_cpsw0_qsgmii_phyinit;\n \tfi;\n \trun boot_rprocs;\n",
    "prefixes": []
}