VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Chris Boot <bootc@bootc.net> 2012-02-16 09:16:35 +0000 committer: Nicholas Bellinger <nab@linux-iscsi.org> 2012-05-09 15:25:17 -0700 commit: 253d92371ca29a470b2bbf91fb9824a9fef05657 parent: d5dc28eb92f2a2305a02cb3a5f1ed36542d47512
Commit Summary:
firewire: Add function to get speed from opaque struct fw_request
Diffstat:
1 file changed, 9 insertions, 0 deletions
diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c
index dea2dcc9310d..db8a965cf712 100644
--- a/drivers/firewire/core-transaction.c
+++ b/drivers/firewire/core-transaction.c
@@ -820,6 +820,15 @@ void fw_send_response(struct fw_card *card,
 }
 EXPORT_SYMBOL(fw_send_response);
 
+/**
+ * fw_get_request_speed() - returns speed at which the @request was received
+ */
+int fw_get_request_speed(struct fw_request *request)
+{
+	return request->response.speed;
+}
+EXPORT_SYMBOL(fw_get_request_speed);
+
 static void handle_exclusive_region_request(struct fw_card *card,
 					    struct fw_packet *p,
 					    struct fw_request *request,