Thread (17 messages) 17 messages, 4 authors, 2019-10-22

RE: [PATCH net-next 2/4] bus: fsl-mc: add the fsl_mc_get_endpoint function

From: Ioana Ciornei <ioana.ciornei@nxp.com>
Date: 2019-10-22 09:47:12

Hi Ioana
Hi Andrew, 
quoted
+/**
+ * dprc_get_connection() - Get connected endpoint and link status if
connection
quoted
+ *			exists.
+ * @mc_io:	Pointer to MC portal's I/O object
+ * @cmd_flags:	Command flags; one or more of 'MC_CMD_FLAG_'
+ * @token:	Token of DPRC object
+ * @endpoint1:	Endpoint 1 configuration parameters
+ * @endpoint2:	Returned endpoint 2 configuration parameters
+ * @state:	Returned link state:
+ *		1 - link is up;
+ *		0 - link is down;
+ *		-1 - no connection (endpoint2 information is irrelevant)
+ *
+ * Return:     '0' on Success; -ENAVAIL if connection does not exist.
#define	ENAVAIL		119	/* No XENIX semaphores
available */

This is not a semaphore.

How about

#define	ENOTCONN	107	/* Transport endpoint is not
connected */

	Andrew
ENOTCONN is a better fit here. Will change. 

Thanks,
Ioana
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help