Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/811006/?format=api
{ "id": 811006, "url": "http://patchwork.ozlabs.org/api/1.2/patches/811006/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504790001-24715-3-git-send-email-bmeng.cn@gmail.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<1504790001-24715-3-git-send-email-bmeng.cn@gmail.com>", "list_archive_url": null, "date": "2017-09-07T13:13:19", "name": "[U-Boot,3/5] dm: usb: ehci: Implement get_max_xfer_size() operation", "commit_ref": "a23aa66baa3725e8707da46b18c645ad1a7243a0", "pull_url": null, "state": "accepted", "archived": false, "hash": "dc31f9ad9524ff091b43f7b98fe1d37820a9be6b", "submitter": { "id": 64981, "url": "http://patchwork.ozlabs.org/api/1.2/people/64981/?format=api", "name": "Bin Meng", "email": "bmeng.cn@gmail.com" }, "delegate": { "id": 1699, "url": "http://patchwork.ozlabs.org/api/1.2/users/1699/?format=api", "username": "marex", "first_name": "Marek", "last_name": "Vasut", "email": "marek.vasut@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504790001-24715-3-git-send-email-bmeng.cn@gmail.com/mbox/", "series": [ { "id": 1998, "url": "http://patchwork.ozlabs.org/api/1.2/series/1998/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1998", "date": "2017-09-07T13:13:17", "name": "[U-Boot,1/5] dm: usb: Add a new USB controller operation 'get_max_xfer_size'", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1998/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811006/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811006/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\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MuN5bL5q\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xp16D0LJnz9sNd\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 7 Sep 2017 23:10:43 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid AB749C21E6C; Thu, 7 Sep 2017 13:09:36 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 36F2AC21DDE;\n\tThu, 7 Sep 2017 13:09:19 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 11FCEC21D88; Thu, 7 Sep 2017 13:09:06 +0000 (UTC)", "from mail-io0-f193.google.com (mail-io0-f193.google.com\n\t[209.85.223.193])\n\tby lists.denx.de (Postfix) with ESMTPS id AF799C21DCF\n\tfor <u-boot@lists.denx.de>; Thu, 7 Sep 2017 13:09:02 +0000 (UTC)", "by mail-io0-f193.google.com with SMTP id c69so853944ioe.2\n\tfor <u-boot@lists.denx.de>; Thu, 07 Sep 2017 06:09:02 -0700 (PDT)", "from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139]) by smtp.gmail.com with ESMTPSA id\n\tw63sm1238554iof.18.2017.09.07.06.09.00\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 07 Sep 2017 06:09:00 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=iSlvM4NDjmT0aGZmCVpBIIlihVfrhGtEh2JMy0Or47Y=;\n\tb=MuN5bL5q9o4uPvzG8N4CxCTiTcFBiynKZMcxEHLT8OEt8nBFjrO3W10TtTjACV+J0J\n\tEB6Y+sTSvigX1yxtljV4R9N/Goo3SHikTci2S0GIIyYb4SnJjzhsLdNmdYcsdBVGxJcN\n\tD/D29EGF3yeWkw0kTRj/w4rVViE89k7LrubHPg3qFjjvZFcTsVERPfk2kb36qyxgARMu\n\tA8ej6u8N13vn9C5VQ9Arx2SnX4675luL1UVqaHW7fXIbljSJYcDKgLnkjXeyDjOCDV00\n\tS8q82qc1zLSlkctFp11ysOUYnkJaXtiOkX3CTVv1bnx4FKJlCRn+vfO2oXtp+4lctIAI\n\tt1GQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=iSlvM4NDjmT0aGZmCVpBIIlihVfrhGtEh2JMy0Or47Y=;\n\tb=VYyhc46wouoI/QJl8FV0RqrlDt0uCZ/V6Jo9wZ36ub48xKN3U+wlZj4CaM2XbftSv4\n\tFGqQ67YRqCyF8fimA1RLo09oGZ67GOfdpf6hCqYhAdKufQeef3coq0cgCM72l1rgn4pb\n\tTuLqIdLA/JW1PUNPh/5K8pGp6SK69VrpPAKTQ4xrTXmbsdgZj1NK6SbJ/c5aNpzdDW/U\n\tJZCVa2TqrSLBvAc9I6+nqzZmjFqw+tVjObir6+IP+AueGHvfIvUG5jkA6P098XRTjYJW\n\tHgxE58w9o/jJeMPjAk9bIG+qUHx0nlwzao+AEn/WG60RwNxfxBJZGKzw+GdVND67tHUZ\n\t9TKg==", "X-Gm-Message-State": "AHPjjUg2IlkESHtHP4l+FpeXx56/gf8lsHivPLE/g17wVEtcozxrAflK\n\tEbw7upFxe9tNZQ==", "X-Google-Smtp-Source": "AOwi7QBepkeIouhcfoQ+4z/Rb70LL7cyUoOXXjpBntv9/8hRy/ALrWvRgLJDQZrGLyO4wxF7lQn1dA==", "X-Received": "by 10.107.39.131 with SMTP id n125mr2729941ion.310.1504789741680;\n\tThu, 07 Sep 2017 06:09:01 -0700 (PDT)", "From": "Bin Meng <bmeng.cn@gmail.com>", "To": "Marek Vasut <marex@denx.de>, Stefan Roese <sr@denx.de>,\n\tMasahiro Yamada <yamada.masahiro@socionext.com>,\n\tSimon Glass <sjg@chromium.org>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>", "Date": "Thu, 7 Sep 2017 06:13:19 -0700", "Message-Id": "<1504790001-24715-3-git-send-email-bmeng.cn@gmail.com>", "X-Mailer": "git-send-email 1.7.9.5", "In-Reply-To": "<1504790001-24715-1-git-send-email-bmeng.cn@gmail.com>", "References": "<1504790001-24715-1-git-send-email-bmeng.cn@gmail.com>", "Subject": "[U-Boot] [PATCH 3/5] dm: usb: ehci: Implement get_max_xfer_size()\n\toperation", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/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": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "EHCD can handle any transfer length as long as there is enough free\nheap space left, hence set the theoretical max number SIZE_MAX.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/usb/host/ehci-hcd.c | 12 ++++++++++++\n 1 file changed, 12 insertions(+)", "diff": "diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c\nindex 3243c1d..be3e842 100644\n--- a/drivers/usb/host/ehci-hcd.c\n+++ b/drivers/usb/host/ehci-hcd.c\n@@ -1596,6 +1596,17 @@ static int ehci_destroy_int_queue(struct udevice *dev, struct usb_device *udev,\n \treturn _ehci_destroy_int_queue(udev, queue);\n }\n \n+static int ehci_get_max_xfer_size(struct udevice *dev, size_t *size)\n+{\n+\t/*\n+\t * EHCD can handle any transfer length as long as there is enough\n+\t * free heap space left, hence set the theoretical max number here.\n+\t */\n+\t*size = SIZE_MAX;\n+\n+\treturn 0;\n+}\n+\n int ehci_register(struct udevice *dev, struct ehci_hccr *hccr,\n \t\t struct ehci_hcor *hcor, const struct ehci_ops *ops,\n \t\t uint tweaks, enum usb_init_type init)\n@@ -1658,6 +1669,7 @@ struct dm_usb_ops ehci_usb_ops = {\n \t.create_int_queue = ehci_create_int_queue,\n \t.poll_int_queue = ehci_poll_int_queue,\n \t.destroy_int_queue = ehci_destroy_int_queue,\n+\t.get_max_xfer_size = ehci_get_max_xfer_size,\n };\n \n #endif\n", "prefixes": [ "U-Boot", "3/5" ] }