Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2473842rdb; Mon, 5 Feb 2024 07:39:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqdgwttafKaOn2BQF/F/DwzAZPSFELzPV+0KssD3bYtx0vJZDK2edOzg5WnyZo0AjIoeei X-Received: by 2002:a05:6a00:1d07:b0:6e0:4c76:8eb4 with SMTP id a7-20020a056a001d0700b006e04c768eb4mr1855168pfx.18.1707147587239; Mon, 05 Feb 2024 07:39:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707147587; cv=pass; d=google.com; s=arc-20160816; b=r8CFjSGx49ILRpov6qCE7v9qE4hf1HuG0yMxyZEQ1bKlFWhuxkVgG14+bYe7ikFDXr 9FL/DkydbWe3BBdYpH5ToK0+fopM+UtefXdbF48YX/FiDwSdzPVqTOEHr84+rikl9UhE 07rpWriP2gW166UBpS8+U2qw69dhp2I+5Ubpk+c0/xuEeLijTpGPwYSME960fHbZhWJq MqO5B+IPE4oxWR9dWckMUhgQ6P0BVJCYTYL8/nMCKuYb8o46qBCWMJOAXo9Gtv61oKZD 2lvs5429mp8D+QKRU88Ton1X7yH47wVDd/SPLY/cx2iieRgVMAXR8MC9kbLa5oapIJw9 Mc3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qPlFmb/hlBmrzSv4BkYeuq64IEID5+/6kU1B/nBi/rY=; fh=I+6Tl1xKBnIEFz5qr2xb5Ed2yFIwkCz2lpsiXGQC23c=; b=hJWR7xw2mWUe0xrcKFJlJI8/DpXtgN5XCGUJUQl5xkl2BMghWp2lMzhe/ebae9o3p+ RdDHpFE1sigoeYEa+pe5H0e7oYB7wBXBdVim7oRZiUgup67rFMhkcA5419/FxAdA7C/I jwSCPwiAuHymxldFvgyU/yv/Uz4/uQbfxfnsugHt3syRuceAHM37vBFb46iHp2KAQkNF BMdDO3O+TZRanmYIC0+dIChlnEUo47VEfjMz2CCFEQY7JKhuIhqS9uiujhgOY+UgsOzL HUQqyfy2uSepmrmYPsq28ApZ6n32zKIIKtUeJMnK0LdT0v+xtushsfgK7NMQqOVfBz5z S06w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRp1Ufoy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-52912-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCU2MbHdSkTdz99Kg+13KpIwGG6Wy03bVoI6rRgaesS2kBgruK+b81h5l1k342AjKGISMiMUGbUu0bTFDvbXJ1KOnxKDBf6nJsAA0+V15A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y19-20020a62b513000000b006dbbae74070si6304332pfe.184.2024.02.05.07.39.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 07:39:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52912-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRp1Ufoy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-52912-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EBF4C288571 for ; Mon, 5 Feb 2024 15:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC2FD2DF9D; Mon, 5 Feb 2024 15:32:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jRp1Ufoy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E11E32CCBA; Mon, 5 Feb 2024 15:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707147139; cv=none; b=OZznlzDMAmmtP2C4h7nROcVE/Cysyn+VJNWf0Y+a4Q/gMhX32daqjt6ssy+FvtrBonXElkdKbabkpxIg5faqDHfncpmP6KnZ2tbwDHBU2bKbq1gXjqLkAN5GCgnTEGwg10JqPKW2pS7UITFh8NLvADEZiSM3y+O/8YqiuFaoZdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707147139; c=relaxed/simple; bh=VyryEeFktouoPtBlGjASqjjuFJfIz/FqEICD23Ug1nI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p9DsslKvlejGY7enRHJ3fXA1nr+Xchztu1s2EVCf2XJ0w5N/x8qJNZFa76EuXVdJDVU2XvcoxoOhJ0lzLG6wG2ta0GYPx7pwo1F/e+qaRzBUfzwXXOdzitNVZe+wZ+WNA9GneFPla+4RPUyYIynLsE6jUYsGcj9PoBADQVrereg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jRp1Ufoy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0646C433F1; Mon, 5 Feb 2024 15:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707147138; bh=VyryEeFktouoPtBlGjASqjjuFJfIz/FqEICD23Ug1nI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jRp1UfoySFcHnU8OKUHbSECBQs4H+bbZMGQIQ5Qp/RLOcVjMM3wMWxH2lSZdp7OMS xY+IVFAPDeAEgj9qwEy8f57YjbpXm/KhTVhLIAzdtxZ9a8qOqoDCaKmjf2EVAKX+DY wZ3rC0+Ti7DbPTJK70IdoIRelIdtFGsWW1rfHUlqPuLYzIj5WRPlSUfx0Q8/MnUwxV xv7fNGjSAfF96j8rSf1y77C1rhBOTL44owiAwTj4SZmWDa3DP9IIIu4u7h3hSHdpJv DQozGislNB1Os2a4IQ8fMW5njlUrE5bmgp7QFAQpFycl8Ab7c0sEW63M21dRbCurwf zfX85Onv8dQIA== Date: Mon, 5 Feb 2024 15:32:14 +0000 From: Mark Brown To: Mike Looijmans Cc: Andy Shevchenko , devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Liam Beguin , Liam Girdwood , Maksim Kiselev , Marcus Folkesson , Marius Cristea , Niklas Schnelle , Okan Sahin , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] iio: adc: ti-ads1298: Add driver Message-ID: References: <7d7ea4e4-fcae-4966-b194-e1d328751b6b@topic.nl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FV/jdPwiWoSPXR4m" Content-Disposition: inline In-Reply-To: <7d7ea4e4-fcae-4966-b194-e1d328751b6b@topic.nl> X-Cookie: You might have mail. --FV/jdPwiWoSPXR4m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 05, 2024 at 04:25:19PM +0100, Mike Looijmans wrote: > On 05-02-2024 14:55, Andy Shevchenko wrote: > > > > + .cache_type = REGCACHE_RBTREE, > > Why not MAPPLE TREE? > Reading the description this driver isn't a good candidate - the map isn't > sparse and the hardware can do bulk read/write (though the driver doesn't > use it). If your driver is a good candidate for rbtree it's a good candidate for maple tree. There are very few specialist cases where there's an advantage to sticking with rbtree. The maple cache has no meaningful overhead compared to rbtree for non-sparse regmaps and will generate bulk writes just fine. --FV/jdPwiWoSPXR4m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXA/30ACgkQJNaLcl1U h9ApSwf+OwSOaTAWvNTxBwn5cVSksk9dF5DFAZBL5mKj9G4dZWY4eJ5VbtBKncbX WbsBVkA5dJRmRmwl5hgSBsw0KnnZ624s4JDOXfQ3Aic1Q1n7eFY5RbE02Ba+nk95 ob+9fsminr/iwZphEJFOO9Xb2B8LXWZAuJ66Y66UaIFm++9eD+tLDbjFOcsFu3Du 6ZAUt230YdQA8jTu+ZwFRtp3Qb1830MJTx7wsmGEmII/e7j22I5rW0YXkjS81MDj LiNGSP5BcuwcIJE/NqYZbO2c3Mx6WKogIeu/7Lktb/Hbjjptne7wSLG10KbaY2By mIPP+d/Frr5LsVbR6NLv8CtVMbok2Q== =vGvm -----END PGP SIGNATURE----- --FV/jdPwiWoSPXR4m--