Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816683/?format=api
{ "id": 816683, "url": "http://patchwork.ozlabs.org/api/patches/816683/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170921062911.26724-2-anarsoul@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": "<20170921062911.26724-2-anarsoul@gmail.com>", "list_archive_url": null, "date": "2017-09-21T06:29:07", "name": "[U-Boot,v2,1/5] dm: video: bridge: add operation to read EDID", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "7196ffb392e0383a12819fce087888eabc426b82", "submitter": { "id": 6930, "url": "http://patchwork.ozlabs.org/api/people/6930/?format=api", "name": "Vasily Khoruzhick", "email": "anarsoul@gmail.com" }, "delegate": { "id": 1700, "url": "http://patchwork.ozlabs.org/api/users/1700/?format=api", "username": "ag", "first_name": "Anatolij", "last_name": "Gustschin", "email": "agust@denx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170921062911.26724-2-anarsoul@gmail.com/mbox/", "series": [ { "id": 4307, "url": "http://patchwork.ozlabs.org/api/series/4307/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4307", "date": "2017-09-21T06:29:06", "name": "sunxi: video: add DE2 LCD and ANX6345 drivers", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/4307/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816683/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816683/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=\"ZvsYgtb9\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyRZr61yGz9t3m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 16:31:16 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 8EFF5C21EB4; Thu, 21 Sep 2017 06:30:05 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 897ABC21F22;\n\tThu, 21 Sep 2017 06:29:23 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 846AEC21D75; Thu, 21 Sep 2017 06:29:20 +0000 (UTC)", "from mail-pg0-f65.google.com (mail-pg0-f65.google.com\n\t[74.125.83.65])\n\tby lists.denx.de (Postfix) with ESMTPS id 4F234C21D75\n\tfor <u-boot@lists.denx.de>; Thu, 21 Sep 2017 06:29:18 +0000 (UTC)", "by mail-pg0-f65.google.com with SMTP id j16so2933469pga.2\n\tfor <u-boot@lists.denx.de>; Wed, 20 Sep 2017 23:29:18 -0700 (PDT)", "from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net.\n\t[216.71.193.140]) by smtp.gmail.com with ESMTPSA id\n\tf24sm1157511pfk.137.2017.09.20.23.29.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 23:29:16 -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_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_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:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Ks0pKoZlH3UgDl0+4Y87vSq+smY7JGW5VjL8hiBP+88=;\n\tb=ZvsYgtb9UatzuCxo3xJnhvHKcLg3BH+E66KoUe0avX2Wnv7FAqjmUV5JF+oI26TRUR\n\tBpjioMN83M/bBnuAmvqlL8RYbxLIX8B0SuikyEIrViZSisMUPEk4toWf7diq0tcgw2sP\n\tNdv9dJQBZjmK7WrdqJGy7+CrU0yhlvUMaP3Ll3vK4Ed50FSZRGyhy4BLbhkIBmPzHYrw\n\tG9TuifK0MZIg/mcz/Lyx6TmcLrHnVnKBVUFeMHp74SroTHiycVfgN1adz3Cw4fJqu/54\n\tNjyIE9bXTAuVv3j0Q7vfgBkC8ZOG+4ObTNxnTTY9c3Y1W1W8cnyELk7CkgFENXLh+dOf\n\tty/A==", "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:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Ks0pKoZlH3UgDl0+4Y87vSq+smY7JGW5VjL8hiBP+88=;\n\tb=smlIUNz5wDzCDdAlbq6JPEDCCUSfWk94F39cQNge7HA9vQp2sTN0rEDOdBLB5csh59\n\tkwMi9NTMDi5mivXdaQWUO4TILLrvSPy/gU99MHeZO4wOAq+FG8klbHB0xbkSsPvN2Z4G\n\tw450OQR0kEqUTVyZn5j74dfoYIN/hsNYO7OgTF8gAW3ziojpUyOtvC7Ei48pLe/vS32n\n\t3sd19mxSvuW0LNDLW1ZzXnnC8SSFytfluPuDq41mgWKw9Mp2AV8qbKePfGmnqmnaHSB3\n\tX0MvT4BFHlRc3GCkukvyfO+uU+gXtekPvYOaNXa57EZoanqLmCKEU59he6Gs/PD1YR25\n\tFtYw==", "X-Gm-Message-State": "AHPjjUjTaPlG/R7/plTwKHfw1i1uXquV/RyVtk/G/o3FkgiyEQn7eRbx\n\tUtiwgOnYSkoNWh27gCLlRDo=", "X-Google-Smtp-Source": "AOwi7QDcC4Bok1lP7EABGef/tZP9pnNZ9nQXNCdUj1tuLiqp7Q514QFCC4XKJIsgsU6vg1CqkIIEnw==", "X-Received": "by 10.99.67.193 with SMTP id q184mr4596452pga.56.1505975356997; \n\tWed, 20 Sep 2017 23:29:16 -0700 (PDT)", "From": "Vasily Khoruzhick <anarsoul@gmail.com>", "To": "Jagan Teki <jagan@openedev.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>,\n\tAnatolij Gustschin <agust@denx.de>,\n\tJernej Skrabec <jernej.skrabec@siol.net>, icenowy@aosc.io,\n\tu-boot@lists.denx.de", "Date": "Wed, 20 Sep 2017 23:29:07 -0700", "Message-Id": "<20170921062911.26724-2-anarsoul@gmail.com>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20170921062911.26724-1-anarsoul@gmail.com>", "References": "<20170921062911.26724-1-anarsoul@gmail.com>", "Subject": "[U-Boot] [PATCH v2 1/5] dm: video: bridge: add operation to read\n\tEDID", "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": "Add an operation to read EDID, since bridge may have ability to read\nEDID from the panel that is connected to it, for example LCD<->eDP bridge.\n\nSigned-off-by: Vasily Khoruzhick <anarsoul@gmail.com>\n---\nv2: - no changes\n\n drivers/video/bridge/video-bridge-uclass.c | 10 ++++++++++\n include/video_bridge.h | 20 ++++++++++++++++++++\n 2 files changed, 30 insertions(+)", "diff": "diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c\nindex 07270bac9e..79facd02a6 100644\n--- a/drivers/video/bridge/video-bridge-uclass.c\n+++ b/drivers/video/bridge/video-bridge-uclass.c\n@@ -8,6 +8,7 @@\n #include <common.h>\n #include <dm.h>\n #include <errno.h>\n+#include <edid.h>\n #include <video_bridge.h>\n \n int video_bridge_set_backlight(struct udevice *dev, int percent)\n@@ -45,6 +46,15 @@ int video_bridge_check_attached(struct udevice *dev)\n \treturn ops->check_attached(dev);\n }\n \n+int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size)\n+{\n+\tstruct video_bridge_ops *ops = video_bridge_get_ops(dev);\n+\n+\tif (!ops || !ops->read_edid)\n+\t\treturn -ENOSYS;\n+\treturn ops->read_edid(dev, buf, buf_size);\n+}\n+\n static int video_bridge_pre_probe(struct udevice *dev)\n {\n \tstruct video_bridge_priv *uc_priv = dev_get_uclass_priv(dev);\ndiff --git a/include/video_bridge.h b/include/video_bridge.h\nindex c7b8681849..0699a8dda8 100644\n--- a/include/video_bridge.h\n+++ b/include/video_bridge.h\n@@ -53,6 +53,16 @@ struct video_bridge_ops {\n \t * @return 0 if OK, -ve on error\n \t */\n \tint (*set_backlight)(struct udevice *dev, int percent);\n+\n+\t/**\n+\t * read_edid() - Read information from EDID\n+\t *\n+\t * @dev:\tDevice to read from\n+\t * @buf:\tBuffer to read into\n+\t * @buf_size:\tBuffer size\n+\t * @return number of bytes read, <=0 for error\n+\t */\n+\tint (*read_edid)(struct udevice *dev, u8 *buf, int buf_size);\n };\n \n #define video_bridge_get_ops(dev) \\\n@@ -89,4 +99,14 @@ int video_bridge_set_active(struct udevice *dev, bool active);\n */\n int video_bridge_check_attached(struct udevice *dev);\n \n+/**\n+ * video_bridge_read_edid() - Read information from EDID\n+ *\n+ * @dev:\tDevice to read from\n+ * @buf:\tBuffer to read into\n+ * @buf_size:\tBuffer size\n+ * @return number of bytes read, <=0 for error\n+ */\n+int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size);\n+\n #endif\n", "prefixes": [ "U-Boot", "v2", "1/5" ] }