Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1668754rwd; Thu, 15 Jun 2023 13:59:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ps3bubmXbFQOF3t1iGr1yUYkUY8xxFECvDm6ImOI6Ks2AU9YiMvy9KcQJTSB4+9PSry16 X-Received: by 2002:a05:6a20:9384:b0:10c:37ed:3e94 with SMTP id x4-20020a056a20938400b0010c37ed3e94mr7794699pzh.28.1686862764347; Thu, 15 Jun 2023 13:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686862764; cv=none; d=google.com; s=arc-20160816; b=McXVx4QSAmf+Sp8Z/4J6Grlwqz6FtcnazIsDHgzGMCVsHxO4iIr3wd0yYqvyOTSjd3 Ijx9UZsh09LQimtzSulmgjrKX7F3xakouEprKqkYu5/pYepm5oglN0e2f4y6AY180T/i jip+qfCauAfMGnT1tW0uU128Mge4Q4OAG/XF+QCnGoKYi1rRKb1Xd6MOrZWbVn+69DMk JbHPvFFvLnE/cSo22rwaiEoffYl/N6iiNNlRJZHwJQxvekeisimDshI8MIQjRQgn9NwS i98qE9tNlAehKioUkUqE3StSeK7SGW2TEH5GFYhCUuRGp1GCgZktS0nOgvob2s8mM9X9 mqLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EnxEUlqn+J/nPD5pYPbVvgaiUr+J0w36obkpgcW6z3Q=; b=b/c3uUTeeIWjcAZWki8IiVewQJFEVRLlbPy0NO0K59/iqpmiwi5hNgTN5JKC5qv1xd LtzvibYwQS9ZCyst9cBexCzPQDHQFcGT7uCy0ei+O6SiDNlsAvYF1yOQOK6XcRc7Gu4t OyvqIuuHrTPR9lcFZsDUAZXNg6qgNtK1+j2iv6MY5Px0pOdvQtr7SlVwupU8XSN2MTJB kWZH7DUsBUGEafgbaQv7w6+5ENqG5Tfj48de0GJ/86zdeUheN1mpEKdD72zs2xuTnI9t h8LMQxV+jyhKjIBrsJjfGrtZ+w5DbM4aQ3ZKTTsGnMkLDkuC841v68BB/uaDa0bf/JEO Q0FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LrEYaJ4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b0054ff67d6666si2053330pgh.512.2023.06.15.13.59.13; Thu, 15 Jun 2023 13:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LrEYaJ4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjFOUzM (ORCPT + 99 others); Thu, 15 Jun 2023 16:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjFOUzL (ORCPT ); Thu, 15 Jun 2023 16:55:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F37826AA for ; Thu, 15 Jun 2023 13:55:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 34B736144A for ; Thu, 15 Jun 2023 20:55:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B77ABC433C8; Thu, 15 Jun 2023 20:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686862509; bh=EnxEUlqn+J/nPD5pYPbVvgaiUr+J0w36obkpgcW6z3Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LrEYaJ4ZGXTIAz5yOg05F+KhyePCb+8dETrP39NHQGBefpSm863+WF7RZoiwlWigm psQD6OTPUiNT0PaxsumnUI+v5s7+Rk9cL0b3knlHo2YButXsSoLaqNU/FyQbFFbZxk oo6ftaWEhaz2cXOEYGirW2WRaJjkBuB5Hy4wnu1x4QqwCWc5TXZo28hNbqo2vP9MKG VTKHkRTaytagsy2snj7tQuLxmNvACCd/GtYXLc4sux+yE27ZOD9LUL/kpE3B1ADIS/ X0Pi/su/uuhE5DiMXt7X+kDi6lzxqUhFgmCVFZ8wu5/jkNitl2X0EK2TrEg0j7sunj VJw6yfxTsQHDA== Date: Thu, 15 Jun 2023 21:55:05 +0100 From: Mark Brown To: Konrad Dybcio Cc: lkml , Bjorn Andersson Subject: Re: [PATCH] regmap: Check for register readability before checking cache during read Message-ID: <274a7a7c-ca6c-44fe-8f7a-e19aaf86a86a@sirena.org.uk> References: <20230613-b4-regmap-check-readability-before-cache-v1-1-b144c0b01ed9@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pWr7QM6a1Q/bnGPH" Content-Disposition: inline In-Reply-To: X-Cookie: You are false data. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pWr7QM6a1Q/bnGPH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 15, 2023 at 10:45:53PM +0200, Konrad Dybcio wrote: > On 13.06.2023 22:07, Mark Brown wrote: > > Ensure that we don't return a spurious cache hit for unreadable registers > > (eg, with the flat cache which doesn't understand sparseness) by checking > > for readability before we do a cache lookup. > this patch breaks using regmap_field_force_write() on fields that are > parts of registers marked as write-only (e.g. by regmap_access_table.no_ranges) > Is that intended? > What's the recommended fix? Ugh, let's just drop it - it's just an optimisation. --pWr7QM6a1Q/bnGPH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSLeqgACgkQJNaLcl1U h9APfgf+NgEsBtwozjnOrmA9FCn/MC2Rx1p/fIKyit0rpv0+2i25lZqwWHoRZ3uu nErEQ2Fif8fWFNpSVSzyBuBrI2Q4se+C+Huoi/G51jEo1jlgNB1WyA68aewFWguD QHXRi1Vt5COUYZMDhAZC4/4V9Lxx3FVe8317YIOwGDiDSacuyh+1+9SpBvimX5rj apGeYx5rTM74nKIZQMNncpu2oIVZ86HpjDdWpUJy9tDu4oiHPqdRGfv0/FBwm3gV 5Vui/RlF0HApanO13Fe34jqIlgByb2S8J+ZRyKDufmM8BN1JGPjJwmPVr1wjyjzI hJ1u/bPENJQsOi7vlpOwIvHIE3vqoQ== =dxCs -----END PGP SIGNATURE----- --pWr7QM6a1Q/bnGPH--