Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/803833/?format=api
{ "id": 803833, "url": "http://patchwork.ozlabs.org/api/patches/803833/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/1503286614-17670-4-git-send-email-jun.gao@mediatek.com/", "project": { "id": 35, "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api", "name": "Linux I2C development", "link_name": "linux-i2c", "list_id": "linux-i2c.vger.kernel.org", "list_email": "linux-i2c@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1503286614-17670-4-git-send-email-jun.gao@mediatek.com>", "list_archive_url": null, "date": "2017-08-21T03:36:54", "name": "[v4,3/3] i2c: mediatek: Add i2c compatible for MediaTek MT7622", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "f040247af376da25310b1796dafe9b45b64c9af5", "submitter": { "id": 70804, "url": "http://patchwork.ozlabs.org/api/people/70804/?format=api", "name": "Jun Gao", "email": "jun.gao@mediatek.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/1503286614-17670-4-git-send-email-jun.gao@mediatek.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/803833/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/803833/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-i2c-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xbKBc2HKCz9s2G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 21 Aug 2017 13:37:28 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751788AbdHUDhK (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tSun, 20 Aug 2017 23:37:10 -0400", "from mailgw02.mediatek.com ([210.61.82.184]:26424 \"EHLO\n\tmailgw02.mediatek.com\" rhost-flags-OK-FAIL-OK-FAIL) by\n\tvger.kernel.org with ESMTP id S1751607AbdHUDhH (ORCPT\n\t<rfc822; linux-i2c@vger.kernel.org>); Sun, 20 Aug 2017 23:37:07 -0400", "from mtkexhb01.mediatek.inc [(172.21.101.102)] by\n\tmailgw02.mediatek.com (envelope-from <jun.gao@mediatek.com>)\n\t(mhqrelay.mediatek.com ESMTP with TLS)\n\twith ESMTP id 1683635290; Mon, 21 Aug 2017 11:37:04 +0800", "from mtkcas09.mediatek.inc (172.21.101.178) by\n\tmtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server\n\t(TLS) id 15.0.1210.3; Mon, 21 Aug 2017 11:37:03 +0800", "from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc\n\t(172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via\n\tFrontend Transport; Mon, 21 Aug 2017 11:37:02 +0800" ], "From": "Jun Gao <jun.gao@mediatek.com>", "To": "Wolfram Sang <wsa@the-dreams.de>,\n\tMatthias Brugger <matthias.bgg@gmail.com>", "CC": "<srv_heupstream@mediatek.com>, <devicetree@vger.kernel.org>,\n\t<linux-i2c@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>,\n\t<linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>,\n\tJun Gao <jun.gao@mediatek.com>", "Subject": "[PATCH v4 3/3] i2c: mediatek: Add i2c compatible for MediaTek MT7622", "Date": "Mon, 21 Aug 2017 11:36:54 +0800", "Message-ID": "<1503286614-17670-4-git-send-email-jun.gao@mediatek.com>", "X-Mailer": "git-send-email 1.8.1.1.dirty", "In-Reply-To": "<1503286614-17670-1-git-send-email-jun.gao@mediatek.com>", "References": "<1503286614-17670-1-git-send-email-jun.gao@mediatek.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-MTK": "N", "Sender": "linux-i2c-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-i2c.vger.kernel.org>", "X-Mailing-List": "linux-i2c@vger.kernel.org" }, "content": "From: Jun Gao <jun.gao@mediatek.com>\n\nAdd i2c compatible for MT7622. Compare to MT8173 i2c controller,\nMT7622 limits message numbers to 255, and does not support 4GB\nDMA mode.\n\nSigned-off-by: Jun Gao <jun.gao@mediatek.com>\nReviewed-by: Yingjoe Chen <yingjoe.chen@mediatek.com>\n---\n drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)", "diff": "diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c\nindex 9bedf0b..09d288c 100644\n--- a/drivers/i2c/busses/i2c-mt65xx.c\n+++ b/drivers/i2c/busses/i2c-mt65xx.c\n@@ -172,6 +172,10 @@ struct mtk_i2c {\n \t.max_comb_2nd_msg_len = 31,\n };\n \n+static const struct i2c_adapter_quirks mt7622_i2c_quirks = {\n+\t.max_num_msgs = 255,\n+};\n+\n static const struct mtk_i2c_compatible mt6577_compat = {\n \t.quirks = &mt6577_i2c_quirks,\n \t.pmic_i2c = 0,\n@@ -190,6 +194,15 @@ struct mtk_i2c {\n \t.support_33bits = 0,\n };\n \n+static const struct mtk_i2c_compatible mt7622_compat = {\n+\t.quirks = &mt7622_i2c_quirks,\n+\t.pmic_i2c = 0,\n+\t.dcm = 1,\n+\t.auto_restart = 1,\n+\t.aux_len_reg = 1,\n+\t.support_33bits = 0,\n+};\n+\n static const struct mtk_i2c_compatible mt8173_compat = {\n \t.pmic_i2c = 0,\n \t.dcm = 1,\n@@ -201,6 +214,7 @@ struct mtk_i2c {\n static const struct of_device_id mtk_i2c_of_match[] = {\n \t{ .compatible = \"mediatek,mt6577-i2c\", .data = &mt6577_compat },\n \t{ .compatible = \"mediatek,mt6589-i2c\", .data = &mt6589_compat },\n+\t{ .compatible = \"mediatek,mt7622-i2c\", .data = &mt7622_compat },\n \t{ .compatible = \"mediatek,mt8173-i2c\", .data = &mt8173_compat },\n \t{}\n };\n", "prefixes": [ "v4", "3/3" ] }