]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: xilinx: use u32 for reset ID in reset APIs
authorRonak Jain <ronak.jain@amd.com>
Fri, 30 Aug 2024 10:00:42 +0000 (03:00 -0700)
committerMichal Simek <michal.simek@amd.com>
Wed, 2 Oct 2024 07:15:30 +0000 (09:15 +0200)
commitf33d6099edf78e3c97900c0173fedbfecc025a9e
tree30d28924d7def6ad7393182d479902c15dd2be8a
parent848f2bbb363d4cdb4202db328a103fd3c34e21a2
firmware: xilinx: use u32 for reset ID in reset APIs

Refactors the reset handling mechanisms by replacing the reset ID's
enum type with a u32. This update improves flexibility, allowing the
reset ID to accommodate a broader range of values, including those
that may not fit into predefined enum values.

The use of u32 for reset ID enhances extensibility, especially for
hardware platforms or features where more granular control of reset
operations is required. By shifting to a general integer type, this
change reduces constraints and simplifies integration with other
system components that rely on non-enum-based reset IDs.

Signed-off-by: Ronak Jain <ronak.jain@amd.com>
Link: https://lore.kernel.org/r/20240830100042.3163511-1-ronak.jain@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h