From patchwork Tue Mar 15 08:38:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 8586311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AE5899F54C for ; Tue, 15 Mar 2016 08:54:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE503201EF for ; Tue, 15 Mar 2016 08:54:42 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09EF4201F5 for ; Tue, 15 Mar 2016 08:54:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1afkb1-0000Ft-SO; Tue, 15 Mar 2016 08:44:55 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1afkal-00005i-SM for linux-arm-kernel@lists.infradead.org; Tue, 15 Mar 2016 08:44:41 +0000 Received: by mail-pf0-x234.google.com with SMTP id n5so19921631pfn.2 for ; Tue, 15 Mar 2016 01:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ZSagWC1aXIitJOKDk+iUTNYA8EpRPfBGIt62+Y4xfMY=; b=YVZOP2BbCo6GpCFkpaEKkT1a4ve94FvKG+E/89u/aHO4DTq2uS7h8MHu3lQSZOVCYg evHT1wmPM5D8SMi5LSz/IMyvvgFvBhELcoulB2ckzfNIjG6LgH5Fwkb1RMHIZfyGabv0 iJ/3KonMBpGsLG8Bp/iwZiX+0E7kR7If9dxpcMrNnROjZgXHHcgqu9PL3bvUnRpzqbsJ 993Swaxh73577ZzLgG401pR6Nf1vzX5BJPjF7Y81sbbQWQHxW8sOSk4auo/DS3GRJ5SS FWE7639wIkDdAiu7/wDZUqoDQ4C4sgkcQAz7RM7xx3+paaJ02lbdcgm345hXCVFTHO9Z blFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ZSagWC1aXIitJOKDk+iUTNYA8EpRPfBGIt62+Y4xfMY=; b=V5sm4Zp0k1pRkLxMJYq5guFv1UYSByDKx5fDo9JzM/BAh2MFoDpHaFT6CNriVeKHad CBIiirkw+naMp2ppn5HhWbAQZfpBmAVJbN1k7cCfU5Gk1D06tP7tIInAgUjVE07Qa95e w9ntBrY6djRstZJOYG6fLl9taxsy+t3AjawDqijKdphaBxKGlsRZx0Q0Rt99BFPy1FQH 4BIRbxKNxpBzs1Cy1rDVeyNKZ9RZxJ8wC2k0pHtA7vd3nptsktSlyc2lzdxd8a0unHNo 1WqadhIPx9UmnltzruRdktS8OKKsB63fn+3Wl5uU+GOdKOgXJaP2uOLmubt0DOjWdlk9 vNWQ== X-Gm-Message-State: AD7BkJLTeiVwyNVo0BBloPQyxzMZYCf1BS9tGatGkxSQWXSXp7Y/iisF8Tbwm34G7robmA== X-Received: by 10.98.18.195 with SMTP id 64mr36803583pfs.131.1458031459233; Tue, 15 Mar 2016 01:44:19 -0700 (PDT) Received: from localhost ([115.115.225.206]) by smtp.gmail.com with ESMTPSA id cq4sm37747838pad.28.2016.03.15.01.44.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Mar 2016 01:44:18 -0700 (PDT) From: Sanchayan Maity To: Peter.Chen@nxp.com Subject: [RFC PATCH 2/4] usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid Date: Tue, 15 Mar 2016 14:08:28 +0530 Message-Id: X-Mailer: git-send-email 2.7.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160315_014440_166656_64E373B3 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stefan@agner.ch, Sanchayan Maity , ivan.ivanov@linaro.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, marcel@ziswiler.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Vybrid SoC has a dual role device which can be configured to act as a host or device through firmware interface, but, it is not a true OTG controller. Use the CI_HDRC_DUAL_ROLE_NOT_OTG in the platform flag, introduce a new platform data structure for Vybrid and match on the compatible string fsl,vf610-usb instead of the earlier fsl,imx27-usb. Signed-off-by: Sanchayan Maity --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index f14f4ab..d9b8a53 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -65,6 +65,10 @@ static const struct ci_hdrc_imx_platform_flag imx7d_usb_data = { .flags = CI_HDRC_SUPPORTS_RUNTIME_PM, }; +static const struct ci_hdrc_imx_platform_flag vf610_usb_data = { + .flags = CI_HDRC_DUAL_ROLE_NOT_OTG, +}; + static const struct of_device_id ci_hdrc_imx_dt_ids[] = { { .compatible = "fsl,imx28-usb", .data = &imx28_usb_data}, { .compatible = "fsl,imx27-usb", .data = &imx27_usb_data}, @@ -73,6 +77,7 @@ static const struct of_device_id ci_hdrc_imx_dt_ids[] = { { .compatible = "fsl,imx6sx-usb", .data = &imx6sx_usb_data}, { .compatible = "fsl,imx6ul-usb", .data = &imx6ul_usb_data}, { .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data}, + { .compatible = "fsl,vf610-usb", .data = &vf610_usb_data}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, ci_hdrc_imx_dt_ids);