From patchwork Sun Dec 23 11:16:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Sealey X-Patchwork-Id: 1907101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 30B5EDF25A for ; Sun, 23 Dec 2012 11:20:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TmjXz-0000uL-1i; Sun, 23 Dec 2012 11:16:47 +0000 Received: from mail-ob0-f182.google.com ([209.85.214.182]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TmjXr-0000qf-RM for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2012 11:16:42 +0000 Received: by mail-ob0-f182.google.com with SMTP id 16so5899912obc.41 for ; Sun, 23 Dec 2012 03:16:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=w3k9Q8M2ZIPBFGYSCly3ZnXJA9IkNuxqmdN9dNLavH4=; b=gVLIQ6cnjt45nzWEIIGUDf8IF6KyFVnyOgWr4VpjVKnhpkHBqQF9wns/1o8bHxG/sc OBD/YdHHiwxKlVbKLNu4lea1QKOwqRKvfjVaUhMiqrwTe+2iiFxd10z2SmDdi3xXuL+w hnPg+yN+YG4Jdr7CELQhcjW9XES4o7F0T4EdT986T07Z+DXSLfrTyKBZugKGlL9W1W2u iZ/s2nG0gn+EPT6zoz3xGpBtZjXptw2XF7yYrcYA8nOFDVzta4Eormb8tMlIScroTQnp H5RAgbWn2mJbCatJnLHEh3OsAQNz62uObHSmri8eMFOfoeekH+cs3gI2PByj0Eqzx/At VXXQ== X-Received: by 10.60.30.201 with SMTP id u9mr3669846oeh.28.1356261397760; Sun, 23 Dec 2012 03:16:37 -0800 (PST) Received: from queequeg.bakuhatsu.net (cpe-72-177-208-182.satx.res.rr.com. [72.177.208.182]) by mx.google.com with ESMTPS id j7sm12172843obv.7.2012.12.23.03.16.36 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Dec 2012 03:16:37 -0800 (PST) From: Matt Sealey To: Linux ARM Kernel Mailing List , Linux Kernel Mailing List Subject: [PATCH] ehci-mxc: remove Efika MX-specific CHRGVBUS hack Date: Sun, 23 Dec 2012 05:16:02 -0600 Message-Id: <1356261362-8418-1-git-send-email-matt@genesi-usa.com> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQnXUzQxHm3Fcq/lQzqJTEmR7b/bapj4tijOxyHp78Uyqi0XifVPPPZajyjWNivflO0VgTwR X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121223_061640_322906_64D78562 X-CRM114-Status: GOOD ( 13.35 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.182 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Matt Sealey , Shawn Guo , Alan Stern , Sascha Hauer X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Since Efika MX platform support (pre-devicetree) was removed from the tree this code no longer has any possibility of running and clutters up the driver which is being replaced by the chipidea host in the future anyway. Signed-off-by: Matt Sealey Tested-by: Steev Klimazewski CC: Sascha Hauer CC: Alan Stern Acked-by: Shawn Guo Acked-by: Sascha Hauer --- drivers/usb/host/ehci-mxc.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c index 8e58a5f..b62c3a8 100644 --- a/drivers/usb/host/ehci-mxc.c +++ b/drivers/usb/host/ehci-mxc.c @@ -102,7 +102,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) struct usb_hcd *hcd; struct resource *res; int irq, ret; - unsigned int flags; struct ehci_mxc_priv *priv; struct device *dev = &pdev->dev; struct ehci_hcd *ehci; @@ -213,25 +212,6 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) if (ret) goto err_add; - if (pdata->otg) { - /* - * efikamx and efikasb have some hardware bug which is - * preventing usb to work unless CHRGVBUS is set. - * It's in violation of USB specs - */ - if (machine_is_mx51_efikamx() || machine_is_mx51_efikasb()) { - flags = usb_phy_io_read(pdata->otg, - ULPI_OTG_CTRL); - flags |= ULPI_OTG_CTRL_CHRGVBUS; - ret = usb_phy_io_write(pdata->otg, flags, - ULPI_OTG_CTRL); - if (ret) { - dev_err(dev, "unable to set CHRVBUS\n"); - goto err_add; - } - } - } - return 0; err_add: