Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/810223/?format=api
{ "id": 810223, "url": "http://patchwork.ozlabs.org/api/1.2/patches/810223/?format=api", "web_url": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170905164221.11266-11-hdegoede@redhat.com/", "project": { "id": 37, "url": "http://patchwork.ozlabs.org/api/1.2/projects/37/?format=api", "name": "Devicetree Bindings", "link_name": "devicetree-bindings", "list_id": "devicetree.vger.kernel.org", "list_email": "devicetree@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170905164221.11266-11-hdegoede@redhat.com>", "list_archive_url": null, "date": "2017-09-05T16:42:20", "name": "[v2,10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "fd2f3909b996fa69eff5d008f2ef71ab17abfd1b", "submitter": { "id": 1893, "url": "http://patchwork.ozlabs.org/api/1.2/people/1893/?format=api", "name": "Hans de Goede", "email": "hdegoede@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/devicetree-bindings/patch/20170905164221.11266-11-hdegoede@redhat.com/mbox/", "series": [ { "id": 1609, "url": "http://patchwork.ozlabs.org/api/1.2/series/1609/?format=api", "web_url": "http://patchwork.ozlabs.org/project/devicetree-bindings/list/?series=1609", "date": "2017-09-05T16:42:20", "name": null, "version": 2, "mbox": "http://patchwork.ozlabs.org/series/1609/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810223/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810223/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<devicetree-owner@vger.kernel.org>", "X-Original-To": "incoming-dt@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming-dt@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=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)", "ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com", "ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=hdegoede@redhat.com" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmsx71Yp0z9sD9\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 02:43:55 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752467AbdIEQnU (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 5 Sep 2017 12:43:20 -0400", "from mx1.redhat.com ([209.132.183.28]:38178 \"EHLO mx1.redhat.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752448AbdIEQnS (ORCPT <rfc822;devicetree@vger.kernel.org>);\n\tTue, 5 Sep 2017 12:43:18 -0400", "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 9C41F2C9748;\n\tTue, 5 Sep 2017 16:43:17 +0000 (UTC)", "from dhcp-45-79.space.revspace.nl.com (ovpn-112-20.ams2.redhat.com\n\t[10.36.112.20])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 0B21984D92;\n\tTue, 5 Sep 2017 16:43:12 +0000 (UTC)" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 9C41F2C9748", "From": "Hans de Goede <hdegoede@redhat.com>", "To": "MyungJoo Ham <myungjoo.ham@samsung.com>,\n\tChanwoo Choi <cw00.choi@samsung.com>,\n\tGuenter Roeck <linux@roeck-us.net>, \n\tHeikki Krogerus <heikki.krogerus@linux.intel.com>,\n\tDarren Hart <dvhart@infradead.org>,\n\tAndy Shevchenko <andy@infradead.org>, \n\tPeter Rosin <peda@axentia.se>, Mathias Nyman <mathias.nyman@intel.com>", "Cc": "Hans de Goede <hdegoede@redhat.com>, linux-kernel@vger.kernel.org,\n\tplatform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org,\n\tKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>, \n\tSathyanarayanan Kuppuswamy Natarajan <sathyaosid@gmail.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tlinux-usb@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,\n\tMark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org", "Subject": "[PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using\n\ttcpc_gen_mux support", "Date": "Tue, 5 Sep 2017 18:42:20 +0200", "Message-Id": "<20170905164221.11266-11-hdegoede@redhat.com>", "In-Reply-To": "<20170905164221.11266-1-hdegoede@redhat.com>", "References": "<20170905164221.11266-1-hdegoede@redhat.com>", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.29]); Tue, 05 Sep 2017 16:43:17 +0000 (UTC)", "Sender": "devicetree-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<devicetree.vger.kernel.org>", "X-Mailing-List": "devicetree@vger.kernel.org" }, "content": "Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create()\nto let the generic tcpc_mux_dev code create a tcpc_mux_dev for us.\n\nAlso document the mux-names used by the generic tcpc_mux_dev code in\nour devicetree bindings.\n\nCc: Rob Herring <robh+dt@kernel.org>\nCc: Mark Rutland <mark.rutland@arm.com>\nCc: devicetree@vger.kernel.org\nSigned-off-by: Hans de Goede <hdegoede@redhat.com>\n---\n Documentation/devicetree/bindings/usb/fcs,fusb302.txt | 3 +++\n drivers/staging/typec/fusb302/fusb302.c | 11 ++++++++++-\n 2 files changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt\nindex 472facfa5a71..63d639eadacd 100644\n--- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt\n+++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt\n@@ -6,6 +6,9 @@ Required properties :\n - interrupts : Interrupt specifier\n \n Optional properties :\n+- mux-controls : List of mux-ctrl-specifiers containing 1 or 2 muxes\n+- mux-names : \"type-c-mode-mux\" when using 1 mux, or\n+ \"type-c-mode-mux\", \"usb-role-mux\" when using 2 muxes\n - fcs,max-sink-microvolt : Maximum voltage to negotiate when configured as sink\n - fcs,max-sink-microamp : Maximum current to negotiate when configured as sink\n - fcs,max-sink-microwatt : Maximum power to negotiate when configured as sink\ndiff --git a/drivers/staging/typec/fusb302/fusb302.c b/drivers/staging/typec/fusb302/fusb302.c\nindex cf6355f59cd9..00d045d0246b 100644\n--- a/drivers/staging/typec/fusb302/fusb302.c\n+++ b/drivers/staging/typec/fusb302/fusb302.c\n@@ -1259,7 +1259,6 @@ static void init_tcpc_dev(struct tcpc_dev *fusb302_tcpc_dev)\n \tfusb302_tcpc_dev->set_roles = tcpm_set_roles;\n \tfusb302_tcpc_dev->start_drp_toggling = tcpm_start_drp_toggling;\n \tfusb302_tcpc_dev->pd_transmit = tcpm_pd_transmit;\n-\tfusb302_tcpc_dev->mux = NULL;\n }\n \n static const char * const cc_polarity_name[] = {\n@@ -1817,6 +1816,16 @@ static int fusb302_probe(struct i2c_client *client,\n \t\t\treturn -EPROBE_DEFER;\n \t}\n \n+\tchip->tcpc_dev.mux = devm_tcpc_gen_mux_create(dev);\n+\tif (IS_ERR(chip->tcpc_dev.mux)) {\n+\t\tret = PTR_ERR(chip->tcpc_dev.mux);\n+\t\t/* Use of a mux is optional (for now?), ignore -ENODEV errors */\n+\t\tif (ret == -ENODEV)\n+\t\t\tchip->tcpc_dev.mux = NULL;\n+\t\telse\n+\t\t\treturn ret;\n+\t}\n+\n \tcfg.drv_data = chip;\n \tchip->psy = devm_power_supply_register(dev, &fusb302_psy_desc, &cfg);\n \tif (IS_ERR(chip->psy)) {\n", "prefixes": [ "v2", "10/11" ] }