From patchwork Fri May 8 12:29:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Stratiienko X-Patchwork-Id: 1286161 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=gSt5Z6VM; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49JY5r5TTrz9sRY for ; Sat, 9 May 2020 00:45:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75FE680390; Fri, 8 May 2020 16:45:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gSt5Z6VM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 604A3815F2; Fri, 8 May 2020 14:29:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 644BD81578 for ; Fri, 8 May 2020 14:29:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=r.stratiienko@gmail.com Received: by mail-lf1-x144.google.com with SMTP id t11so1270404lfe.4 for ; Fri, 08 May 2020 05:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xE9yxkiquSLkXl4piKUM684mgCZR70XCBSujStNFpWY=; b=gSt5Z6VM9gd/GZvNqB+cgJ+9AiwU1l7fFmgylK+rd7G6u3vCo5IC+ST1o5Y0nhN2U9 a0hgc6hjAbUAINZo+zwwrtpFfBcZu8WU0bgzQvW8rfQ1Jzk7MbA0zFDo/Wr094Vnvyqm MxsTMNNx+rcm7yLAf4OWhAuI/JnYl0DJQDiOrxWHg+O00fK50UiUjtuGLsH7/Ap7yEKe gOECHzv/2qk45T2LTxDDr9mebvIM3yF+nubQwv6a1u0jA3cffE9MzjIbEtdsWEWLHjOJ 7ve1J9QdPJZ+OW10G45ZOx8c4n3tbL1ixeL/2awuyn3Ue0jSJgSTsZ3bdGyp6mVnqF2Y cP2Q== 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=xE9yxkiquSLkXl4piKUM684mgCZR70XCBSujStNFpWY=; b=e7nFXBXR7lLGrnzo0/4nmMwcRL+lSQcFiQ9FJI3A74zmbXg3FPEEctRADi5LL6+J1p Bw5R1BHsC+1KNNTPn1BpI8ZFXmi7qGd1e0OZalakeRDc+i9SzvSnIeY4Arnj//cBYAkQ eerlBcpOChUUlrff4AFQhx2ZzyiMU149Id8nYCW9YJcF8pVXu9sT7W+cFfA4FJ8C1Z4N k7XtxLvZ8UP2NAKjzmblh01BjzZvxD9N2EfXCSa4RSAE5k0hmGmC71IXU9zbbxD3pqD9 QDANCK3IwFpti81sLC3o5CyZcOhjc0xHo6/p0iq8a4dyvVnuItRF8MqZ2CXAQoWp6Axd EDpA== X-Gm-Message-State: AOAM5332QW1cYVUAXH3nd98VMhGNZ5miZpHl/UolyTBFXrjh/CkFd8vb pOVeKoJqpme4sFWNUi4QB/Q7YQfQ1fU= X-Google-Smtp-Source: ABdhPJwb+9cF678NI64lbD7kM9KxGLP3n6RVp/ZGu1t1p5BPImPoCu5hvp2+bxbdY/VUld0pos9/cg== X-Received: by 2002:a05:6512:308e:: with SMTP id z14mr1796758lfd.29.1588940988406; Fri, 08 May 2020 05:29:48 -0700 (PDT) Received: from localhost.localdomain ([93.77.127.135]) by smtp.gmail.com with ESMTPSA id r3sm1104404lfm.52.2020.05.08.05.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 05:29:47 -0700 (PDT) From: Roman Stratiienko To: u-boot@lists.denx.de Cc: Roman Stratiienko , Ondrej Jirman , Icenowy Zheng , Marek Vasut , linux-sunxi@googlegroups.com Subject: [PATCH] musb-new: Use predefined configuration data for SUN50I_H6 Date: Fri, 8 May 2020 15:29:37 +0300 Message-Id: <20200508122937.2284562-1-r.stratiienko@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 08 May 2020 16:45:08 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Same was done in the kernel for all devices compatible with 'allwinner,sun8i-a33-musb' at [1] and [2]. Fixes musb initialization on H6 SOC. [1] - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/usb/musb/sunxi.c?h=v5.6.11#n726 [2] - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/usb/musb/sunxi.c?h=v5.6.11#n440 Signed-off-by: Roman Stratiienko --- CC: Ondrej Jirman CC: Icenowy Zheng CC: Marek Vasut CC: linux-sunxi@googlegroups.com Hello community, '$ fastboot usb 0' command works, but host still doesn't see any USB devices. Does anyone have any suggestions where to look? --- drivers/usb/musb-new/musb_regs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb-new/musb_regs.h b/drivers/usb/musb-new/musb_regs.h index c4d7203b85..5f012f3b41 100644 --- a/drivers/usb/musb-new/musb_regs.h +++ b/drivers/usb/musb-new/musb_regs.h @@ -432,7 +432,9 @@ static inline u8 musb_read_ulpi_buscontrol(void __iomem *mbase) static inline u8 musb_read_configdata(void __iomem *mbase) { #if defined CONFIG_MACH_SUN8I_A33 || defined CONFIG_MACH_SUN8I_A83T || \ - defined CONFIG_MACH_SUNXI_H3_H5 || defined CONFIG_MACH_SUN50I + defined CONFIG_MACH_SUNXI_H3_H5 || defined CONFIG_MACH_SUN50I || \ + defined CONFIG_MACH_SUN50I_H6 + /* allwinner saves a reg, and we need to hardcode this */ return 0xde; #else