Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8442451rwd; Tue, 20 Jun 2023 15:28:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q7pI7c59y75CRVwDDVGDxU/5JFOmDU4VjC3z7DHtKx8p5K5fnWi9Xtlr+UfzP8ldm4Hm2 X-Received: by 2002:a17:902:bd45:b0:1b5:54cc:fcb7 with SMTP id b5-20020a170902bd4500b001b554ccfcb7mr7508304plx.34.1687300136547; Tue, 20 Jun 2023 15:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687300136; cv=none; d=google.com; s=arc-20160816; b=j+wh4Oz/l2p3bNCTa1l8WGEW6/q528bQ1/dQH38YEF9yMyGgCO4fHYfvU+e/nq+i5U 1NWUELU3xEddseYSWpMGfQ79Q6/rS8HPtTcff9fmPIOP6nMEX1lXg6rOKJURmJe5tUgv B+VyHo1qPdD9tCazdMZhYFAaMcv5VgaK4m/AS539OanjKp7mxYW3Gj/wFtelHttiQNzg +D4Bq9UoHMjemweCA6yU1iA108TArLaLHRWtalWrcj/x4FZHWCpOohmy2FyPGARS77QW 3lvXaBnf+G0oFthXlKVv8fAv0OZaW8sFm267blirQhaXhRRhtE2aTN/ZmAFNcMmNiQN0 U8fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=1XQq28xGk/lZ3cxJfl0GqbV3hJlJL2yewHHQl32o1/s=; b=0Zwdp18suXgAdJvz23tAm/6M6hetcDoHORq7CjPX7TlmBzGDvWC+UnVOXFCjcg49i0 2hi1GRJBN99Q/isJN9zsUxTuAwZdT/LVbIiriKosBZmVOf7sbr5g224BX4EeHV5hLSgQ visiC4av/VPam9HFOa44gvkKTArYVIxWY1pNunWZrB9Ln7h6eBeOrHlhcTSYCm4jI/bm kz7tmPRGDZ98R6+vV/Sa1Z+hio4VDZKGDjyp/GfgX37IUVa8ER2A4zPS+sPnXSBWQS3h 8rASLIHiaktA6o9oDP5IM7km1dGjjF0UdAoKob4EOesH1kw/WWfbE/HfdDKYwFOBOBoG cb4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j2dVtePK; 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 n15-20020a170902e54f00b001a51c26f601si2957214plf.627.2023.06.20.15.28.43; Tue, 20 Jun 2023 15:28:56 -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=j2dVtePK; 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 S229638AbjFTWDs (ORCPT + 99 others); Tue, 20 Jun 2023 18:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjFTWDr (ORCPT ); Tue, 20 Jun 2023 18:03:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1F71729 for ; Tue, 20 Jun 2023 15:03:46 -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 DCB3561236 for ; Tue, 20 Jun 2023 22:03:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00546C433C0; Tue, 20 Jun 2023 22:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687298625; bh=i/deUk2eOdt2WdYb5h5I/k3xhjP07Y14gcGog2379Fs=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=j2dVtePKX1opDjOY8755YiN/tIJUN17lT0giVcv/X6Ev/Z0HHStlrtzyaqbNGao/t AAFotgwfVEZOdgeQ+TmHQiSKctCXZzLV+X6jnAtMbSlF7WaCOiyMVfV4bU7OrPfFRJ 8lmhsr2/Jbu+iVn1eTnPnXzQdnuq1rU+ndEXhYyHmMb3I6qt/lQWT2ScqYqxuBFLwK yxgUtymVAZbRL3Xv9Ed8YOHTnzAy4rg/1rGPBMUY9pwu7WtI0XgUXmZXjZbw9PXZc/ 3HJ5W15IPtx4/WlOWo8rrDRSUg2LlRpc2CuZK+qU+/7LChW4NK31nzLqfq+JrqEtZD Nt4v9niDqCaAQ== From: Mark Brown To: gregkh@linuxfoundation.org, rafael@kernel.org, linux-kernel@vger.kernel.org, Russ Weight Cc: yilun.xu@intel.com, matthew.gerlach@linux.intel.com In-Reply-To: <20230620202824.380313-1-russell.h.weight@intel.com> References: <20230620202824.380313-1-russell.h.weight@intel.com> Subject: Re: [PATCH 1/1] regmap: spi-avmm: Fix regmap_bus max_raw_write Message-Id: <168729862371.184128.9402324691745241836.b4-ty@kernel.org> Date: Tue, 20 Jun 2023 23:03:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-c6835 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Tue, 20 Jun 2023 13:28:24 -0700, Russ Weight wrote: > The max_raw_write member of the regmap_spi_avmm_bus structure is defined > as: > .max_raw_write = SPI_AVMM_VAL_SIZE * MAX_WRITE_CNT > > SPI_AVMM_VAL_SIZE == 4 and MAX_WRITE_CNT == 1 so this results in a > maximum write transfer size of 4 bytes which provides only enough space to > transfer the address of the target register. It provides no space for the > value to be transferred. This bug became an issue (divide-by-zero in > _regmap_raw_write()) after the following was accepted into mainline: > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: spi-avmm: Fix regmap_bus max_raw_write commit: c8e796895e2310b6130e7577248da1d771431a77 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark