aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/ntb_hw.c5
-rw-r--r--drivers/ntb/ntb_transport.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c
index 69cd834a8380..7ed4ebc820e9 100644
--- a/drivers/ntb/ntb_hw.c
+++ b/drivers/ntb/ntb_hw.c
@@ -145,6 +145,7 @@ void ntb_unregister_event_callback(struct ntb_device *ndev)
145 * ntb_register_db_callback() - register a callback for doorbell interrupt 145 * ntb_register_db_callback() - register a callback for doorbell interrupt
146 * @ndev: pointer to ntb_device instance 146 * @ndev: pointer to ntb_device instance
147 * @idx: doorbell index to register callback, zero based 147 * @idx: doorbell index to register callback, zero based
148 * @data: pointer to be returned to caller with every callback
148 * @func: callback function to register 149 * @func: callback function to register
149 * 150 *
150 * This function registers a callback function for the doorbell interrupt 151 * This function registers a callback function for the doorbell interrupt
@@ -1235,9 +1236,9 @@ static int ntb_create_callbacks(struct ntb_device *ndev)
1235{ 1236{
1236 int i; 1237 int i;
1237 1238
1238 /* Checken-egg issue. We won't know how many callbacks are necessary 1239 /* Chicken-egg issue. We won't know how many callbacks are necessary
1239 * until we see how many MSI-X vectors we get, but these pointers need 1240 * until we see how many MSI-X vectors we get, but these pointers need
1240 * to be passed into the MSI-X register fucntion. So, we allocate the 1241 * to be passed into the MSI-X register function. So, we allocate the
1241 * max, knowing that they might not all be used, to work around this. 1242 * max, knowing that they might not all be used, to work around this.
1242 */ 1243 */
1243 ndev->db_cb = kcalloc(ndev->limits.max_db_bits, 1244 ndev->db_cb = kcalloc(ndev->limits.max_db_bits,
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 90ec17f0c6eb..12a9e83c008b 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -1583,7 +1583,7 @@ EXPORT_SYMBOL_GPL(ntb_transport_rx_enqueue);
1583 * @len: length of the data buffer 1583 * @len: length of the data buffer
1584 * 1584 *
1585 * Enqueue a new transmit buffer onto the transport queue from which a NTB 1585 * Enqueue a new transmit buffer onto the transport queue from which a NTB
1586 * payload will be transmitted. This assumes that a lock is behing held to 1586 * payload will be transmitted. This assumes that a lock is being held to
1587 * serialize access to the qp. 1587 * serialize access to the qp.
1588 * 1588 *
1589 * RETURNS: An appropriate -ERRNO error value on error, or zero for success. 1589 * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
@@ -1641,7 +1641,7 @@ EXPORT_SYMBOL_GPL(ntb_transport_link_up);
1641 * 1641 *
1642 * Notify NTB transport layer of client's desire to no longer receive data on 1642 * Notify NTB transport layer of client's desire to no longer receive data on
1643 * transport queue specified. It is the client's responsibility to ensure all 1643 * transport queue specified. It is the client's responsibility to ensure all
1644 * entries on queue are purged or otherwise handled appropraitely. 1644 * entries on queue are purged or otherwise handled appropriately.
1645 */ 1645 */
1646void ntb_transport_link_down(struct ntb_transport_qp *qp) 1646void ntb_transport_link_down(struct ntb_transport_qp *qp)
1647{ 1647{