Use direct function call instead of using eemi ops for set_requirement.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -296,10 +296,6 @@ struct zynqmp_pm_query_data { · 295 unmodified lines | |||
| 296 | struct zynqmp_eemi_ops { | 296 | struct zynqmp_eemi_ops { |
| 297 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); | 297 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); |
| 298 | int (*fpga_get_status)(u32 *value); | 298 | int (*fpga_get_status)(u32 *value); |
| 299 | int (*set_requirement)(const u32 node, | ||
| 300 | const u32 capabilities, | ||
| 301 | const u32 qos, | ||
| 302 | const enum zynqmp_pm_request_ack ack); | ||
| 303 | int (*aes)(const u64 address, u32 *out); | 299 | int (*aes)(const u64 address, u32 *out); |
| 304 | }; | 300 | }; |
| 305 | 301 | ||
| @@ -334,6 +330,9 @@ int zynqmp_pm_set_suspend_mode(u32 mode); · 28 unmodified lines | |||
| 334 | int zynqmp_pm_request_node(const u32 node, const u32 capabilities, | 330 | int zynqmp_pm_request_node(const u32 node, const u32 capabilities, |
| 335 | const u32 qos, const enum zynqmp_pm_request_ack ack); | 331 | const u32 qos, const enum zynqmp_pm_request_ack ack); |
| 336 | int zynqmp_pm_release_node(const u32 node); | 332 | int zynqmp_pm_release_node(const u32 node); |
| 333 | int zynqmp_pm_set_requirement(const u32 node, const u32 capabilities, | ||
| 334 | const u32 qos, | ||
| 335 | const enum zynqmp_pm_request_ack ack); | ||
| 337 | #else | 336 | #else |
| 338 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) | 337 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) |
| 339 | { | 338 | { |
| @@ -440,6 +439,13 @@ static inline int zynqmp_pm_release_node(const u32 node) · 100 unmodified lines | |||
| 440 | { | 439 | { |
| 441 | return -ENODEV; | 440 | return -ENODEV; |
| 442 | } | 441 | } |
| 442 | static inline int zynqmp_pm_set_requirement(const u32 node, | ||
| 443 | const u32 capabilities, | ||
| 444 | const u32 qos, | ||
| 445 | const enum zynqmp_pm_request_ack ack) | ||
| 446 | { | ||
| 447 | return -ENODEV; | ||
| 448 | } | ||
| 443 | #endif | 449 | #endif |
| 444 | 450 | ||
| 445 | #endif /* __FIRMWARE_ZYNQMP_H__ */ | 451 | #endif /* __FIRMWARE_ZYNQMP_H__ */ |