Message ID | 20230613-regmap-kunit-read-write-v1-0-2db337c52827@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp807484vqr; Tue, 13 Jun 2023 13:31:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6B2ThVFKr7guVSGXZ+zcB3gW4tcY6yKdWw31JWQJ6c0ZhkL4f5jzCWdtVsS97XfhYgk9Kf X-Received: by 2002:a17:906:7947:b0:969:e95e:e4f3 with SMTP id l7-20020a170906794700b00969e95ee4f3mr13560577ejo.55.1686688305234; Tue, 13 Jun 2023 13:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686688305; cv=none; d=google.com; s=arc-20160816; b=uCnvJvUhUZPESdKo7KtSdxX/jB6crxGFAMjdE8cK7k3F06K9QqCdzgF2LCR5ULgV+m l16tHPB7nuqh/0sVizk5RLfy07KaxMYQRgMoKW0WLjVAUYTzANTx5VNbrVEVL84hFhkb aL1aWqS/pBrrVK1jJ9JvOdWwGE7Pw7NXK2fFV3A+/a3Oq3Rw49MwrNz6hjUuivDc0LI2 3duHh6UPrWxzq8E4czjHkFhG8WQxxn7BjYFNGuTV3O3s5yvXPw3usAD/9wjG+7LbYKqB 3rR8PPWMjBo0aWYTdd2Y9c+5EEKXnl4xlEtWFkw+Ex93cNnPkVTJMl58O+826PmO4FYE D6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=/IVQ7z2VRan/61p91WSbFVMivfQ5XGF6yzemsIimenw=; b=O2sHHQhxhqA7BQfYbQQK1kdPAgy3HQA7Y8uyJGTPIYEd8+Hu7GFunio4Uiinlc9d6O LbpyoegLOv+O8b8zlC7CoPS3Wxaxq2Bd2HUqPiIaa78IuF/An5MS1SpqT00rXkpQimx0 o7MjGL0TPk1RIh/bZ+EQsbHxqYcRQbdjyWjVGuSgcqzBdng4vIDVFFKiGEJJnZ7j/IdR QfHMExjIxo3Av7vR0k03rmJ6ebfEICov0g7lADdVuIVwvCFYiTFiS20IxKv4px0+/IFG nfe3Oy55Ne2E8XsYvt5OvQgHRQgdLNxyzQ71gv4qgdo6Pj7M0P0lc29jZgkL7B+Te+Na 520g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zvxj9EqL; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt21-20020a170906fa9500b0097885f7b7fdsi6991000ejb.774.2023.06.13.13.31.16; Tue, 13 Jun 2023 13:31:45 -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=Zvxj9EqL; 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 S233782AbjFMUSF (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Tue, 13 Jun 2023 16:18:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232576AbjFMUSC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Jun 2023 16:18:02 -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 AEFC41BE5 for <linux-kernel@vger.kernel.org>; Tue, 13 Jun 2023 13:18:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 319E363AA4 for <linux-kernel@vger.kernel.org>; Tue, 13 Jun 2023 20:18:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 160EDC433D9; Tue, 13 Jun 2023 20:17:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686687480; bh=4NVIeFSdf1rRgiU1Qv3QSKfV/9bYeQ/t9TlbhHX/tZs=; h=From:Subject:Date:To:From; b=Zvxj9EqLq6IHrNdMtKFcL4Dg5t92N3SIX7FkeIQjeLNHGv2ivxP1p38mon+pEE517 xQQTX44l3WEEHUwlGNjIYx1Wrs3PnZam7YK/yXyvRdL+7uwlsfLU4hmCW4bHkcZEAL qyZnrKxuW6f7aRyvME6autgdBA0Rbv4TAXU1dBAa7zKHUc92XgYWTY7YmI+O80RAqH Wtaj9vchLWxFS8y80Ihce4l/wzfpn636Ar8NsOmsP8IPwH+3Bs0C5YOb3HEXusXV9d 4LR428fPy6TwlsMln6VFslfs+sMZ+v6G/JtTBo3uKyb1PT9JmlKOHgH4jDc3iPH6j+ MDkYHcdiM+6KA== From: Mark Brown <broonie@kernel.org> Subject: [PATCH 0/3] regmap: Add KUnit tests for read/write checking Date: Tue, 13 Jun 2023 21:17:41 +0100 Message-Id: <20230613-regmap-kunit-read-write-v1-0-2db337c52827@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOXOiGQC/x3NywqDMBCF4VeRWXcgJqVgX6V0MUlGHcQoE28gv ntjl9+Bn3NCZhXO8K5OUN4ky5QK6kcFoafUMUosBmusM6/aoXI30ozDmmQpoIi7ysJo7NM1LkT PrYFSe8qMXimF/u73SYd7npVbOf6Hn+91/QCqhAW9gAAAAA== To: linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> X-Mailer: b4 0.13-dev-c6835 X-Developer-Signature: v=1; a=openpgp-sha256; l=934; i=broonie@kernel.org; h=from:subject:message-id; bh=4NVIeFSdf1rRgiU1Qv3QSKfV/9bYeQ/t9TlbhHX/tZs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkiM70jmbSIepy4vBULd35cD3X2oQGJ6i+nkn47hKA aCd5A2OJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZIjO9AAKCRAk1otyXVSH0GtEB/ 9lTFH7vSZfMJG5tSGAHJzfN4GykNni4mJ+QhEEk7JPUW8cvcKrSGKfjxtLy/E8h4up36CdMjP/GALZ 7E0Bvebyc0tCNGHmdfs9K85aNnx30Z7ibl7/zxVVqxPx752pnXTUAZ4Y4xJutm5vbt9OH27ZEb5bAv byXhHwNBqOZa6uVXajjDQ/Jb0Lgwz9dGLpVsQco8Uvhz/xHQ5jb62mOXCfCh/07xpiq0K6Jq4YyY4I 12CuNMxdS+KtAK4IrY6wfOfkaLlc9OBJpvgIyPdEThf/kqtvaGwnqCE7Adj2XKQteRl05cifESPko6 igveAvXT3tNXNKFUPJKfS6FsPykA5d X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768620876629465158?= X-GMAIL-MSGID: =?utf-8?q?1768620876629465158?= |
Series |
regmap: Add KUnit tests for read/write checking
|
|
Message
Mark Brown
June 13, 2023, 8:17 p.m. UTC
Since Takashi found an issue with maple tree syncing registers it
shouldn't do add some test cases that catch that case and some more
potential issues, ideally we'd run through the combination of
readability with all possible I/O calls but that's lifting for another
day. We did find one issue with missing readability checks which will
be fixed separately.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (3):
regmap: Add test that writes to write only registers are prevented
regmap: Add a test case for write only registers
regmap: Add test to make sure we don't sync to read only registers
drivers/base/regmap/regmap-kunit.c | 115 +++++++++++++++++++++++++++++++++++++
1 file changed, 115 insertions(+)
---
base-commit: ecfb8ce26d02ec136b4e1ae8c5a77d22d335057b
change-id: 20230613-regmap-kunit-read-write-024393cdbef0
Best regards,
Comments
On Tue, 13 Jun 2023 21:17:41 +0100, Mark Brown wrote: > Since Takashi found an issue with maple tree syncing registers it > shouldn't do add some test cases that catch that case and some more > potential issues, ideally we'd run through the combination of > readability with all possible I/O calls but that's lifting for another > day. We did find one issue with missing readability checks which will > be fixed separately. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/3] regmap: Add test that writes to write only registers are prevented commit: 180033061e203a7c5510e7c38bccd885657de517 [2/3] regmap: Add a test case for write only registers commit: a07bff4054c9e2b3a5c5790312a4a45aaeca7afe [3/3] regmap: Add test to make sure we don't sync to read only registers commit: 357a1ebd0c012f5421252547ebf4ee619b45733d 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