Message ID | 20230610-regcache-raw-kunit-v1-0-583112cd28ac@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 k13csp2037457vqr; Sun, 11 Jun 2023 06:26:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eMcp+z+jS6SbBtAtDB/O72j3zmZHE0SCdvAIdCR5fZPzh6VylihUtu8XxzR/61maEDcCK X-Received: by 2002:aa7:d34e:0:b0:50b:cc96:633a with SMTP id m14-20020aa7d34e000000b0050bcc96633amr3321147edr.24.1686489986154; Sun, 11 Jun 2023 06:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686489986; cv=none; d=google.com; s=arc-20160816; b=aeqrAsgeTKrf2kSv/wlwDhxBBFIs0yoldaXRZnVlCaaUcbY6yuckhvbWtJn2ot0Lfc f1ZuX/w7C+zkTSyGCfj0RVO//WJVo0ld46Aq1PxfnhuAY3lzfjZgvspChkVsFix/hMhu EDnU4mgywHXl6YRYZ/lz/1QSzb64zlWzskUxqCBtnzFesyYAx3kfA+Gjp1dD1NYAbYue 4FTRbHpMTVC3OoKaXlOAQb4tARfl2IGOj9R5iDqPw1w3R1D4bsTAg4aXR3q0aVoAQ2O+ 3Fk59YeQYhXIhrQtxxGa9OhiyTW9fbpq2D1CGfl3LROUMWPQNoWFeRHAdMrVRory9lAJ wt9A== 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=40JyiyZ6Pd3lGbDqhVIeAyd9rHp6XnvTKzBdRFkVE/8=; b=JEzt4tHNjFx8McI8fyxV/ZA+QKk3C1V5rGTh4SE498j30NAANcmDneOmhC9zrS5PaV gBz5ieOONDI37HujfHa1Xw0glaXV3o3KLGNnVXHvEqO9MT2/eW0bC4qdQpzT55qqQLUw TKYai53rhgip105YOfaTSs0fYIE4Er7tqn3KRL5wvpdEmSW3wxlzTfz+oJ9OOylqvKUL fcvQEZSfg3oWePmSlfpePvnMMIugbcAd8tew9I1p6eu1RBZoRpmw3blretNUb0TmpmqU 8pMRRYmVho6frBrzBUDlbEBddfAegaTau48Lr561e97FYbjLPL+v+mFOJ9dYF2vMgTKi blzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Igqs7ycj; 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 y5-20020a50e605000000b005162d807f69si5256794edm.8.2023.06.11.06.26.01; Sun, 11 Jun 2023 06:26:26 -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=Igqs7ycj; 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 S231952AbjFKNZU (ORCPT <rfc822;liningstudo@gmail.com> + 99 others); Sun, 11 Jun 2023 09:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjFKNZR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 11 Jun 2023 09:25:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32E4B1B6 for <linux-kernel@vger.kernel.org>; Sun, 11 Jun 2023 06:25:17 -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 C47806125D for <linux-kernel@vger.kernel.org>; Sun, 11 Jun 2023 13:25:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE29C4339B; Sun, 11 Jun 2023 13:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686489916; bh=DQeYkSloSzpPBdUaChSN8yc/bMD0y6doKlE5qMK/4r8=; h=From:Subject:Date:To:From; b=Igqs7ycj6sQNC5IP4H515MOXVe60M/6gVsU+DoPGfFBcRtrt4fITJsnIGLEUHsMmA gJ6roiJjWbFtnf/t8Gto3OAfDny+6KKFfnTSTm1cQGxYEdfNE0+5ngFz5+d3/QdkUn qkcqqKp14mX+fAKasSt90Q0m857iuGNHwx1xrctakU/Hw9RCwKZ5fTarcNqTn0Vxx2 nYPzVJxknbCiWYL3p0BLSZcvud1ONUsQxvJX06sT5Sr7EHXl/PQHyMothp35tVk0Oy /IkmZ/VTv9Ym3dDQqZ4KO5wRBth6mbFZVNlCxX9yK5e/jfZjnGnmTmRHtuNP2O2fSo BApL6gCAdv1gg== From: Mark Brown <broonie@kernel.org> Subject: [PATCH 0/2] regmap: Provide basic test coverage for raw I/O Date: Sun, 11 Jun 2023 14:25:01 +0100 Message-Id: <20230610-regcache-raw-kunit-v1-0-583112cd28ac@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAC3LhWQC/x2NywrCMBAAf6Xs2YU01RD8FfGwSbfNIkbZrQ8o/ XdTj8MwzArGKmxw7lZQfovJozboDx3kQnVmlLExeOcHF3qHynOmXBiVPnh7VVlwGGMIU4r+GE/ QwkTGmJRqLnt6J1tYd/FUnuT7v12u2/YDpxHoSn0AAAA= To: linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org> X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=openpgp-sha256; l=962; i=broonie@kernel.org; h=from:subject:message-id; bh=DQeYkSloSzpPBdUaChSN8yc/bMD0y6doKlE5qMK/4r8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhcs5C5CRm5h+9HNSx5qG4VTO6zIOYYGD4qil5zYc 3mZWHnqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZIXLOQAKCRAk1otyXVSH0K06B/ 9tbwu1oVs7+z7deWzZ3H+nnXUsjpUzoIgVlX0Bs3FfirTjkttCVOZ/aHaYYMylvILSPeKsn5TfYaQ0 RmncZPmPIPujpX14iB6mtFwWyLb17uE/MaZPzA+EivxKWAZXTLtDOCLVzVQkD+TDIdk2NDKtRL/BS6 5f1M+JjisKPPwLGl59+nBqMNS1Dt2XLj1mDBu5m2bY7x3IAoTk3F1FH7QeRebuwdygthVEYFGWZrtP cugzkdGeGZU/mTcKTIJGkQVLYs3SaHzpc4YLEmpW01XU7GU63nf+HUcSMJh7ZcJ1NJmlumX7+aszdl CejLhtf95bLZQkoKQBGzoGhHt60hD9 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB 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: <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?1768412923771290623?= X-GMAIL-MSGID: =?utf-8?q?1768412923771290623?= |
Series |
regmap: Provide basic test coverage for raw I/O
|
|
Message
Mark Brown
June 11, 2023, 1:25 p.m. UTC
Our existing coverage only deals with buses that provide single register
read and write operations, extend it to cover raw buses using a similar
approach with a RAM backed register map that the tests can inspect to
check operations. This coverage could be more complete but provides a
good start.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
regmap: Provide a ram backed regmap with raw support
regmap: Provide basic KUnit coverage for the raw register I/O
drivers/base/regmap/Makefile | 2 +-
drivers/base/regmap/internal.h | 8 +
drivers/base/regmap/regmap-kunit.c | 327 +++++++++++++++++++++++++++++++++++
drivers/base/regmap/regmap-raw-ram.c | 133 ++++++++++++++
4 files changed, 469 insertions(+), 1 deletion(-)
---
base-commit: 9561de3a55bed6bdd44a12820ba81ec416e705a7
change-id: 20230610-regcache-raw-kunit-3d866fb82485
Best regards,
Comments
On Sun, 11 Jun 2023 14:25:01 +0100, Mark Brown wrote: > Our existing coverage only deals with buses that provide single register > read and write operations, extend it to cover raw buses using a similar > approach with a RAM backed register map that the tests can inspect to > check operations. This coverage could be more complete but provides a > good start. > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/2] regmap: Provide a ram backed regmap with raw support commit: 65dd2f671875b1d97b6fa9bcf7677f5e1c55f776 [2/2] regmap: Provide basic KUnit coverage for the raw register I/O commit: 155a6bd6375b584c8bdbf963b8ddef672ff9aca3 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