Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1444196/?format=api
{ "id": 1444196, "url": "http://patchwork.ozlabs.org/api/patches/1444196/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-2-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-2-git-send-email-bmeng.cn@gmail.com>", "list_archive_url": null, "date": "2021-02-25T09:22:22", "name": "[v3,01/38] pci: fsl_pci_init: Dynamically allocate the PCI regions", "commit_ref": "7365a03804ed48a827e91141f3b07f11e20572eb", "pull_url": null, "state": "accepted", "archived": false, "hash": "e5228cf2bc1d7dcc468f58c55368257a5fe4df03", "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-2-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/1444196/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1444196/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=85.214.62.61; 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=ZePsEzUx;\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=\"ZePsEzUx\";\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 [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 (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmS5l6tgXz9s1l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:23:54 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A45928120B;\n\tThu, 25 Feb 2021 10:23:45 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 19F218006D; Thu, 25 Feb 2021 10:23:35 +0100 (CET)", "from mail-ed1-x529.google.com (mail-ed1-x529.google.com\n [IPv6:2a00:1450:4864:20::529])\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 B14598006D\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:23:31 +0100 (CET)", "by mail-ed1-x529.google.com with SMTP id p2so5873430edm.12\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:23:31 -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.23.27\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:23: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,SPF_HELO_NONE autolearn=ham\n 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=mKgBcMPttK8Qdg4IjIRLX9NKWi8Tz/pmkmjmSL5x5G0=;\n b=ZePsEzUxMZ0ZCeJLpYLs2IOAucHwUTPPq3Wle8btErH+zB7asVg2+pdJh0K7sJTW9x\n PCkrG41vNFxZz0wV/24ARjxAGDQeeM+EN3MDyF44p6nOS9eDRGvHy0FEFUZp8TajKAZf\n YwN8iqXTNLo9DsXDrH+HsteRqzgVGmzeADeRTv7m1thyJ9kQDvbwLG7A6Uq/znuCt4zr\n 4lZW/AjvSsy62rLqVcNfEjs5Q0sxdASb8aMq1YmvCkLcbNW3MPa1lJdN6I5KySgdideE\n 1xTm733wVkANHW1fxD/jGafXu7x0U33qZioEMwG0UB0L/iTW+Ow4AHrLfkFvm/5beyiG\n djgg==", "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=mKgBcMPttK8Qdg4IjIRLX9NKWi8Tz/pmkmjmSL5x5G0=;\n b=lS+dZGbQ4IBFyK5TcthE+H/tkrKsKGELzUGj813gCaqvKduWGhul/bZjM8jvMeyPCF\n KPnSlIs/0GB4r25q9cfazHYxd92R5uxtOjnc6JVdRaYj3TUJHJaT3kRhe5e2fuqqcBYI\n NZZStTGYF1vOk1k4Y4H6MPxV52/GLrwR1ZsQacJ5CZksfYfi2l/YZxLPmTgRAUUsvvk4\n 5mlXmRAbzmOV5gvssgIa+1kzTYxGVq1VXGtIsydIC7t5KMXAKrx/dfJuzuttkdwwwvAU\n 3KV2lLlLdAJYF+BYHHnG163budeXSI2od6IK1EhYkXSfFa5KleN805pg9H9gw7pZsrlG\n O0+g==", "X-Gm-Message-State": "AOAM533lXgqoPM2RFHjXGdiKy+j8z6aoZMW/CIdBEzs/KvmrfRk26X/F\n pi3D5rGnlFe20HFvYSWNOjY=", "X-Google-Smtp-Source": "\n ABdhPJwi4/cumqy/VvQ0TlxgHNa+pYn2ryrzEBb3KgC083Bmn3Z567MJtdBmp/5gwtL7AwQXhS1T5w==", "X-Received": "by 2002:a05:6402:5107:: with SMTP id\n m7mr1881737edd.155.1614245011435;\n Thu, 25 Feb 2021 01:23:31 -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 01/38] pci: fsl_pci_init: Dynamically allocate the PCI\n regions", "Date": "Thu, 25 Feb 2021 17:22:22 +0800", "Message-Id": "<1614244979-48216-2-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": "Commit e002474158d1 (\"pci: pci-uclass: Dynamically allocate the PCI regions\")\nchanges 'struct pci_controller'.regions from pre-allocated array of\nregions to dynamically allocated, which unfortunately broken lots of\nboards that still use the non-DM PCI driver.\n\nThis patch changes the non-DM fsl_pci_init driver to dynamically\nallocate the regions, just like what's done in the pci uclass driver.\n\nFixes: e002474158d1 (\"pci: pci-uclass: Dynamically allocate the PCI regions\")\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n\n---\n\n(no changes since v2)\n\nChanges in v2:\n- drop the revert patch of commit e002474158d1\n- new patch: pci: fsl_pci_init: Dynamically allocate the PCI regions\n\n drivers/pci/fsl_pci_init.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c\nindex e72a60c..fc3327e 100644\n--- a/drivers/pci/fsl_pci_init.c\n+++ b/drivers/pci/fsl_pci_init.c\n@@ -32,6 +32,8 @@ DECLARE_GLOBAL_DATA_PTR;\n #include <asm/io.h>\n #include <asm/fsl_pci.h>\n \n+#define MAX_PCI_REGIONS 7\n+\n #ifndef CONFIG_SYS_PCI_MEMORY_BUS\n #define CONFIG_SYS_PCI_MEMORY_BUS 0\n #endif\n@@ -80,6 +82,9 @@ int fsl_setup_hose(struct pci_controller *hose, unsigned long addr)\n \t/* Reset hose to make sure its in a clean state */\n \tmemset(hose, 0, sizeof(struct pci_controller));\n \n+\those->regions = (struct pci_region *)\n+\t\tcalloc(1, MAX_PCI_REGIONS * sizeof(struct pci_region));\n+\n \tpci_setup_indirect(hose, (u32)&pci->cfg_addr, (u32)&pci->cfg_data);\n \n \treturn fsl_is_pci_agent(hose);\n", "prefixes": [ "v3", "01/38" ] }