All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
To: <gregkh@linuxfoundation.org>
Cc: <michal.simek@xilinx.com>, <abhyuday.godhasara@xilinx.com>,
	<rajan.vaja@xilinx.com>, <manish.narani@xilinx.com>,
	<zou_wei@huawei.com>, <lakshmi.sai.krishna.potthuri@xilinx.com>,
	<wendy.liang@xilinx.com>, <jliang@xilinx.com>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>
Subject: [PATCH v5 3/6] firmware: xilinx: export the feature check of zynqmp firmware
Date: Thu, 21 Oct 2021 06:46:41 -0700	[thread overview]
Message-ID: <20211021134644.14407-4-abhyuday.godhasara@xilinx.com> (raw)
In-Reply-To: <20210915131615.16506-1-abhyuday.godhasara@xilinx.com>

Export the zynqmp_pm_feature(), so it can be use by other as to get API
version available in firmware.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
---
Changes in v5:
- None

Changes in v4:
- None

Changes in v3:
- None

Changes in v2:
- None
---
 drivers/firmware/xilinx/zynqmp.c     | 3 ++-
 include/linux/firmware/xlnx-zynqmp.h | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c
index 6e653e9cea2d..e2c55f48b93d 100644
--- a/drivers/firmware/xilinx/zynqmp.c
+++ b/drivers/firmware/xilinx/zynqmp.c
@@ -153,7 +153,7 @@ static noinline int do_fw_call_hvc(u64 arg0, u64 arg1, u64 arg2,
  *
  * Return: Returns status, either success or error+reason
  */
-static int zynqmp_pm_feature(u32 api_id)
+int zynqmp_pm_feature(const u32 api_id)
 {
 	int ret;
 	u32 ret_payload[PAYLOAD_ARG_CNT];
@@ -190,6 +190,7 @@ static int zynqmp_pm_feature(u32 api_id)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(zynqmp_pm_feature);
 
 /**
  * zynqmp_pm_invoke_fn() - Invoke the system-level platform management layer
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h
index aa9c6574eb66..02ff2f73ba51 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -433,6 +433,7 @@ int zynqmp_pm_pinctrl_set_config(const u32 pin, const u32 param,
 int zynqmp_pm_load_pdi(const u32 src, const u64 address);
 int zynqmp_pm_register_notifier(const u32 node, const u32 event,
 				const u32 wake, const u32 enable);
+int zynqmp_pm_feature(const u32 api_id);
 #else
 static inline int zynqmp_pm_get_api_version(u32 *version)
 {
@@ -651,6 +652,11 @@ static inline int zynqmp_pm_register_notifier(const u32 node, const u32 event,
 {
 	return -ENODEV;
 }
+
+static inline int zynqmp_pm_feature(const u32 api_id)
+{
+	return -ENODEV;
+}
 #endif
 
 #endif /* __FIRMWARE_ZYNQMP_H__ */
-- 
2.32.0.93.g670b81a


WARNING: multiple messages have this Message-ID (diff)
From: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
To: <gregkh@linuxfoundation.org>
Cc: <michal.simek@xilinx.com>, <abhyuday.godhasara@xilinx.com>,
	<rajan.vaja@xilinx.com>, <manish.narani@xilinx.com>,
	<zou_wei@huawei.com>, <lakshmi.sai.krishna.potthuri@xilinx.com>,
	<wendy.liang@xilinx.com>, <jliang@xilinx.com>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>
Subject: [PATCH v5 3/6] firmware: xilinx: export the feature check of zynqmp firmware
Date: Thu, 21 Oct 2021 06:46:41 -0700	[thread overview]
Message-ID: <20211021134644.14407-4-abhyuday.godhasara@xilinx.com> (raw)
In-Reply-To: <20210915131615.16506-1-abhyuday.godhasara@xilinx.com>

Export the zynqmp_pm_feature(), so it can be use by other as to get API
version available in firmware.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
---
Changes in v5:
- None

Changes in v4:
- None

Changes in v3:
- None

Changes in v2:
- None
---
 drivers/firmware/xilinx/zynqmp.c     | 3 ++-
 include/linux/firmware/xlnx-zynqmp.h | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c
index 6e653e9cea2d..e2c55f48b93d 100644
--- a/drivers/firmware/xilinx/zynqmp.c
+++ b/drivers/firmware/xilinx/zynqmp.c
@@ -153,7 +153,7 @@ static noinline int do_fw_call_hvc(u64 arg0, u64 arg1, u64 arg2,
  *
  * Return: Returns status, either success or error+reason
  */
-static int zynqmp_pm_feature(u32 api_id)
+int zynqmp_pm_feature(const u32 api_id)
 {
 	int ret;
 	u32 ret_payload[PAYLOAD_ARG_CNT];
@@ -190,6 +190,7 @@ static int zynqmp_pm_feature(u32 api_id)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(zynqmp_pm_feature);
 
 /**
  * zynqmp_pm_invoke_fn() - Invoke the system-level platform management layer
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h
index aa9c6574eb66..02ff2f73ba51 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -433,6 +433,7 @@ int zynqmp_pm_pinctrl_set_config(const u32 pin, const u32 param,
 int zynqmp_pm_load_pdi(const u32 src, const u64 address);
 int zynqmp_pm_register_notifier(const u32 node, const u32 event,
 				const u32 wake, const u32 enable);
+int zynqmp_pm_feature(const u32 api_id);
 #else
 static inline int zynqmp_pm_get_api_version(u32 *version)
 {
@@ -651,6 +652,11 @@ static inline int zynqmp_pm_register_notifier(const u32 node, const u32 event,
 {
 	return -ENODEV;
 }
+
+static inline int zynqmp_pm_feature(const u32 api_id)
+{
+	return -ENODEV;
+}
 #endif
 
 #endif /* __FIRMWARE_ZYNQMP_H__ */
-- 
2.32.0.93.g670b81a


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2021-10-21 13:47 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210702105144.28457-1-abhyuday.godhasara@xilinx.com>
2021-08-25  7:23 ` [PATCH v3 0/6] Add Xilinx Event Management Driver Michal Simek
2021-08-25  7:23   ` Michal Simek
     [not found]   ` <20210915131615.16506-1-abhyuday.godhasara@xilinx.com>
2021-10-13 12:27     ` [PATCH v4 " Abhyuday Godhasara
2021-10-13 12:27       ` Abhyuday Godhasara
2021-10-13 12:59       ` gregkh
2021-10-13 12:59         ` gregkh
2021-10-13 13:05         ` gregkh
2021-10-13 13:05           ` gregkh
2021-10-13 13:57           ` Abhyuday Godhasara
2021-10-13 13:57             ` Abhyuday Godhasara
2021-10-13 14:10             ` gregkh
2021-10-13 14:10               ` gregkh
2021-10-13 14:21               ` Abhyuday Godhasara
2021-10-13 14:21                 ` Abhyuday Godhasara
2021-10-13 14:26                 ` Abhyuday Godhasara
2021-10-13 14:26                   ` Abhyuday Godhasara
2021-10-13 14:29                 ` gregkh
2021-10-13 14:29                   ` gregkh
2021-10-13 15:30                   ` Michal Simek
2021-10-13 15:30                     ` Michal Simek
2021-10-21 13:55                     ` Abhyuday Godhasara
2021-10-21 13:55                       ` Abhyuday Godhasara
2021-10-21 14:12                       ` gregkh
2021-10-21 14:12                         ` gregkh
2021-10-21 14:18                         ` Abhyuday Godhasara
2021-10-21 14:18                           ` Abhyuday Godhasara
2021-10-21 14:26                           ` gregkh
2021-10-21 14:26                             ` gregkh
2021-10-21 13:46     ` [PATCH v5 " Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara
2021-10-21 13:59       ` Greg KH
2021-10-21 13:59         ` Greg KH
2021-10-25  8:23       ` [PATCH v6 " Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 " Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-11-16  4:43           ` Abhyuday Godhasara
2021-11-16  4:43             ` Abhyuday Godhasara
2021-11-17 15:13             ` gregkh
2021-11-17 15:13               ` gregkh
2021-11-29  7:02               ` [PATCH v8 0/3] " Abhyuday Godhasara
2021-11-29  7:02                 ` Abhyuday Godhasara
2021-11-29  7:02               ` [PATCH v8 1/3] drivers: soc: xilinx: add xilinx event management driver Abhyuday Godhasara
2021-11-29  7:02                 ` Abhyuday Godhasara
2021-11-29  7:02               ` [PATCH v8 2/3] firmware: xilinx: instantiate xilinx event manager driver Abhyuday Godhasara
2021-11-29  7:02                 ` Abhyuday Godhasara
2021-11-29  7:02               ` [PATCH v8 3/3] driver: soc: xilinx: register for power events in zynqmp power driver Abhyuday Godhasara
2021-11-29  7:02                 ` Abhyuday Godhasara
2021-11-30  9:50               ` [PATCH v7 0/6] Add Xilinx Event Management Driver Abhyuday Godhasara
2021-11-30  9:50                 ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 1/6] firmware: xilinx: add register notifier in zynqmp firmware Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 2/6] firmware: xilinx: add macros of node ids for error event Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 3/6] firmware: xilinx: export the feature check of zynqmp firmware Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 4/6] drivers: soc: xilinx: add xilinx event management driver Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 5/6] firmware: xilinx: instantiate xilinx event manager driver Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-26  4:25         ` [PATCH v7 6/6] driver: soc: xilinx: register for power events in zynqmp power driver Abhyuday Godhasara
2021-10-26  4:25           ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 1/6] firmware: xilinx: add register notifier in zynqmp firmware Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-25  8:34         ` Greg KH
2021-10-25  8:34           ` Greg KH
2021-10-25 11:53           ` Abhyuday Godhasara
2021-10-25 11:53             ` Abhyuday Godhasara
2021-10-25 12:03             ` Greg KH
2021-10-25 12:03               ` Greg KH
2021-10-25 12:11               ` Abhyuday Godhasara
2021-10-25 12:11                 ` Abhyuday Godhasara
2021-10-26  7:19                 ` Abhyuday Godhasara
2021-10-26  7:19                   ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 2/6] firmware: xilinx: add macros of node ids for error event Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 3/6] firmware: xilinx: export the feature check of zynqmp firmware Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 4/6] drivers: soc: xilinx: add xilinx event management driver Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 5/6] firmware: xilinx: instantiate xilinx event manager driver Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-25  8:23       ` [PATCH v6 6/6] driver: soc: xilinx: register for power events in zynqmp power driver Abhyuday Godhasara
2021-10-25  8:23         ` Abhyuday Godhasara
2021-10-21 13:46     ` [PATCH v5 1/6] firmware: xilinx: add register notifier in zynqmp firmware Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara
2021-10-21 13:46     ` [PATCH v5 2/6] firmware: xilinx: add macros of node ids for error event Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara
2021-10-21 13:46     ` Abhyuday Godhasara [this message]
2021-10-21 13:46       ` [PATCH v5 3/6] firmware: xilinx: export the feature check of zynqmp firmware Abhyuday Godhasara
2021-10-21 13:46     ` [PATCH v5 4/6] drivers: soc: xilinx: add xilinx event management driver Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara
2021-10-21 13:46     ` [PATCH v5 5/6] firmware: xilinx: instantiate xilinx event manager driver Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara
2021-10-21 13:46     ` [PATCH v5 6/6] driver: soc: xilinx: register for power events in zynqmp power driver Abhyuday Godhasara
2021-10-21 13:46       ` Abhyuday Godhasara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211021134644.14407-4-abhyuday.godhasara@xilinx.com \
    --to=abhyuday.godhasara@xilinx.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jliang@xilinx.com \
    --cc=lakshmi.sai.krishna.potthuri@xilinx.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manish.narani@xilinx.com \
    --cc=michal.simek@xilinx.com \
    --cc=rajan.vaja@xilinx.com \
    --cc=wendy.liang@xilinx.com \
    --cc=zou_wei@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.