From patchwork Fri Jun 2 21:49:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1789835 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=jAsYPbZq; 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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QXxWz2lRZz20Tk for ; Sat, 3 Jun 2023 07:50:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E037786442; Fri, 2 Jun 2023 23:50:37 +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="jAsYPbZq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8737D86040; Fri, 2 Jun 2023 23:50:36 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 08946862CB for ; Fri, 2 Jun 2023 23:50:34 +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-xd33.google.com with SMTP id ca18e2360f4ac-775ebe161c5so70502339f.1 for ; Fri, 02 Jun 2023 14:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685742632; x=1688334632; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ji+CVWYUpb0xcQ1hyLlkRfaCwMJs+dvSBN8dK5PO0UE=; b=jAsYPbZqqKltYsxRw2TpRxu9MPh/mY7q3Qn17y2qXIaknrJL2i4seRlXg9ppDi9ifA uED3PJO3L5TuJooFbofIcDu473zAE+N//edEJEDIGLQFCOJbqlqWLGhnmYzsGWfzbDhV ZNhdchkXb0A/oXvGvuNo+GohmxuOF278ujauP4pnwy+AYEvvAMyD86sB4hN/HJy14gWY wLRou5ABaKW5CmoLjK9IehX8OYI6OR8iSDnv6XSbQIHCPyO9HF6MJRDbwML8ZQPAKQ8J /efK7/Sjel9atLVYjs3bBPc2IpMoi7FKVTCKHvyGNwTExZlfaaAhI8Eajh412g2gLDTN iwaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685742632; x=1688334632; 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=Ji+CVWYUpb0xcQ1hyLlkRfaCwMJs+dvSBN8dK5PO0UE=; b=FpgvB3MehL5OL5K9z8ByFgc27HvgKAQzHGphdVSK7ncDYFwoVtcyavJnmUi2BrBnXn vOOeY04WftTk2dEWqa3HHu7TW+n/s7FwcSAIj1XpBkKHza7e5Bmse0G2E1siy1tjH27E XTftbTAUrLbwXyN8JlrFAxh6uDxN3pmT1xvB3kHS7OTsLkvwlvnFWoxC1zn8wJVxvR8F F5eaP9AyRVL6ivNrhQSuwS1lTY24/RpUejyvrxv7f0APEHO2dpE4qnANVqu6ngY0SqYZ vMafhagKrSvVmv/keZAXWv6q6yvOkch415fe5NNNDkwOOtiDSdcRbKktkX5EYKEzCfA/ UjQw== X-Gm-Message-State: AC+VfDwrkkohmuHan05ewEXDrKPUKcGSjYRsJA09gIGILOaRaVnI+Ph3 X8+9OGlMvkKrCFQBKbOinBFcVj9I/91H0Jyn X-Google-Smtp-Source: ACHHUZ69YvfLCAluXvxXaIr6kxEBRW+7Ey5veTz9CuJFTsnRvSx7iKMvHhasFlLxNGNGSzSEeztucw== X-Received: by 2002:a6b:7a45:0:b0:763:5a8f:fe6 with SMTP id k5-20020a6b7a45000000b007635a8f0fe6mr3402686iop.21.1685742632340; Fri, 02 Jun 2023 14:50:32 -0700 (PDT) Received: from celestia.nettie.lan ([2001:470:42c4:101:7b1d:313:b371:dfda]) by smtp.gmail.com with ESMTPSA id r4-20020a02c6c4000000b004164fe77c06sm566672jan.26.2023.06.02.14.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 14:50:31 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Andre Przywara , Jagan Teki , Marek Vasut , Maksim Kiselev , Sam Edwards Subject: [PATCH 0/3] Allwinner sunxi USB gadget improvements Date: Fri, 2 Jun 2023 15:49:55 -0600 Message-Id: <20230602214958.167909-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 Hi list, This patchset improves the musb-new variant used in sunxi for DM support and contains a couple of small fixes. Nothing too exciting here. A note for Andre (as I suspect you'll be the one reviewing this): Could you update your R528/T113s series with: cpu_sunxi_ncat2.h: +#define SUNXI_SRAMC_BASE 0 Kconfig: + select PHY_SUN4I_USB ...as appropriate? Those are the only changes necessary to get this USB gadget driver working over there. :) Many thanks, Sam Sam Edwards (3): usb: musb-new: sunxi: do not attempt to access NULL SRAMC usb: musb-new: sunxi: fix error check usb: musb-new: sunxi: make compatible with UDC/DM gadget model drivers/usb/musb-new/sunxi.c | 76 ++++++++++++++++++++++-------------- 1 file changed, 47 insertions(+), 29 deletions(-)