Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109689/?format=api
{ "id": 109689, "url": "http://patchwork.ozlabs.org/api/patches/109689/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1313097765-3206-1-git-send-email-agnel.joel@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": "<1313097765-3206-1-git-send-email-agnel.joel@gmail.com>", "list_archive_url": null, "date": "2011-08-11T21:22:45", "name": "[U-Boot,v4] USB: Add align(4) in __attribute__ ((packed)) for struct ehci_hccr and ehci_hcor", "commit_ref": null, "pull_url": null, "state": "awaiting-upstream", "archived": false, "hash": "4f6a49525f76f23eb7a21fc54b47ebf82bfd2fc0", "submitter": { "id": 8387, "url": "http://patchwork.ozlabs.org/api/people/8387/?format=api", "name": "Joel Fernandes", "email": "agnel.joel@gmail.com" }, "delegate": { "id": 1709, "url": "http://patchwork.ozlabs.org/api/users/1709/?format=api", "username": "rbohmer", "first_name": "Remy", "last_name": "Bohmer", "email": "linux@bohmer.net" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1313097765-3206-1-git-send-email-agnel.joel@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/109689/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/109689/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", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 21ECAB6F77\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 12 Aug 2011 07:23:04 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 8615528244;\n\tThu, 11 Aug 2011 23:23:02 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id vUNBZtu1Oiou; Thu, 11 Aug 2011 23:23:02 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 9B29028227;\n\tThu, 11 Aug 2011 23:22:59 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 0C5D528227\n\tfor <u-boot@lists.denx.de>; Thu, 11 Aug 2011 23:22:57 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id MtUplBKfSyix for <u-boot@lists.denx.de>;\n\tThu, 11 Aug 2011 23:22:55 +0200 (CEST)", "from mail-yx0-f172.google.com (mail-yx0-f172.google.com\n\t[209.85.213.172])\n\tby theia.denx.de (Postfix) with ESMTPS id 8C5CE2821A\n\tfor <u-boot@lists.denx.de>; Thu, 11 Aug 2011 23:22:53 +0200 (CEST)", "by yxp4 with SMTP id 4so1556028yxp.3\n\tfor <u-boot@lists.denx.de>; Thu, 11 Aug 2011 14:22:52 -0700 (PDT)", "by 10.236.184.233 with SMTP id s69mr451095yhm.94.1313097772741;\n\tThu, 11 Aug 2011 14:22:52 -0700 (PDT)", "from localhost.localdomain (cpe-76-184-244-226.tx.res.rr.com\n\t[76.184.244.226]) by mx.google.com with ESMTPS id\n\ts62sm2616671yhn.61.2011.08.11.14.22.50\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tThu, 11 Aug 2011 14:22:52 -0700 (PDT)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "From": "Joel A Fernandes <agnel.joel@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Thu, 11 Aug 2011 16:22:45 -0500", "Message-Id": "<1313097765-3206-1-git-send-email-agnel.joel@gmail.com>", "X-Mailer": "git-send-email 1.7.1", "Cc": "Syed Mohammed Khasim <khasim@ti.com>, k-kooi@ti.com, jdk@ti.com", "Subject": "[U-Boot] [PATCH v4] USB: Add align(4) in __attribute__ ((packed))\n\tfor struct ehci_hccr and ehci_hcor", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.9", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "From: Jason Kridner <jkridner@beagleboard.org>\n\nSwitched to align(4) to prevent byte access to soc registers in some gcc versions.\n\nCredits have to go to Laine Walker-Avina <lwalkera@ieee.org> for finding the problem.\n\nSigned-off-by: Jason Kridner <jkridner@beagleboard.org>\nSigned-off-by: Joel A Fernandes <agnel.joel@gmail.com>\nCc: Koen Kooi <k-kooi@ti.com>\nCc: Alexander Holler <holler@ahsoftware.de>\nCc: Sandeep Paulraj <s-paulraj@ti.com>\nCc: Igor Grinberg <grinberg@compulab.co.il>\n---\nChanges for v2:\n* Original and v2 were provided by Alexander Holler.\n* v1 was http://patchwork.ozlabs.org/patch/89358/\n* v2 was http://patchwork.ozlabs.org/patch/89362/\n\nChanges for v3:\n* Switched to align(4), rather than remove the attribute, per suggestion\n from Alexander.\n\nChanges for v4:\n* Modified commit summary and title to be more accurate\n\n drivers/usb/host/ehci.h | 4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h\nindex 945ab64..3d0ad0c 100644\n--- a/drivers/usb/host/ehci.h\n+++ b/drivers/usb/host/ehci.h\n@@ -55,7 +55,7 @@ struct ehci_hccr {\n #define HCS_N_PORTS(p)\t\t(((p) >> 0) & 0xf)\n \tuint32_t cr_hccparams;\n \tuint8_t cr_hcsp_portrt[8];\n-} __attribute__ ((packed));\n+} __attribute__ ((packed, aligned(4)));\n \n struct ehci_hcor {\n \tuint32_t or_usbcmd;\n@@ -85,7 +85,7 @@ struct ehci_hcor {\n #define FLAG_CF\t\t(1 << 0)\t/* true: we'll support \"high speed\" */\n \tuint32_t or_portsc[CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS];\n \tuint32_t or_systune;\n-} __attribute__ ((packed));\n+} __attribute__ ((packed, aligned(4)));\n \n #define USBMODE\t\t0x68\t\t/* USB Device mode */\n #define USBMODE_SDIS\t(1 << 3)\t/* Stream disable */\n", "prefixes": [ "U-Boot", "v4" ] }