public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regmap: Clarify error for unknown cache types
@ 2023-03-24 16:22 Mark Brown
  2023-03-27 13:22 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2023-03-24 16:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mark Brown

The error message printed when we fail to locate the cache type the map
requested says it can't find a compress type rather than a cache type,
fix that. Since the compressed type is the only one currently compiled
conditionally it's likely to be the missing type but that might not always
be true and is still unclear.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/base/regmap/regcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 362e043e26d8..4d3884294fe2 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -148,7 +148,7 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
 			break;
 
 	if (i == ARRAY_SIZE(cache_types)) {
-		dev_err(map->dev, "Could not match compress type: %d\n",
+		dev_err(map->dev, "Could not match cache type: %d\n",
 			map->cache_type);
 		return -EINVAL;
 	}

---
base-commit: e8d018dd0257f744ca50a729e3d042cf2ec9da65
change-id: 20230324-regcache-unknown-d4e2e06ba156

Best regards,
-- 
Mark Brown <broonie@kernel.org>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] regmap: Clarify error for unknown cache types
  2023-03-24 16:22 [PATCH] regmap: Clarify error for unknown cache types Mark Brown
@ 2023-03-27 13:22 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-03-27 13:22 UTC (permalink / raw)
  To: linux-kernel, Mark Brown

On Fri, 24 Mar 2023 16:22:26 +0000, Mark Brown wrote:
> The error message printed when we fail to locate the cache type the map
> requested says it can't find a compress type rather than a cache type,
> fix that. Since the compressed type is the only one currently compiled
> conditionally it's likely to be the missing type but that might not always
> be true and is still unclear.
> 
> 
> [...]

Applied to

   broonie/regmap.git for-next

Thanks!

[1/1] regmap: Clarify error for unknown cache types
      commit: 2d38e8615a21e264042870f811247d5c52c27f4e

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-27 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-24 16:22 [PATCH] regmap: Clarify error for unknown cache types Mark Brown
2023-03-27 13:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox