@@ -77,11 +77,6 @@ static int reset_slot (struct hotplug_slot *slot, int probe);
77
77
*/
78
78
static void release_slot (struct hotplug_slot * hotplug_slot )
79
79
{
80
- struct slot * slot = hotplug_slot -> private ;
81
-
82
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
83
- __func__ , hotplug_slot_name (hotplug_slot ));
84
-
85
80
kfree (hotplug_slot -> ops );
86
81
kfree (hotplug_slot -> info );
87
82
kfree (hotplug_slot );
@@ -129,14 +124,10 @@ static int init_slot(struct controller *ctrl)
129
124
slot -> hotplug_slot = hotplug ;
130
125
snprintf (name , SLOT_NAME_SIZE , "%u" , PSN (ctrl ));
131
126
132
- ctrl_dbg (ctrl , "Registering domain:bus:dev=%04x:%02x:00 sun=%x\n" ,
133
- pci_domain_nr (ctrl -> pcie -> port -> subordinate ),
134
- ctrl -> pcie -> port -> subordinate -> number , PSN (ctrl ));
135
127
retval = pci_hp_register (hotplug ,
136
128
ctrl -> pcie -> port -> subordinate , 0 , name );
137
129
if (retval )
138
- ctrl_err (ctrl ,
139
- "pci_hp_register failed with error %d\n" , retval );
130
+ ctrl_err (ctrl , "pci_hp_register failed: error %d\n" , retval );
140
131
out :
141
132
if (retval ) {
142
133
kfree (ops );
@@ -158,9 +149,6 @@ static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
158
149
{
159
150
struct slot * slot = hotplug_slot -> private ;
160
151
161
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
162
- __func__ , slot_name (slot ));
163
-
164
152
pciehp_set_attention_status (slot , status );
165
153
return 0 ;
166
154
}
@@ -170,9 +158,6 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
170
158
{
171
159
struct slot * slot = hotplug_slot -> private ;
172
160
173
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
174
- __func__ , slot_name (slot ));
175
-
176
161
return pciehp_sysfs_enable_slot (slot );
177
162
}
178
163
@@ -181,19 +166,13 @@ static int disable_slot(struct hotplug_slot *hotplug_slot)
181
166
{
182
167
struct slot * slot = hotplug_slot -> private ;
183
168
184
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
185
- __func__ , slot_name (slot ));
186
-
187
169
return pciehp_sysfs_disable_slot (slot );
188
170
}
189
171
190
172
static int get_power_status (struct hotplug_slot * hotplug_slot , u8 * value )
191
173
{
192
174
struct slot * slot = hotplug_slot -> private ;
193
175
194
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
195
- __func__ , slot_name (slot ));
196
-
197
176
pciehp_get_power_status (slot , value );
198
177
return 0 ;
199
178
}
@@ -202,9 +181,6 @@ static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value)
202
181
{
203
182
struct slot * slot = hotplug_slot -> private ;
204
183
205
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
206
- __func__ , slot_name (slot ));
207
-
208
184
pciehp_get_attention_status (slot , value );
209
185
return 0 ;
210
186
}
@@ -213,9 +189,6 @@ static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value)
213
189
{
214
190
struct slot * slot = hotplug_slot -> private ;
215
191
216
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
217
- __func__ , slot_name (slot ));
218
-
219
192
pciehp_get_latch_status (slot , value );
220
193
return 0 ;
221
194
}
@@ -224,9 +197,6 @@ static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
224
197
{
225
198
struct slot * slot = hotplug_slot -> private ;
226
199
227
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
228
- __func__ , slot_name (slot ));
229
-
230
200
pciehp_get_adapter_status (slot , value );
231
201
return 0 ;
232
202
}
@@ -235,9 +205,6 @@ static int reset_slot(struct hotplug_slot *hotplug_slot, int probe)
235
205
{
236
206
struct slot * slot = hotplug_slot -> private ;
237
207
238
- ctrl_dbg (slot -> ctrl , "%s: physical_slot = %s\n" ,
239
- __func__ , slot_name (slot ));
240
-
241
208
return pciehp_reset_slot (slot , probe );
242
209
}
243
210
@@ -272,14 +239,14 @@ static int pciehp_probe(struct pcie_device *dev)
272
239
if (rc == - EBUSY )
273
240
ctrl_warn (ctrl , "Slot already registered by another hotplug driver\n" );
274
241
else
275
- ctrl_err (ctrl , "Slot initialization failed\n" );
242
+ ctrl_err (ctrl , "Slot initialization failed (%d) \n" , rc );
276
243
goto err_out_release_ctlr ;
277
244
}
278
245
279
246
/* Enable events after we have setup the data structures */
280
247
rc = pcie_init_notification (ctrl );
281
248
if (rc ) {
282
- ctrl_err (ctrl , "Notification initialization failed\n" );
249
+ ctrl_err (ctrl , "Notification initialization failed (%d) \n" , rc );
283
250
goto err_out_free_ctrl_slot ;
284
251
}
285
252
0 commit comments