hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/libsas/sas_phy.c
....@@ -1,25 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Serial Attached SCSI (SAS) Phy class
34 *
45 * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
56 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
6
- *
7
- * This file is licensed under GPLv2.
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation; either version 2 of the
12
- * License, or (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
- *
237 */
248
259 #include "sas_internal.h"
....@@ -35,7 +19,6 @@
3519 struct asd_sas_event *ev = to_asd_sas_event(work);
3620 struct asd_sas_phy *phy = ev->phy;
3721
38
- phy->in_shutdown = 0;
3922 phy->error = 0;
4023 sas_deform_port(phy, 1);
4124 }
....@@ -45,7 +28,6 @@
4528 struct asd_sas_event *ev = to_asd_sas_event(work);
4629 struct asd_sas_phy *phy = ev->phy;
4730
48
- phy->in_shutdown = 0;
4931 phy->error = 0;
5032 }
5133
....@@ -122,11 +104,11 @@
122104 phy->enabled = 0;
123105 ret = i->dft->lldd_control_phy(phy, PHY_FUNC_DISABLE, NULL);
124106 if (ret)
125
- sas_printk("lldd disable phy%02d returned %d\n",
126
- phy->id, ret);
107
+ pr_notice("lldd disable phy%d returned %d\n", phy->id,
108
+ ret);
127109 } else
128
- sas_printk("phy%02d is not enabled, cannot shutdown\n",
129
- phy->id);
110
+ pr_notice("phy%d is not enabled, cannot shutdown\n", phy->id);
111
+ phy->in_shutdown = 0;
130112 }
131113
132114 /* ---------- Phy class registration ---------- */