Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/811004/?format=api
{ "id": 811004, "url": "http://patchwork.ozlabs.org/api/1.2/patches/811004/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504790001-24715-1-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-1-git-send-email-bmeng.cn@gmail.com>", "list_archive_url": null, "date": "2017-09-07T13:13:17", "name": "[U-Boot,1/5] dm: usb: Add a new USB controller operation 'get_max_xfer_size'", "commit_ref": "3e59f59015e39ceb870fa8a7a12e0464e775512b", "pull_url": null, "state": "accepted", "archived": false, "hash": "63072a08bec384776697e62f7d027a80082d8a83", "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-1-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/811004/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811004/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=\"pvlocS4i\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xp14T0LzGz9s7h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 7 Sep 2017 23:09:11 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 98D1EC21EC4; Thu, 7 Sep 2017 13:09:04 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 27B76C21D5B;\n\tThu, 7 Sep 2017 13:09:02 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 5D2D4C21D5B; Thu, 7 Sep 2017 13:09:00 +0000 (UTC)", "from mail-io0-f196.google.com (mail-io0-f196.google.com\n\t[209.85.223.196])\n\tby lists.denx.de (Postfix) with ESMTPS id B0FA0C21C73\n\tfor <u-boot@lists.denx.de>; Thu, 7 Sep 2017 13:08:59 +0000 (UTC)", "by mail-io0-f196.google.com with SMTP id b142so850298ioe.1\n\tfor <u-boot@lists.denx.de>; Thu, 07 Sep 2017 06:08:59 -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.08.56\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 07 Sep 2017 06:08:57 -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;\n\tbh=CfaWzn7qooAIvR+QZRQNYQI9DcLUEiLwC0xCAKyekRw=;\n\tb=pvlocS4iAtuvqrD+KFPrpdRrSJGzX1KcJ9qCU5mNYdYjGkzw2YodlWZgLsBcslJ1+2\n\t1D2M2qiMtWTQ0I0L2orjCQ/qYIdIcXv49iCJwNu09MmSsa1B7TIdu6MexcgB5XUISs4B\n\t5c054P9set+T47kLs3ga1AF66lUyskGTHxFX4rjR8OjyGOgdA301oJ4k3zsLw6hLSpUK\n\tXmGIwU5qv4GNB6IsxnhW9QADvZlfJD0YO/vxMKCBVfZ/DUohIHKD9912X257mWv9QqT2\n\tbLTF7rBAEYm/KIvUmFyNJDNOZGE2QiBDsVUkyMA7P6yd1JLJHdJVOY2Jh9IqdRd6z7SH\n\tWnAQ==", "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;\n\tbh=CfaWzn7qooAIvR+QZRQNYQI9DcLUEiLwC0xCAKyekRw=;\n\tb=iy5BWpn+TZ79c0R2Om8Ad5u1VULZPsGT40OSPT0frsImniZgqE/RErcTBMXVstk2gA\n\tIYmC8nToX22LnhO2lFQ/rAmtBZiLTgHHkuI9zF5wgiIjEiEX6pGsJ263Mb0H+qahp9pM\n\tIz19aQTxRc6hpB5tGHIkfD9PaH/yGbYdJcLx4f2WR7UoR8pOaADeQVkGNsg+EEp+2RKQ\n\tH5uzXnc/RPMOZGmC2etft+0/uQOx6eJ0ncRs/E4AU4/Ieopp/cG4KtHbZlB1rszQzgyV\n\tEe0vX8u+CDwumIPi/k5ZXbanM9M/Oc6l8YJtE0xTdvrlLXlKgOBQEljCxpb5MLbQbWFr\n\t58TA==", "X-Gm-Message-State": "AHPjjUjAtyiYOfWmtf9D6rXjBCaI7pAqydZrtUGUu2zw+VzVZKC7zl5Y\n\tm/ouCmC4rBaHIA==", "X-Google-Smtp-Source": "AOwi7QDvTipcQAtRrAAlfeSyn0UDgKvOhZcoiqX3LFOcb6bhC8uhPKNJTB+iRCBIfYXTKaA1cpknWw==", "X-Received": "by 10.107.132.204 with SMTP id o73mr3286951ioi.89.1504789738267; \n\tThu, 07 Sep 2017 06:08:58 -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:17 -0700", "Message-Id": "<1504790001-24715-1-git-send-email-bmeng.cn@gmail.com>", "X-Mailer": "git-send-email 1.7.9.5", "Subject": "[U-Boot] [PATCH 1/5] dm: usb: Add a new USB controller operation\n\t'get_max_xfer_size'", "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": "The HCD may have limitation on the maximum bytes to be transferred\nin a USB transfer. USB class driver needs to be aware of this.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n drivers/usb/host/usb-uclass.c | 11 +++++++++++\n include/usb.h | 22 +++++++++++++++++++++-\n 2 files changed, 32 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c\nindex 0b8a501..bc44fc3 100644\n--- a/drivers/usb/host/usb-uclass.c\n+++ b/drivers/usb/host/usb-uclass.c\n@@ -150,6 +150,17 @@ int usb_update_hub_device(struct usb_device *udev)\n \treturn ops->update_hub_device(bus, udev);\n }\n \n+int usb_get_max_xfer_size(struct usb_device *udev, size_t *size)\n+{\n+\tstruct udevice *bus = udev->controller_dev;\n+\tstruct dm_usb_ops *ops = usb_get_ops(bus);\n+\n+\tif (!ops->get_max_xfer_size)\n+\t\treturn -ENOSYS;\n+\n+\treturn ops->get_max_xfer_size(bus, size);\n+}\n+\n int usb_stop(void)\n {\n \tstruct udevice *bus;\ndiff --git a/include/usb.h b/include/usb.h\nindex fad0401..0ddc082 100644\n--- a/include/usb.h\n+++ b/include/usb.h\n@@ -766,6 +766,14 @@ struct dm_usb_ops {\n \t * representation of this hub can be updated (xHCI)\n \t */\n \tint (*update_hub_device)(struct udevice *bus, struct usb_device *udev);\n+\n+\t/**\n+\t * get_max_xfer_size() - Get HCD's maximum transfer bytes\n+\t *\n+\t * The HCD may have limitation on the maximum bytes to be transferred\n+\t * in a USB transfer. USB class driver needs to be aware of this.\n+\t */\n+\tint (*get_max_xfer_size)(struct udevice *bus, size_t *size);\n };\n \n #define usb_get_ops(dev)\t((struct dm_usb_ops *)(dev)->driver->ops)\n@@ -939,7 +947,7 @@ int usb_new_device(struct usb_device *dev);\n int usb_alloc_device(struct usb_device *dev);\n \n /**\n- * update_hub_device() - Update HCD's internal representation of hub\n+ * usb_update_hub_device() - Update HCD's internal representation of hub\n *\n * After a hub descriptor is fetched, notify HCD so that its internal\n * representation of this hub can be updated.\n@@ -950,6 +958,18 @@ int usb_alloc_device(struct usb_device *dev);\n int usb_update_hub_device(struct usb_device *dev);\n \n /**\n+ * usb_get_max_xfer_size() - Get HCD's maximum transfer bytes\n+ *\n+ * The HCD may have limitation on the maximum bytes to be transferred\n+ * in a USB transfer. USB class driver needs to be aware of this.\n+ *\n+ * @dev:\t\tUSB device\n+ * @size:\t\tmaximum transfer bytes\n+ * @return 0 if OK, -ve on error\n+ */\n+int usb_get_max_xfer_size(struct usb_device *dev, size_t *size);\n+\n+/**\n * usb_emul_setup_device() - Set up a new USB device emulation\n *\n * This is normally called when a new emulation device is bound. It tells\n", "prefixes": [ "U-Boot", "1/5" ] }