Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1913549lql; Wed, 13 Mar 2024 11:38:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+BLd5QW1UXKy+Oppaics1ieeMoL8ZU+RX2MpoaHXMlxR19ahQB0tLv8PtmlTVEwNO3BehiH4OplK3go8EXvrbgTpN2IakszwdcCYLWQ== X-Google-Smtp-Source: AGHT+IFmrwkibxMnuTRTshy5+5efcW7xm9aOvo1Hsk3vJPmVF4MnpqT6nKHBI3fgdsY/Pb0uQW1H X-Received: by 2002:a05:6a20:8f21:b0:1a1:6e1f:6fd7 with SMTP id b33-20020a056a208f2100b001a16e1f6fd7mr4269909pzk.2.1710355114704; Wed, 13 Mar 2024 11:38:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710355114; cv=pass; d=google.com; s=arc-20160816; b=kSN8kNca749d+84vTuYLn4Pc7mPQqciaqI1cHKp9uGgiNyXgecSpDfx5UqkdJ7wEGx EvJ0Eg5drRUyAb0rvX0uR+b2mdtB7cuTJ3Pxyf+ugydvmTPXxhNOYreEiWCpj66Ga9Id Sa8EPx+ZXtyt9I4wcrcvF/jaY1ERMN596TRqSAoLP7wBytRWQFbtdOyP0sYPmOy+J7Zz KPtfIXmn8L92NJYsdJyVW/oau01Xdu6TrS9ii5GyPn7K/X7KH7r49TaS6jgH/7TF0N5i PYdrw2yLUajVZEfOHQK1JMILnxoJKHuLuUjOLQeIiTdJTpjBOutDvVoss8cf3Fl0vzAz pmxA== 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=YqSnjnIEDcRLgKBt2IspZpQ59PgOoZA0moQxj55lmcA=; fh=pQa0tpKpQu8Cr2lAKSsTiZadRObl6dOIwdibA/skijU=; b=cQQEq8moHv4p3VE+VQ9/2xEULvvkXiQZpjG6IKnY92/lmk4Krtjzzaxs42cfonYkED YtLTerzg3SfkQB4AF+81oFEhM572+30VlNxQwvvu5JOW3swrYOWKrcwiObE0YtIU0IOk W06pz9yrp95kXAmXhkSXFHzcEJz9lVrcnRDiIg0SCUBkbt/v5JgdbZVrcC7YcM6JCJVE HNy7hC5JA3cqf66ybMhdI3BNomgtW/8JlPNKDNB0N8z7bUNZWrd7Rmj0/kE/87/6aBC/ Mg4dHzGrDEfZm7KrAqKKJFIj4MDW4IRNL0f11Mwe7Hj6Rf/MnTMwOj776i1D43zJf3c+ igCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E14v5X+T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j14-20020a17090ae60e00b0029be12fb99dsi1920978pjy.39.2024.03.13.11.38.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E14v5X+T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102246-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 6BB2728AC21 for ; Wed, 13 Mar 2024 18:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C04627E0F6; Wed, 13 Mar 2024 17:15:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E14v5X+T" 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 E44D67D3FA; Wed, 13 Mar 2024 17:15:01 +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=1710350102; cv=none; b=JNUYaPWG5HwnNJGAafcbFRQ21X2fj/Q96I1AhfSt1g2dcmmiAx/FTJqzEN1Ft15NvlkM/HyfqW6zDWjsUS2XCbgyPza5RZrYRViIhuyDk8+Tbpj4neWMMhRlxKm8yH7zjDVp96WjSg6gEmOPbTzD8UjhA7CRmLv0Vdu4uJxzql0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710350102; c=relaxed/simple; bh=Sq41bGnsArB+oqY0Vaks8WTm1oPv+4GYhpODJO3UZFs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q3ZSVpCtlYN4IUlMY+zt1xGkZTU19GO+klb4FidC3zTJ5SjLQBHTeHyGhM7yGt3AQemL7ESn8h8061cUfzi00q6vjxYkDOZtgFflyxSdqp7zmNtTnz53wOc/06RRWfevV1MGvRoNlQV+ArSd9ahkgFf2vr1vs99ojX/9UmTt//s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E14v5X+T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43443C433F1; Wed, 13 Mar 2024 17:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710350101; bh=Sq41bGnsArB+oqY0Vaks8WTm1oPv+4GYhpODJO3UZFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E14v5X+Tm66BatPOqoGRr8GrD22zbnVSAr88Bws7vW81dsvo2iYcjED3uatQcClOw 172aJSO/LVLQyGVqgcCvGV8rpafalE8QOsalqLHEdMpNsVW7OnNonV/9XTLhtToFZx lrYXOv5cbsE6Zr/6aUEDSPrx9EmA+zp8tuYH58eYoDvBXW3TLVnhxklHgF2mS6UM9H ZviBXD507Q5eLKLbLm9aF1+aF/b/yVD/+X0gfnXmdymfg8hMNHt5juJMXKyqyUIjWw e5v/q4K0CV0se5hZyB6DPX8v4JThMC/M97Y0UWpwPnhFgKObW3g4XZ3o27kL4W7cHz tzBDvDEBbkCUw== Date: Wed, 13 Mar 2024 13:14:59 -0400 From: Sasha Levin To: Mark Brown Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Marek Vasut , Jagan Teki , Maxime Ripard , Robert Foss , Sam Ravnborg , Thomas Zimmermann Subject: Re: [PATCH 5.15 73/76] regmap: Add bulk read/write callbacks into regmap_config Message-ID: References: <20240313164223.615640-1-sashal@kernel.org> <20240313164223.615640-74-sashal@kernel.org> <8bcd85fb-401f-4a3b-b10e-633a0478c0da@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <8bcd85fb-401f-4a3b-b10e-633a0478c0da@sirena.org.uk> On Wed, Mar 13, 2024 at 04:46:56PM +0000, Mark Brown wrote: >On Wed, Mar 13, 2024 at 12:42:20PM -0400, Sasha Levin wrote: >> From: Marek Vasut >> >> [ Upstream commit d77e745613680c54708470402e2b623dcd769681 ] >> >> Currently the regmap_config structure only allows the user to implement >> single element register read/write using .reg_read/.reg_write callbacks. >> The regmap_bus already implements bulk counterparts of both, and is being >> misused as a workaround for the missing bulk read/write callbacks in >> regmap_config by a couple of drivers. To stop this misuse, add the bulk >> read/write callbacks to regmap_config and call them from the regmap core >> code. > >This fairly clearly new functionality. It is, but its needed for 3f42b142ea11 ("serial: max310x: fix IO data corruption in batched operations") which uses this new functionality. -- Thanks, Sasha