Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp219346lqo; Thu, 16 May 2024 04:33:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRVXuFAU3I/XfdvY7cVNJDNngB6Z4SzhYxt5yP1RTdqmfNSHV3jC2ktMv3t8cdYrAQ172sTbsyZnwdSMIkk17VEBz5OKkXUcvZLn59Cw== X-Google-Smtp-Source: AGHT+IGB0aVQ+TToSlYHW/T3W2E9GCWMVz2r3MFxfGGMl25whCMQlBZLoxOKHUyzCKxJIwIOuPG1 X-Received: by 2002:a05:6512:20c6:b0:523:89b0:b03f with SMTP id 2adb3069b0e04-52389b0b0f8mr3027885e87.28.1715859229641; Thu, 16 May 2024 04:33:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715859229; cv=pass; d=google.com; s=arc-20160816; b=ai+Ti1zCJdGBRXW0Nc/ZXShZpLbjZc129eD+V9fXUR/vCsxtyxsZQAC1emq7ufqCaq GrgAGq1GUy3p0pKUu4Tipca8aQEWftmvxtWGH3vRaeL4tYydU7ZQPNIMCGjSy/LmhWcY 8NlA6D0NzQ2bDMWfMFXbF/sX8NjCyoz9SKAh6gH/ccISlLct0rwP1ecwFnlQmDnKZ/kY y8zZ3GjMTpc+ZtqzDEzcBcxvtwZ4UTlVtzpTrqOKYfDGx+C69TtkmllLEXMebcyc48M3 NdEr5hhp1FzUPLRHZkOaNTWA/BbTpukl6+YQ2AylNrrZufYXF3e4Q+dmX4dhV7FvHk6t PwOw== 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=Ff684u4/AloUGbSxNfATGBgYlQRtKXcm/d0wlVsVWEE=; fh=xTEwpZ2D+1By2zYv7Bgsl1dnMVCdy5w13aIynuZThTo=; b=PgvcEVjeBc2YAyWGJjfhHbZLF7jlvnuVWUkX2jGPPpBTn7cxHIgjL5eWRL3D3Usra0 qjk09Bwg1nvUFMJXgYqYDJgkcVZ60zF1mMBatsKEY4RUAyts1+6rtLutXpWudi8HFQsx TzIqnxHLzCMNsJAUrD9x3jWG0/qYB16fm3acH9MxF5i9c+ZoSKRm+2lKlGtP4wHRwIEm RycdhcZc2dtgs02feA7xDebsizM9YaCQOhftYhTT+6uzNY8HFPExBNU699tzIbBkKttc mfzFBW+sumka431X2i02F5t7idn2H6anEylmMtCJV+vIka27vDUtbFQnaUHzytrpT1eK lClA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HogSNXw3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecc822b5si2497997a12.509.2024.05.16.04.33.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:33:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HogSNXw3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180947-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 310551F2134D for ; Thu, 16 May 2024 11:33:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0DC9145A01; Thu, 16 May 2024 11:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HogSNXw3" 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 0395514535D for ; Thu, 16 May 2024 11:33:40 +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=1715859222; cv=none; b=s+40Tfhyg4ieXF2sZ//ShO5J2XVUJbyOJNLLWmod/SYy7WyYWZxFzstTTQeR5Cs4Y411F2duksuiW1JEmbxC4IPuQkH2Pw12/AK2qr/Tz25CbNQaLm1rOPM3ixVUO8aO5Tr6At9/FIn8Qil8eXHuBUjOFqzEfLvbyTnD6uIk7U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715859222; c=relaxed/simple; bh=QEUD/xtZGdRVkFch1BgkcB+HEap2Xh9vN34MMoAtrqc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p3TE2sk5UL0GOOhKpFYVBSCHQoYDPunV6oJ58Xi51vqIJcL0LNAEgzsVUjgOdwXum9+QxsP3mBYh43OCMQ8wsAestVQVIAIhXMUJsFwhczb7wau/gnlma0fuqbxmn2Esw83XaGGgcV2DcdsrK3CIPiPuVbXdZQDlc8j6hIfWcEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HogSNXw3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A884AC113CC; Thu, 16 May 2024 11:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715859220; bh=QEUD/xtZGdRVkFch1BgkcB+HEap2Xh9vN34MMoAtrqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HogSNXw3W1r/mtLCVG82mUuaAF0RiatLrvcUHOANFuPBAxQdN/cqi79YE+z+pXOSy hTakgzujeZBtt7C7qj7t0XVV/BKMoC81iSYdUuYT9ELRD50i5eNGd9QQs1UBa4b3oC NYneYXYDlxM8gq+E6mLbyirSIpN+bd4bjJe54jLDTbnunmwsYhaHqJxZkUZKwSPRmf eBV0JoG6EWhU1Ie7/Z3wH6aw4xPNtsHhvS9/hRai9hxirC+e4YbfTax9vhQkuAeB6x 3ywwNp5RpaFBaNf5hGqbuL9wApaqzV9gWZtWlWNmynt+DyV2CQui5/4MSETQ/90orV xOr3/Re5IQWKw== Date: Thu, 16 May 2024 12:33:36 +0100 From: Mark Brown To: Matti Vaittinen Cc: Matti Vaittinen , Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] regulator: don't cache vsel to ensure voltage setting Message-ID: References: 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="XJhKCSwPgGL9pZtO" Content-Disposition: inline In-Reply-To: X-Cookie: May cause drowsiness. --XJhKCSwPgGL9pZtO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 16, 2024 at 11:53:46AM +0300, Matti Vaittinen wrote: > + /* > + * Some PMICs treat the vsel_reg same as apply-bit. Force it > + * to be written even if the old selector were same as the new > + * (but range changed) by using regmap_write_bits() and not the > + * regmap_update_bits(). > + */ > + ret = regmap_write_bits(rdev->regmap, rdev->desc->vsel_reg, > + rdev->desc->vsel_mask, sel); This feels like a special case for those devices, for devices that don't have this behaviour it'd be a regression in that it'd increase I/O traffic. At least this should be specialised to only devices that have ranges I think? --XJhKCSwPgGL9pZtO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZF7xAACgkQJNaLcl1U h9DbNAf/VLLIo8HA9/ZDXifhrB3586UcRnANOPXHGEAN7ftgwLP39775DG1h3x2E 7DPQwJk3JLXuP9j0mH3B4YkoXAnyQBJr8Geaa2b6EJHSBC7aa/6MNPxc3IrB8m86 pCkzfAUcJVH0ES52rxTmIcyRJ948T09kvVf18+/yeFH+pJHXdHHY9kis5SfWRSBp L3ATdZb+1mJIYtD88051r9a3RaaOGpKFb2VHxV888MxGduftSJRjGqm1Ynw2ACI7 UlAi33taOrja7mZOj1hZySLNFgbphc9nxgbnrm8kT4ptBgXJSK0SpFjwpGYJq3td QDqMmgTYcY/rC0v7zH8Ydr3cuCLwZw== =8ygg -----END PGP SIGNATURE----- --XJhKCSwPgGL9pZtO--