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 E273EC7EE22 for ; Thu, 11 May 2023 11:56:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 384B485DEA; Thu, 11 May 2023 13:56:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.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=microchip.com header.i=@microchip.com header.b="Y26HDCTc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF2E985DEA; Thu, 11 May 2023 13:56:33 +0200 (CEST) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5FACD85E35 for ; Thu, 11 May 2023 13:56:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Conor.Dooley@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1683806191; x=1715342191; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CksYuehNluD6KEv/TN1CbAMsZuH9LmGMIvbYdPuOvBU=; b=Y26HDCTcbIY4JTjpLwt3QgxheDcZumB17PnxLZLSmQCcLKel0rS08K25 9HM2OFk6U6fNCJ92FbtIO6u1mRViyr1jTYdSXH6919c+91ScThm1Z9sjw j2ZmX0QydWM98xDuGhpl4CjFSp3pVNzZ5vnWkuSUoac22mvwt1Jr2iKBG WlbXd/AE1clBsk9snwYxlRzRz/vk6p8QaEGK7289SvJXz9gLXcUB0gE9p QzwarBvN0iJru1h+ww8GJiIIVMc+2+YFI/IhL85b2OhS6nmEoUWRr9A2K XbElFBQU8KLYr8u3EMCMsHiLWLQczV+rKyMTi/CAy5RCOZzGMnWvXfi5t g==; X-IronPort-AV: E=Sophos;i="5.99,266,1677567600"; d="asc'?scan'208";a="212872716" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 May 2023 04:56:29 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 11 May 2023 04:56:28 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 11 May 2023 04:56:27 -0700 Date: Thu, 11 May 2023 12:56:07 +0100 From: Conor Dooley To: Ben Dooks CC: , Rick Chen , Leo Subject: Re: riscv: asm update for building ubifs Message-ID: <20230511-nursery-suction-5bb7e10b39cd@wendy> References: <20230505080207.11902-1-ben.dooks@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="31YvDwkjoEppN6wK" Content-Disposition: inline In-Reply-To: <20230505080207.11902-1-ben.dooks@sifive.com> 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 --31YvDwkjoEppN6wK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey Ben, On Fri, May 05, 2023 at 09:02:04AM +0100, Ben Dooks wrote: > Fix misisng atomic and test_and_{set,clear}_bit macros to allow > the ubi/ubifs code to be built for riscv. These are fairly simple > but are not being used outside of ubifs on our builds. We've been running something a fair hackier & probably should have already sent something by now :/ What you have here is either the same as what we have, or an improvement: Reviewed-by: Conor Dooley Thanks for doing this. --31YvDwkjoEppN6wK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZFzX1wAKCRB4tDGHoIJi 0n3oAP9K4HWJ0gBJW9A18qPiUZRjryYA7TG52nBwnSKPQYRJCgEA+Lagdp0ggx12 9kfr27K1GfLxcCPP63bkKpDEhPGebwM= =Kyjc -----END PGP SIGNATURE----- --31YvDwkjoEppN6wK--