| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | |
|---|
| 2 | 3 | /* |
|---|
| 3 | 4 | * IBM ASM Service Processor Device Driver |
|---|
| 4 | 5 | * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 7 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | | - * (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, write to the Free Software |
|---|
| 17 | | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 18 | | - * |
|---|
| 19 | 6 | * Copyright (C) IBM Corporation, 2004 |
|---|
| 20 | 7 | * |
|---|
| 21 | 8 | * Author: Max Asböck <amax@us.ibm.com> |
|---|
| 22 | | - * |
|---|
| 23 | 9 | */ |
|---|
| 24 | 10 | |
|---|
| 25 | 11 | #include <linux/sched.h> |
|---|
| .. | .. |
|---|
| 108 | 94 | } |
|---|
| 109 | 95 | } |
|---|
| 110 | 96 | |
|---|
| 111 | | -/** |
|---|
| 97 | +/* |
|---|
| 112 | 98 | * exec_command |
|---|
| 113 | 99 | * send a command to a service processor |
|---|
| 114 | 100 | * Commands are executed sequentially. One command (sp->current_command) |
|---|
| .. | .. |
|---|
| 154 | 140 | } |
|---|
| 155 | 141 | } |
|---|
| 156 | 142 | |
|---|
| 157 | | -/** |
|---|
| 143 | +/* |
|---|
| 158 | 144 | * Sleep until a command has failed or a response has been received |
|---|
| 159 | 145 | * and the command status been updated by the interrupt handler. |
|---|
| 160 | 146 | * (see receive_response). |
|---|
| .. | .. |
|---|
| 167 | 153 | timeout * HZ); |
|---|
| 168 | 154 | } |
|---|
| 169 | 155 | |
|---|
| 170 | | -/** |
|---|
| 156 | +/* |
|---|
| 171 | 157 | * receive_command_response |
|---|
| 172 | 158 | * called by the interrupt handler when a dot command of type command_response |
|---|
| 173 | 159 | * was received. |
|---|