mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-23 01:35:10 +03:00
tegra: hwpm: return error from read/write function
Currently, read/write functions validate aperture and mmio address pointers. However, the error cannot be returned to the parent resulting into undetected errors. Modify all read write functions to return error on failure. This will also allow HWPM driver to know about unavailable IP perfmuxes. Jira THWPM-41 Change-Id: I6cc4ba7a831d5058657d4f2536b1ce3ab20b30c6 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2707446 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
8e27814e39
commit
c220f9f46f
@@ -54,15 +54,15 @@ struct tegra_soc_hwpm;
|
||||
struct hwpm_ip_inst;
|
||||
struct hwpm_ip_aperture;
|
||||
|
||||
u32 tegra_hwpm_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr);
|
||||
void tegra_hwpm_writel(struct tegra_soc_hwpm *hwpm,
|
||||
int tegra_hwpm_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr, u32 *val);
|
||||
int tegra_hwpm_writel(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr, u32 val);
|
||||
u32 tegra_hwpm_regops_readl(struct tegra_soc_hwpm *hwpm,
|
||||
u64 addr, struct hwpm_ip_inst *ip_inst,
|
||||
struct hwpm_ip_aperture *aperture);
|
||||
void tegra_hwpm_regops_writel(struct tegra_soc_hwpm *hwpm,
|
||||
u64 addr, u32 val, struct hwpm_ip_inst *ip_inst,
|
||||
struct hwpm_ip_aperture *aperture);
|
||||
int tegra_hwpm_regops_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_inst *ip_inst, struct hwpm_ip_aperture *aperture,
|
||||
u64 addr, u32 *val);
|
||||
int tegra_hwpm_regops_writel(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_inst *ip_inst, struct hwpm_ip_aperture *aperture,
|
||||
u64 addr, u32 val);
|
||||
|
||||
#endif /* TEGRA_HWPM_IO_H */
|
||||
|
||||
Reference in New Issue
Block a user