Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1444229/?format=api
{ "id": 1444229, "url": "http://patchwork.ozlabs.org/api/patches/1444229/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-30-git-send-email-bmeng.cn@gmail.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": "<1614244979-48216-30-git-send-email-bmeng.cn@gmail.com>", "list_archive_url": null, "date": "2021-02-25T09:22:50", "name": "[v3,29/38] gpio: mpc8xxx: Support controller register physical address beyond 32-bit", "commit_ref": "271a87b4ecc498cf718738b1a5271c911eec17ff", "pull_url": null, "state": "accepted", "archived": false, "hash": "35ef114d9491fe26ca2f30909d76bd2aa6f08386", "submitter": { "id": 64981, "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api", "name": "Bin Meng", "email": "bmeng.cn@gmail.com" }, "delegate": { "id": 87636, "url": "http://patchwork.ozlabs.org/api/users/87636/?format=api", "username": "priyankajain", "first_name": "Priyanka", "last_name": "Jain", "email": "priyanka.jain@nxp.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-30-git-send-email-bmeng.cn@gmail.com/mbox/", "series": [ { "id": 230985, "url": "http://patchwork.ozlabs.org/api/series/230985/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=230985", "date": "2021-02-25T09:22:22", "name": "ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/230985/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1444229/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1444229/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": [ "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=<UNKNOWN>)", "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=20161025 header.b=jP4aK+y3;\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b=\"jP4aK+y3\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=bmeng.cn@gmail.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 RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmSG96Xyrz9sVr\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:31:13 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7CBC981F8D;\n\tThu, 25 Feb 2021 10:31:05 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 0406780927; Thu, 25 Feb 2021 10:25:41 +0100 (CET)", "from mail-ed1-x535.google.com (mail-ed1-x535.google.com\n [IPv6:2a00:1450:4864:20::535])\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 B5D00812E4\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:25:32 +0100 (CET)", "by mail-ed1-x535.google.com with SMTP id w21so5915269edc.7\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:25:32 -0800 (PST)", "from pek-vx-bsp2.wrs.com\n (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180])\n by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.25.28\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:25:31 -0800 (PST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=N1lsdTpva9Brt15PS/elsroUa8iHZ+LCHHRO8tu5xUM=;\n b=jP4aK+y3Eq8frl8yWEyjRXjfqLw8xITWYVTEQIMioeTNpo3BFa4ezVTX9nHq5i/Oyp\n DXku6Gggiopi0ysOhdVHqMBg3suafW+o+0CBqB2s1XG7O31DYUrFslczLDAxn1HaFXMt\n +lnvbxRWAkomQ2pAT+v780eTq2IJufV3GknEJ3Z3PrZEKr1tquhrlsceT97lOS+jF7Dq\n bJi7sgUHag87xcPK4BxQJfbh2v/ra8y7sJf67vxh4e980vJNRmrYzdKBXfjp15QDLNFB\n 6q4dUkVPj+TPOLUwnnIUgrsukP3oKn+nWnsXZrvgfkIWii/URSi7ZBPlV3rJOlJa7E+8\n bk9w==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=N1lsdTpva9Brt15PS/elsroUa8iHZ+LCHHRO8tu5xUM=;\n b=JWn+g9GqTgygqwziuyChJhLPTgMjTnd3TPz8U4sNqRG/yfQDFdCAjeel1VfURrNDrG\n tCNbhukI+LR3OwYx+Toc25vIAf2z38ovok1uiXjySZ03WTuBj+Vu3FdhXVRsJK0/RPSk\n Ofx6zPbkWKOVLNu0fFFTCXtxwf7UUXf5Jg1/KxTi5PSoejZRjON82MZnEbryaVtCDyMP\n 1DZ8vYrhAF/kLTLy1fr1IFgQLV+2BOAr5UTp/SF2q56JXxgqapt5Nl1ILgrJlkJ8x/B9\n NJxfrcc8byherPwtg8KLGC2CV1iVtEbB6C7JzCm4QEQFmSybIiDw9tHbrjIM0VR5i9Yd\n lYbw==", "X-Gm-Message-State": "AOAM531z8pHdH4IAGcHK9+GJVVDXCFzMcSid7OVE8TlRhsyuUZvBzViB\n xxospuTC4J2bw2h8UVcWbnE=", "X-Google-Smtp-Source": "\n ABdhPJz6JrsCIPLtLGpF53oAAhNy+tcukci8583oBeoR6dKiU2in7kxwOmJwdAEV6IVyo5PdeDT4EQ==", "X-Received": "by 2002:a50:8a90:: with SMTP id j16mr1879710edj.334.1614245132408;\n Thu, 25 Feb 2021 01:25:32 -0800 (PST)", "From": "Bin Meng <bmeng.cn@gmail.com>", "To": "Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>,\n Priyanka Jain <priyanka.jain@nxp.com>", "Cc": "U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>", "Subject": "[PATCH v3 29/38] gpio: mpc8xxx: Support controller register physical\n address beyond 32-bit", "Date": "Thu, 25 Feb 2021 17:22:50 +0800", "Message-Id": "<1614244979-48216-30-git-send-email-bmeng.cn@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>", "References": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.34", "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.102.4 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "dev_read_addr_size_index() returns fdt_addr_t which might be a\n64-bit physical address. This might be true for some 85xx SoCs\nwhose CCSBAR is mapped beyond 4 GiB.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Priyanka Jain <priyanka.jain@nxp.com>\n\n---\n\n(no changes since v2)\n\nChanges in v2:\n- new patch: gpio: mpc8xxx: Support controller register physical address beyond 32-bit\n\n arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 +-\n drivers/gpio/mpc8xxx_gpio.c | 7 ++++---\n 2 files changed, 5 insertions(+), 4 deletions(-)", "diff": "diff --git a/arch/powerpc/include/asm/arch-mpc85xx/gpio.h b/arch/powerpc/include/asm/arch-mpc85xx/gpio.h\nindex c7086a8..79ba786 100644\n--- a/arch/powerpc/include/asm/arch-mpc85xx/gpio.h\n+++ b/arch/powerpc/include/asm/arch-mpc85xx/gpio.h\n@@ -18,7 +18,7 @@\n #endif\n \n struct mpc8xxx_gpio_plat {\n-\tulong addr;\n+\tphys_addr_t addr;\n \tunsigned long size;\n \tuint ngpios;\n };\ndiff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c\nindex c733603..f7ffd89 100644\n--- a/drivers/gpio/mpc8xxx_gpio.c\n+++ b/drivers/gpio/mpc8xxx_gpio.c\n@@ -20,7 +20,7 @@ struct mpc8xxx_gpio_data {\n \t/* The bank's register base in memory */\n \tstruct ccsr_gpio __iomem *base;\n \t/* The address of the registers; used to identify the bank */\n-\tulong addr;\n+\tphys_addr_t addr;\n \t/* The GPIO count of the bank */\n \tuint gpio_count;\n \t/* The GPDAT register cannot be used to determine the value of output\n@@ -181,7 +181,7 @@ static int mpc8xxx_gpio_of_to_plat(struct udevice *dev)\n \tif (dev_read_bool(dev, \"little-endian\"))\n \t\tdata->little_endian = true;\n \n-\tplat->addr = (ulong)dev_read_addr_size_index(dev, 0, (fdt_size_t *)&plat->size);\n+\tplat->addr = dev_read_addr_size_index(dev, 0, (fdt_size_t *)&plat->size);\n \tplat->ngpios = dev_read_u32_default(dev, \"ngpios\", 32);\n \n \treturn 0;\n@@ -220,7 +220,8 @@ static int mpc8xxx_gpio_probe(struct udevice *dev)\n \n \tmpc8xxx_gpio_plat_to_priv(dev);\n \n-\tsnprintf(name, sizeof(name), \"MPC@%lx_\", data->addr);\n+\tsnprintf(name, sizeof(name), \"MPC@%.8llx\",\n+\t\t (unsigned long long)data->addr);\n \tstr = strdup(name);\n \n \tif (!str)\n", "prefixes": [ "v3", "29/38" ] }