ncsi-rsp.c (16217dc79dbc599b110dda26d0421df47904bba4) ncsi-rsp.c (a0509cbeef5dafbab42c42622e012bcc94c3eb9e)
1/*
2 * Copyright Gavin Shan, IBM Corporation 2016.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */

--- 303 unchanged lines hidden (view full) ---

312 if (!nc)
313 return -ENODEV;
314
315 ncm = &nc->modes[NCSI_MODE_LINK];
316 ncm->data[2] = ntohl(rsp->status);
317 ncm->data[3] = ntohl(rsp->other);
318 ncm->data[4] = ntohl(rsp->oem_status);
319
1/*
2 * Copyright Gavin Shan, IBM Corporation 2016.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */

--- 303 unchanged lines hidden (view full) ---

312 if (!nc)
313 return -ENODEV;
314
315 ncm = &nc->modes[NCSI_MODE_LINK];
316 ncm->data[2] = ntohl(rsp->status);
317 ncm->data[3] = ntohl(rsp->other);
318 ncm->data[4] = ntohl(rsp->oem_status);
319
320 if (nr->driven)
320 if (nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN)
321 return 0;
322
323 /* Reset the channel monitor if it has been enabled */
324 spin_lock_irqsave(&nc->lock, flags);
325 nc->timeout = 0;
326 spin_unlock_irqrestore(&nc->lock, flags);
327
328 return 0;

--- 707 unchanged lines hidden ---
321 return 0;
322
323 /* Reset the channel monitor if it has been enabled */
324 spin_lock_irqsave(&nc->lock, flags);
325 nc->timeout = 0;
326 spin_unlock_irqrestore(&nc->lock, flags);
327
328 return 0;

--- 707 unchanged lines hidden ---