From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAB1BC433E0 for ; Thu, 2 Jul 2020 09:05:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92F3C206BE for ; Thu, 2 Jul 2020 09:05:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="cCSDX1z1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727065AbgGBJFl (ORCPT ); Thu, 2 Jul 2020 05:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbgGBJFk (ORCPT ); Thu, 2 Jul 2020 05:05:40 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C1AC08C5DC for ; Thu, 2 Jul 2020 02:05:40 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id g17so11058688plq.12 for ; Thu, 02 Jul 2020 02:05:40 -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=qdZceTPwfnzW9+69no33+50hSMtxc8wnmq7YnBhXybHxNz+NCCOUIcckz6JSAEdSuR LkjHOCngYbPDR0gqcAMhK3rVo+2GtDN/YU5Jtl8lBHXxdF5qXcEN/FdJtLxeHfh9U89o pQJ996eZhVWxPOTRBM06UPneGV5tuUimg20Z5C4YTK7ekytIonANj3agsXQ3GS6EoRIu EFqJfDK9oZ6WiBIRmqviLYqaRsdd7YoDEUroeKYk5yTAewnnRzONCxx53kH1fOE+Vxfk xxc/8DLt8PXcJ1kMfvv3EBTIhqpqTDQxxmRX3/5wrSV0OAisIL0QMg/8UOtR6Hth8kkd RFyQ== X-Gm-Message-State: AOAM533qCCUMVs1+/u4TKXmA9nVqj4dU3SkwaHzXDD9O/I9o0oSq+Vno WzfeXGwPmorzEZDq/sX2YzT1JA== 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 Cc: Suniel Mahesh , Michael Trimarchi , linux-usb@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki , William Wu 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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; /* -- 2.25.1