Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1624888/?format=api
{ "id": 1624888, "url": "http://patchwork.ozlabs.org/api/patches/1624888/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20220501122314.32626-3-pali@kernel.org/", "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": "<20220501122314.32626-3-pali@kernel.org>", "list_archive_url": null, "date": "2022-05-01T12:23:14", "name": "[3/3] board: freescale: p1_p2_rdb_pc: Implement board_reset()", "commit_ref": "20fb58fc5a1c83ee0085b2e9f7ecda8b761a5592", "pull_url": null, "state": "accepted", "archived": false, "hash": "67289dd580692ad5a62ec4369ae3be13abf0f5ff", "submitter": { "id": 78810, "url": "http://patchwork.ozlabs.org/api/people/78810/?format=api", "name": "Pali Rohár", "email": "pali@kernel.org" }, "delegate": { "id": 55230, "url": "http://patchwork.ozlabs.org/api/users/55230/?format=api", "username": "freenix", "first_name": "Peng", "last_name": "Fan", "email": "van.freenix@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20220501122314.32626-3-pali@kernel.org/mbox/", "series": [ { "id": 297857, "url": "http://patchwork.ozlabs.org/api/series/297857/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=297857", "date": "2022-05-01T12:23:13", "name": "[1/3] board: freescale: p1_p2_rdb_pc: Add workaround for board reset reboot loop", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/297857/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1624888/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1624888/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "bilbo.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=fExSBeB3;\n\tdkim-atps=neutral", "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "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=kernel.org header.i=@kernel.org header.b=\"fExSBeB3\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org", "phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits))\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4Krlmf590dz9s5V\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 1 May 2022 22:25:22 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1E53B83F1F;\n\tSun, 1 May 2022 14:25:02 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 3C5EF83E0E; Sun, 1 May 2022 14:24:56 +0200 (CEST)", "from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D2F9A83F05\n for <u-boot@lists.denx.de>; Sun, 1 May 2022 14:24:51 +0200 (CEST)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by ams.source.kernel.org (Postfix) with ESMTPS id 7340BB80D3A;\n Sun, 1 May 2022 12:24:51 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id F39E0C385AF;\n Sun, 1 May 2022 12:24:49 +0000 (UTC)", "by pali.im (Postfix)\n id 528C7989; Sun, 1 May 2022 14:24:47 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,\n SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1651407890;\n bh=hbzQHpkgW2WLavzH1DgLJiwPjp4R/bp5hUDRNfPKcEs=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=fExSBeB3WCor2g1wuA/wjm/PNXf3oQwP8aocQhTUm0s3HnrCZIMxcYKs4bh8whqle\n tp7dxRQ6PMJVIG+CuypdSd7/Mhfp1xQW0Fp8DSJlNvJMmOeCWsMZ/ySAk3VMYdofiV\n 6huWkP4ozkIgyltg9JwHm4YyBV4ji+/40g/n3noWRbakV1gitVd69MYgFH5arqICIc\n WnxW1nXDvNvEQWGdgSOtChHOm4aYfcK+jc9pGmYxeQitKNvop2VhpC7Ew9qXovROB4\n 1ePdm+x1uSsjxOpRxxDVCo3Mllt4a55eHQSu1YyXJDL0J7GahEOe1U2uN54kHcajrP\n psWHG8rDC8nCA==", "From": "=?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>", "To": "Priyanka Jain <priyanka.jain@nxp.com>,\n\tSinan Akman <sinan@writeme.com>", "Cc": "u-boot@lists.denx.de", "Subject": "[PATCH 3/3] board: freescale: p1_p2_rdb_pc: Implement board_reset()", "Date": "Sun, 1 May 2022 14:23:14 +0200", "Message-Id": "<20220501122314.32626-3-pali@kernel.org>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20220501122314.32626-1-pali@kernel.org>", "References": "<20220501122314.32626-1-pali@kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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.5 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Do board reset via CPLD's system reset register.\n\nSigned-off-by: Pali Rohár <pali@kernel.org>\n---\n board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c\nindex 24b5ec435e4e..53ff121d3b3d 100644\n--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c\n+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c\n@@ -83,6 +83,12 @@ struct cpld_data {\n #define CPLD_FXS_LED\t0x0F\n #define CPLD_SYS_RST\t0x00\n \n+void board_reset(void)\n+{\n+\tstruct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);\n+\tout_8(&cpld_data->system_rst, 1);\n+}\n+\n void board_cpld_init(void)\n {\n \tstruct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE);\n", "prefixes": [ "3/3" ] }