From patchwork Mon Jun 12 20:03:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1794054 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=CGmmEw9k; 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qg2g75vLMz20Wl for ; Tue, 13 Jun 2023 06:03:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D108E85FD2; Mon, 12 Jun 2023 22:03:11 +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="CGmmEw9k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85A6186129; Mon, 12 Jun 2023 22:03:09 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 2B4818206E for ; Mon, 12 Jun 2023 22:03:07 +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=cfsworks@gmail.com Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-77b210292c5so22949439f.1 for ; Mon, 12 Jun 2023 13:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686600185; x=1689192185; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7Z0RpODI2tIwJzrR18d0uCuSfV2LOkOCH2hbWjoFAQc=; b=CGmmEw9kqitnt8SEwWxbJaIXp5nH9d3Mn3atauottrvn4uwDowoBNJT+JvdEJv1hm3 jTQduXoV1VaTUVdeqtoa/gUnPkYxGlh/6FXVj/+glEqbMPk+1Lz6BeZyegxE5UjdxFz2 4IVObAqTgECGJwyKQ8J2mkNjcWbLFcJgMKgGqoif7k7TMxgJKp8jrPesDOltyIhaV5ep 01X0ahqBEMLqaGcZWQJuHtPSJwzL82me8q/Wg2Vy+xqq90fNhzDLJhK6f4JEf3owGYCw sNbC/LUEaGCBrgK1UU4CyVZ+VJvW75jG0UAGMmt538taLKaJQYymrQcfjp8QcRcAgUPf XP1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686600185; x=1689192185; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7Z0RpODI2tIwJzrR18d0uCuSfV2LOkOCH2hbWjoFAQc=; b=Sp4PRizbYmn1hVbcme7f4t/ByIl60sZH3TFRfILdmFlRYYmDrNYqLKQ+BavklgS61i 8wlNRYaA2/J/8QLfnvbmE0MXdhhRKwE70zM94Z1FTbZWlSJ04c3R5K3LWIv8WQqj40bC 32ygurRPTeiLHhAZaMEoK9PZWvqGLUCHlvEXS5nM6Dfa6Pwi4LIx+eT3qs3R3XJDWFyX DUHrchsIJIZV8SF4BFoC7lfgrBdYSe/ySNjBjdJAioxWM3vm3OO0hbht7GZ/Qonau4WX WBJVfD4aNJK9mnSpRCtLe9/7z+HntzMS/ihCZvscQ+NRYBlLEHjoKyfaC/r92NyAmCwO pKxA== X-Gm-Message-State: AC+VfDziCHQ+rpm2HqRHBSvt9d95PtwF8fZqwLlS+67ObSOnkZumz3wa VIxfXE9HF42gKgxyGprxWiOg7919v2x/f2fW X-Google-Smtp-Source: ACHHUZ6l4RNE9Ee2ZWQgRbwlrgMvylyCzisIwy0d9l6XRnjLUcecDzaoynopvntkQx8AQUCaa+YrPw== X-Received: by 2002:a05:6602:22d9:b0:760:ec52:254d with SMTP id e25-20020a05660222d900b00760ec52254dmr8375932ioe.2.1686600185462; Mon, 12 Jun 2023 13:03:05 -0700 (PDT) Received: from celestia.nettie.lan ([2001:470:42c4:101:857:833a:c057:fc99]) by smtp.gmail.com with ESMTPSA id t5-20020a028785000000b0040fa5258658sm2925490jai.77.2023.06.12.13.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 13:03:04 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Andre Przywara , Jagan Teki , Sam Edwards Subject: [PATCH v3 0/2] sunxi, usb: Clean up SRAM initialization code Date: Mon, 12 Jun 2023 14:03:00 -0600 Message-Id: <20230612200302.21354-1-CFSworks@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean Hello again, The only change from v2 is that `syscon_base` is now a param of `sunxi_musb_claim_sram`, and the TODO comment has been removed. Cheers, Sam Sam Edwards (2): usb: musb-new: sunxi: only perform SRAM initialization when necessary usb: musb-new: sunxi: clarify the purpose of SRAM initialization drivers/usb/musb-new/sunxi.c | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-)