Commit 57c6bcc6 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

greybus: interface: Receive serial-number on hotplug event



Two exactly same modules can be uniquely identified using module's
serial-number. This patch updates the interface hotplug event to also
receive the serial-number of the module.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 63d742b6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -37,6 +37,14 @@ Contact: Greg Kroah-Hartman <greg@kroah.com>
Description:
		The ID of a Greybus interface.

What:		/sys/bus/greybus/device/N-I/serial_number
Date:		October 2015
KernelVersion:	4.XX
Contact:	Greg Kroah-Hartman <greg@kroah.com>
Description:
		Serial Number of the Greybus interface, represented by a 64 bit
		hexadecimal number.

What:		/sys/bus/greybus/device/N-I/product_id
Date:		October 2015
KernelVersion:	4.XX
+0 −0

Empty file added.

+0 −0

Empty file added.

+0 −0

Empty file added.

+1 −0
Original line number Diff line number Diff line
@@ -757,6 +757,7 @@ struct gb_svc_intf_hotplug_request {
		__le32	ddbl1_prod_id;
		__le32	ara_vend_id;
		__le32	ara_prod_id;
		__le64	serial_number;
	} data;
} __packed;
/* hotplug response has no payload */
Loading