[PATCH v2 0/3] firmware: exynos-acpm: Use __counted_by()

Krzysztof Kozlowski posted 3 patches 1 month, 3 weeks ago
drivers/firmware/samsung/exynos-acpm-dvfs.c |  9 +++++----
drivers/firmware/samsung/exynos-acpm-pmic.c | 16 ++++++++--------
drivers/firmware/samsung/exynos-acpm.c      | 14 +++++++-------
drivers/firmware/samsung/exynos-acpm.h      |  8 ++++----
4 files changed, 24 insertions(+), 23 deletions(-)
[PATCH v2 0/3] firmware: exynos-acpm: Use __counted_by()
Posted by Krzysztof Kozlowski 1 month, 3 weeks ago
Changes in v2:
- Add tags
- Patch 2/3: typo, single ioread32 lines, merge the two if() for
  txcnt/rxcnt checks
- Link to v1: https://patch.msgid.link/20260214-firmare-acpm-counted-v1-0-32af5735470e@oss.qualcomm.com

Improve safety of the code by using __counted_by/__counted_by_ptr.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (3):
      firmware: exynos-acpm: Use unsigned int for acpm_pmic_linux_errmap index
      firmware: exynos-acpm: Count number of commands in acpm_xfer
      firmware: exynos-acpm: Count acpm_xfer buffers with __counted_by_ptr

 drivers/firmware/samsung/exynos-acpm-dvfs.c |  9 +++++----
 drivers/firmware/samsung/exynos-acpm-pmic.c | 16 ++++++++--------
 drivers/firmware/samsung/exynos-acpm.c      | 14 +++++++-------
 drivers/firmware/samsung/exynos-acpm.h      |  8 ++++----
 4 files changed, 24 insertions(+), 23 deletions(-)
---
base-commit: 635c467cc14ebdffab3f77610217c1dacaf88e8c
change-id: 20260214-firmare-acpm-counted-255f287c3dce

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Re: [PATCH v2 0/3] firmware: exynos-acpm: Use __counted_by()
Posted by Krzysztof Kozlowski 1 month, 3 weeks ago
On Thu, 19 Feb 2026 12:27:09 +0100, Krzysztof Kozlowski wrote:
> Changes in v2:
> - Add tags
> - Patch 2/3: typo, single ioread32 lines, merge the two if() for
>   txcnt/rxcnt checks
> - Link to v1: https://patch.msgid.link/20260214-firmare-acpm-counted-v1-0-32af5735470e@oss.qualcomm.com
> 
> Improve safety of the code by using __counted_by/__counted_by_ptr.
> 
> [...]

Applied, thanks!

[1/3] firmware: exynos-acpm: Use unsigned int for acpm_pmic_linux_errmap index
      https://git.kernel.org/krzk/linux/c/910e91a6496f7e0af80e945a6b850b589b90669e
[2/3] firmware: exynos-acpm: Count number of commands in acpm_xfer
      https://git.kernel.org/krzk/linux/c/00808ae2e679a97dccc5cf0ee4474ba1e2e8a21a
[3/3] firmware: exynos-acpm: Count acpm_xfer buffers with __counted_by_ptr
      https://git.kernel.org/krzk/linux/c/951b8eee0581bbf39e7b0464d679eee8cb9da3e0

Best regards,
-- 
Krzysztof Kozlowski <krzk@kernel.org>