{"id":814757,"url":"http://patchwork.ozlabs.org/api/1.2/patches/814757/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170918032145.25349-1-anarsoul@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","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":"<20170918032145.25349-1-anarsoul@gmail.com>","list_archive_url":null,"date":"2017-09-18T03:21:41","name":"[U-Boot,1/5] dm: video: bridge: add operation to read EDID","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"7196ffb392e0383a12819fce087888eabc426b82","submitter":{"id":6930,"url":"http://patchwork.ozlabs.org/api/1.2/people/6930/?format=json","name":"Vasily Khoruzhick","email":"anarsoul@gmail.com"},"delegate":{"id":1700,"url":"http://patchwork.ozlabs.org/api/1.2/users/1700/?format=json","username":"ag","first_name":"Anatolij","last_name":"Gustschin","email":"agust@denx.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170918032145.25349-1-anarsoul@gmail.com/mbox/","series":[{"id":3555,"url":"http://patchwork.ozlabs.org/api/1.2/series/3555/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3555","date":"2017-09-18T03:21:41","name":"[U-Boot,1/5] dm: video: bridge: add operation to read EDID","version":1,"mbox":"http://patchwork.ozlabs.org/series/3555/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814757/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814757/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=\"tPU4nnCB\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwWX34FKvz9ryr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 13:22:10 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 814FCC21EDB; Mon, 18 Sep 2017 03:22:02 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 50249C21D19;\n\tMon, 18 Sep 2017 03:21:59 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 0E3D5C21D19; Mon, 18 Sep 2017 03:21:56 +0000 (UTC)","from mail-pf0-f193.google.com (mail-pf0-f193.google.com\n\t[209.85.192.193])\n\tby lists.denx.de (Postfix) with ESMTPS id A59DBC21C62\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 03:21:55 +0000 (UTC)","by mail-pf0-f193.google.com with SMTP id f84so4047568pfj.3\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 20:21:55 -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\t5sm11500606pfr.151.2017.09.17.20.21.52\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 20:21:53 -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:cc:subject:date:message-id;\n\tbh=A11LA8QqTtgJaYjcqwinjHuFwi+9Mchk01jUwBSGCio=;\n\tb=tPU4nnCBMd+1Wn0awxbvA9JbsHvmfsw+JUX0rPVdxLcPDio1c3dlkX3i/LeeWwXDrN\n\tmTY8WsM3V4Ajf10chAJTPYQWVnDewl56dIAtX6kb0exdQVhLG3nEUaOvfQHYDlLra8BC\n\tRkYIkIXgqGqC1TJs4RTnyG1ZHMCGnmY509j95+9AtCmG7mUnM1R5Om3tnIGp0cUTdDqX\n\t/SFiMpOBr7iQ5AFL+q1QLmQemarbUKVnJr8luKbqL1FuLIwTqqq0qdA8tnn/r/i1AI/V\n\tYkIYvXh2wyk+3p7kxCjnbkdlpRVGciR5uJste1J+zqXJM1aKPkK//tnHDHljgXQUBN5D\n\tCeOw==","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;\n\tbh=A11LA8QqTtgJaYjcqwinjHuFwi+9Mchk01jUwBSGCio=;\n\tb=WK8zTa5OlebfcRKfoWR8BnHjim/lwMpxMtQErEKfcGpaidM4gsoDWqsGH8rj05SSEb\n\tKXj1WcjPHnl+0+T4tcmpPwATqzAxTPyBahxEuMtjSiwXPIhv627rFQVSfXFKHjblNKQp\n\texjquwh4U9bGObLPMEOOXpXXyVNGhcftA1ozqjeqhUzqEs1T8bfmdY2Da23tq27PzMcq\n\tIAnMIm01nlFGuHxi+bUAHg+SSXhyWnW+ZoKtR7QfKozX/MEFjAbCSNn9adQ72WJSekJv\n\tc9sZAkNlryLaFJVb30lK9f8YXu0G0EEi/0u+FYnjbFkWRU6vLALQK5jEDCaIYGa0srCH\n\tL+kQ==","X-Gm-Message-State":"AHPjjUgluLJiYXcRIRSEaf6GRwhU75sVMiUA0JrSe8ULqLg7mVn7e+PQ\n\tJb8WveAgYi2OpO9YYrU=","X-Google-Smtp-Source":"ADKCNb4PJp8b/QLM0Hfj8ocirBSyfZ0RAy8c1GHbIWj7lfawSmN9pIZiL8uKUPB4l5HHByUHWiWizg==","X-Received":"by 10.98.34.85 with SMTP id i82mr26695405pfi.111.1505704914175; \n\tSun, 17 Sep 2017 20:21:54 -0700 (PDT)","From":"Vasily Khoruzhick <anarsoul@gmail.com>","To":"u-boot@lists.denx.de,\n\tjernej.skrabec@siol.net,\n\ticenowy@aosc.io","Date":"Sun, 17 Sep 2017 20:21:41 -0700","Message-Id":"<20170918032145.25349-1-anarsoul@gmail.com>","X-Mailer":"git-send-email 2.14.1","Subject":"[U-Boot] [PATCH 1/5] dm: video: bridge: add operation to read EDID","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":"Bridge may have ability to read EDID from panel that is connected to it,\nso add an operation to read EDID.\n\nSigned-off-by: Vasily Khoruzhick <anarsoul@gmail.com>\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","1/5"]}