Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE969C77B73 for ; Mon, 5 Jun 2023 10:01:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12F7A846AA; Mon, 5 Jun 2023 12:01:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1685959261; bh=JzWatNtCIOO7GLqgCFxOi9R4atC3JRI0SXha+psqcoA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=iy+fqNCeKzwjkLem+PrJoLUUu3U3ie+DyMCbgKQtl5P+fcyqg41zJghcEXwCnC3L4 mJs0lK+y9qCoLZxskJcuzof1kZAkh6MCE8scjzZZuAAeQJh0lV2SbZipi4zD4EFacx l87wSkZ5ZXS+untRNKUMRdxqNSI2V2FUUEMlLP9hgwh55AC9xmeY3rPxWxQiVyu27t n6wNgSsC6FqKpvkXDAWY9UsZlXdSUo2r2cP5ascJVZBSsEFcSZOTIAc0gCv5oCs8Zy EXmxTG4N7aWpbiS3iqdbSi1IKJySeN1H2dS13bnUEdnM/hb5x8euJTgb7zyYsoozCD VSXqJS1NXoo+A== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6A5D78467E; Mon, 5 Jun 2023 12:00:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1685959259; bh=JzWatNtCIOO7GLqgCFxOi9R4atC3JRI0SXha+psqcoA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=c1XBDZtUnFr1pIBb5sGSKkSo1Q4lp8nIrMkMxb2Z1Sesn/yQdsvuypYuSwsobRqmI 3+2pl9G1zXj8EbUC1esgS0Te0FcgBo/rekA/HvDwtKIFKyCs807m4WLxg2QI/lAnFd IIJzXTdDp04yNV8riMQS2QiXS9FSK1uhPJb8yLBASHcjLVlB/rjxKccPFA326Tzehk wrzR3amdrRpoteWgvVbfYRGgw/X6bbfufZnrsevSb6SG/W0iP0wX3ixzrwezNmB5iL jN4pLENOwql6pqGCB5F0uA+QbHRuUfBcKZAOwop3V2fqQ+5MGotsxlgy9/k5AzI612 qK/2WH1H6GHGQ== Message-ID: Date: Mon, 5 Jun 2023 12:00:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] usb: musb-new: sunxi: do not attempt to access NULL SRAMC Content-Language: en-US To: Sam Edwards , u-boot@lists.denx.de Cc: Andre Przywara , Jagan Teki , Maksim Kiselev References: <20230602214958.167909-1-CFSworks@gmail.com> <20230602214958.167909-2-CFSworks@gmail.com> From: Marek Vasut In-Reply-To: <20230602214958.167909-2-CFSworks@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 6/2/23 23:49, Sam Edwards wrote: > I believe that some sunxis (ncat2?) lack a SRAMC block, > as accessing this region results in a data abort. Checking > that it's non-null before accessing it allows this to be > set to NULL for SoCs where it's not present. > > Signed-off-by: Sam Edwards Could it be that the SRAMC clock need to be enabled instead ? (note that I don't know anything about sunxi stuff)