Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17645935rwd; Tue, 27 Jun 2023 06:02:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vaykc/Jzu1Emq22mNJ84+nreJJrr0ChbVyz6tMUCsGEcps/mwoobiJUqYqUO24lWT8IB6 X-Received: by 2002:aa7:c1d9:0:b0:51b:c714:a2a1 with SMTP id d25-20020aa7c1d9000000b0051bc714a2a1mr16897664edp.7.1687870977931; Tue, 27 Jun 2023 06:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687870977; cv=none; d=google.com; s=arc-20160816; b=tayscH+Nm6SYKqJMKRUwh2809fOhuogpJvqsi9JnNOMKW7+i0BrsbM4/RcRcksKFa5 7pgU7mZtgasZilJNMKILpQYOnqsVAdOCY+iE6DRMaI9dD/wpKjviwmMf2lG6nSCuZagd m3jwohU5dW+IWPTsDN3BVHg0BjGpP8TrTRj0nByO+ZwF+cso40GlbEMZwOjQraEqnHVB Z+9yoF9MYWhspEI27VxZ4ZQIL0UUNNAmhLsiGDzGNgeVHu+WSpzTK01MB3NSICQDn6W6 mVsIvzqPJ3+VuJSxpQDOadE1PNpPyN0oNyvOZCsg8QRR5Kh6TXxTXpbDw1hcAV3mcBSQ pqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=G3Hsnn9nuU1IAVV480V8WkPLNcto+coQLL0W/NX/3l4=; fh=pfSQelr3C0DrITOZQP0dUXcKaWIG2Lw/xlBcs9q8Htw=; b=NtCalqxUJkp2sukaeZVDc7cx5I5nrRmoq0MyjwjmYUVmIbQih1gWAE4vUXrx7qXHs+ coXZiHTG+CdX5wGwMSz9aPjFOSLo/EfWWl1jxFcKN+xcOz9eS08jVnn3l+969lY7B1ls R3uVAVIlPKqcWzufb9yYqLp0ObawRj2kYZq9t9YB9uP3P0gFUyF81QbDu7YbEBGJAk67 YT1gkx82xEF9MTA+AYNO/yioNOrgVl+l2c4T0B71QBB1KcUsCOKBFHJxbSAOgl6jjJY0 WgFr2IVZQKUb8IzcMy15dY+WBWhIoh4LUXlQ1CImXyQPfESX6tWJWd+o8eZzoJ8Jfhq4 IA0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="HY/XVe/d"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n23-20020a056402515700b0051d91c267a8si3019776edd.100.2023.06.27.06.02.18; Tue, 27 Jun 2023 06:02:57 -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=@google.com header.s=20221208 header.b="HY/XVe/d"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbjF0Msz (ORCPT + 99 others); Tue, 27 Jun 2023 08:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbjF0Msi (ORCPT ); Tue, 27 Jun 2023 08:48:38 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E20D2715 for ; Tue, 27 Jun 2023 05:48:37 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fa99b57a38so20143415e9.0 for ; Tue, 27 Jun 2023 05:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687870115; x=1690462115; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=G3Hsnn9nuU1IAVV480V8WkPLNcto+coQLL0W/NX/3l4=; b=HY/XVe/dNSo1WrR0FefuOTZsftkbYl7EcD9kxoeRrcaUuwmx6FUKtsKV5TijKBJG4E RWhPXjagWrM5LGXb9Q+/Nlp/yBb0NM5p4pQKF/YC3ZylyEeJPIJkjO+aKyl4Q6UUm/0q qziKG8O7OWOAdYwkYBG3MHIWorzWXSxDvpYI2G67VZJExX38vTbkcn67dUu8XedIlMR8 T5pw9sN8wDibHfE6QNrYgwIVaC+zvivXzBoX5VnduF+ufOPHpAwI2awnKHYYAOND7dQR Rix/zbasqYnMYMPKMoYVU6c57owGRiksAygrMVSRk111YWP6a+yd02/OSXV0xk+ECXv9 juUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687870115; x=1690462115; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G3Hsnn9nuU1IAVV480V8WkPLNcto+coQLL0W/NX/3l4=; b=cJGgZNdvlYKKDH/vb7CTPsYw54mxmU23j/JVEEU4XUZBDL48bFpGoKt2/NEVC54BCD eD9JN8YC8OiWWT/Wg8XbxjYSYq/X5rVAvrKnOzcNO4LRbSMfROe/CnKjCWKjH0Xs/O8z 4jIzVlCdO5m8FqxNYGKvQV3jUvJ/8inAYAmSh5TzkZ7jXQKjIsbueprQYvbIXwl6fnHK NgDZl7L1+h2aIwaAXhPtWiGn4drmOYM1xcp9Fi95O1K+vZXJQ2kxk7rIFOJT3xVTo3zq W78orIqIg1S2VKKluhuPxun8eWtWf8lc9/jZrCXJVvkkkJpZ4DVqQ16t0cuF85HtvI9U q/Sw== X-Gm-Message-State: AC+VfDxBalU35J2o1YBMfnY772cRylPHSe0eKJmGJiFHAYOYMh0c4u5S beyPHD/LXftd9NwU2L8+kWgVsFocA23jIStRzt5D1ZtTyIfhjJH1J7g= X-Received: by 2002:adf:d0c8:0:b0:314:4db:e0b1 with SMTP id z8-20020adfd0c8000000b0031404dbe0b1mr95543wrh.11.1687870115369; Tue, 27 Jun 2023 05:48:35 -0700 (PDT) MIME-Version: 1.0 References: <20230620202824.380313-1-russell.h.weight@intel.com> <4fac60f2-ae53-4735-a847-6ebd3e824c61@sirena.org.uk> In-Reply-To: <4fac60f2-ae53-4735-a847-6ebd3e824c61@sirena.org.uk> From: Jim Wylder Date: Tue, 27 Jun 2023 07:48:24 -0500 Message-ID: Subject: Re: [PATCH 1/1] regmap: spi-avmm: Fix regmap_bus max_raw_write To: Mark Brown Cc: Xu Yilun , Russ Weight , gregkh@linuxfoundation.org, rafael@kernel.org, linux-kernel@vger.kernel.org, matthew.gerlach@linux.intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Tue, Jun 27, 2023 at 6:58=E2=80=AFAM Mark Brown wro= te: > > On Tue, Jun 27, 2023 at 11:36:06AM +0800, Xu Yilun wrote: > > > I'm a bit prefer to exclude the reg addr, as it is in stable tree now > > and doesn't see strong reason to change it. And suggest regmap-i2c does > > the same as spi do, that is to reserve space for reg addr/padding by > > reducing the max_raw_read/write value, see: > > It seems better to keep things like this in the core since every time a > bus has to open code something that's something that the bus can get > wrong, as we've seen here. This would mean some churn now but going > forwards it'd be less error prone. Agreed.