From patchwork Thu Jul 2 09:05:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11638339 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9EEE314B7 for ; Thu, 2 Jul 2020 09:05:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7875F20748 for ; Thu, 2 Jul 2020 09:05:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PVK0HZAA"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="cCSDX1z1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7875F20748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=GXMka8jlDUEBgJzOop+bTxz+98OLuA9orUAnNhnjbss=; b=PVK0HZAAlgbzuuNuSwD7cImC4Q +O0aqmH55j/kwZeYBowq8jDnuh6kHgJnWpwkCbxQNH1iH2QJFXqLSVycIRd1YVEtGfeIm+uuw7xu1 PjNVb72fVJK5ZQ52xYtc1GX7v6LYdel4+sx+K6iGrw4QMHVygqKKeBmfXGjDW6TQ2qZbvUL6pHQVp 7Dvh59c+aL3JRVQMeeVIGSRQ0gMi+I2mAusiX3JUAMf1EjBdPMN/HWj0TlrlhZKnO8ggxTh4UASwe KeayjaVbDXOYYOKvB/Q+FqWaW65xQkvteJsVV21EQsqzhlYMOwMZCY05TeMeh1LmuX0ACv7aaXU7c 9uxPlx7g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqvA8-0006CJ-14; Thu, 02 Jul 2020 09:05:44 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqvA5-0006Bb-Nz for linux-rockchip@lists.infradead.org; Thu, 02 Jul 2020 09:05:42 +0000 Received: by mail-pl1-x644.google.com with SMTP id x11so11058831plo.7 for ; Thu, 02 Jul 2020 02:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TZbrN1QKRJsubIaR01sjzTzcxQbWVstB3/I4RCr7c5k=; b=cCSDX1z1wpYxMxQl4PyU/Q9CcB9TMy5de6pzAZlU0xhDGa7sD0BZNA48AhZ2Bifveu 7syUXReRqPxPkeIPXhK1JeutazwVnjHms6IvRgwmDcNPAP4a874ph5QaU5Yug983KvlZ 9yT5VTbnnUBsB/7XK2ZLK5QA+wPQrCysnQgf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TZbrN1QKRJsubIaR01sjzTzcxQbWVstB3/I4RCr7c5k=; b=dHwEIvGB9Oi3Mh2A2YBxKGkCZgvhm1MRtVtG+RoxRhK6qQm5XLJ9OknzQmSPjwu1Ng 3gK8c4v2p5k4cQ9SWXC7/cklQeVZkckOLp94j2cm7kOrDbKRjNXADsJInJSJ1a3p8nof aopmsb/w/YrdKAgsJ7M1jlf3fRQ4ulZZ8vRmyJ2+Bu++7XkvWlwqzPe1rj4XJF1jzx/N j6SG7bxywkpIWI+TgkWN82sRtduq0oCq+zOP3jsxs9Y5HLyTQ/mVGwx3PlG21mgc9kLl Bo+iTKPnueKHDghXC/0vsN6M1bzTO7485ZCUBL9+WsqLUXiTSwYAEmsHScS0uQBGyd7s kMNQ== X-Gm-Message-State: AOAM533wmyXOeX5W8VVv2G7GEiUjGHmsVWrNwkdS3EhRZZs28/yaG8Vp tjuA8hSTGiR20X9KXgqB/rj3KA== X-Google-Smtp-Source: ABdhPJy1aBjYx68MVNif/BfPYEJqibBDaNhVhiyYG249qupxIbKkH1jcmFMuIABnhnoOLkSF/Jl9oA== X-Received: by 2002:a17:902:c206:: with SMTP id 6mr12167247pll.268.1593680739615; Thu, 02 Jul 2020 02:05:39 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a961:9b2e:1b93:8ca7]) by smtp.gmail.com with ESMTPSA id n19sm8308691pgb.0.2020.07.02.02.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 02:05:38 -0700 (PDT) From: Jagan Teki To: Alan Stern , Greg Kroah-Hartman , Heiko Stuebner , Rob Herring , mylene.josserand@collabora.com Subject: [PATCH] usb: host: ohci-platform: Disable ohci for rk3288 Date: Thu, 2 Jul 2020 14:35:04 +0530 Message-Id: <20200702090504.36670-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_050541_802450_A6981946 X-CRM114-Status: GOOD ( 11.88 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:644 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , William Wu , Michael Trimarchi , linux-amarula Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org rk3288 has usb host0 ohci controller but doesn't actually work on real hardware but it works with new revision chip rk3288w. So, disable ohci for rk3288. For rk3288w chips the compatible update code is handled by bootloader. Cc: William Wu Signed-off-by: Jagan Teki Acked-by: Alan Stern --- Note: - U-Boot patch for compatible update https://patchwork.ozlabs.org/project/uboot/patch/20200702084820.35942-1-jagan@amarulasolutions.com/ drivers/usb/host/ohci-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 7addfc2cbadc..24655ed6a7e0 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -96,7 +96,7 @@ static int ohci_platform_probe(struct platform_device *dev) struct ohci_hcd *ohci; int err, irq, clk = 0; - if (usb_disabled()) + if (usb_disabled() || of_machine_is_compatible("rockchip,rk3288")) return -ENODEV; /*