@@ -143,7 +143,7 @@ static void flush_channel_fifos(struct most_channel *c)
143
143
spin_unlock_irqrestore (& c -> fifo_lock , hf_flags );
144
144
145
145
if (unlikely ((!list_empty (& c -> fifo ) || !list_empty (& c -> halt_fifo ))))
146
- dev_warn (& c -> dev , "fifo | trash fifo not empty\n" );
146
+ dev_warn (& c -> dev , "Channel or trash fifo not empty\n" );
147
147
}
148
148
149
149
/**
@@ -629,7 +629,7 @@ int most_set_cfg_datatype(char *mdev, char *mdev_ch, char *buf)
629
629
}
630
630
631
631
if (i == ARRAY_SIZE (ch_data_type ))
632
- dev_warn (& c -> dev , "invalid attribute settings\n" );
632
+ dev_warn (& c -> dev , "Invalid attribute settings\n" );
633
633
return 0 ;
634
634
}
635
635
@@ -799,7 +799,7 @@ static int hdm_enqueue_thread(void *data)
799
799
mutex_unlock (& c -> nq_mutex );
800
800
801
801
if (unlikely (ret )) {
802
- dev_err (& c -> dev , "hdm enqueue failed\n" );
802
+ dev_err (& c -> dev , "Buffer enqueue failed\n" );
803
803
nq_hdm_mbo (mbo );
804
804
c -> hdm_enqueue_task = NULL ;
805
805
return 0 ;
@@ -926,7 +926,7 @@ static int arm_mbo_chain(struct most_channel *c, int dir,
926
926
void most_submit_mbo (struct mbo * mbo )
927
927
{
928
928
if (WARN_ONCE (!mbo || !mbo -> context ,
929
- "bad mbo or missing channel reference\n" ))
929
+ "Bad buffer or missing channel reference\n" ))
930
930
return ;
931
931
932
932
nq_hdm_mbo (mbo );
@@ -945,8 +945,6 @@ static void most_write_completion(struct mbo *mbo)
945
945
struct most_channel * c ;
946
946
947
947
c = mbo -> context ;
948
- if (mbo -> status == MBO_E_INVAL )
949
- dev_warn (& c -> dev , "Tx MBO status: invalid\n" );
950
948
if (unlikely (c -> is_poisoned || (mbo -> status == MBO_E_CLOSE )))
951
949
trash_mbo (mbo );
952
950
else
@@ -1105,14 +1103,14 @@ int most_start_channel(struct most_interface *iface, int id,
1105
1103
goto out ; /* already started by another component */
1106
1104
1107
1105
if (!try_module_get (iface -> mod )) {
1108
- dev_err (& c -> dev , "failed to acquire HDM lock\n" );
1106
+ dev_err (& c -> dev , "Failed to acquire HDM lock\n" );
1109
1107
mutex_unlock (& c -> start_mutex );
1110
1108
return - ENOLCK ;
1111
1109
}
1112
1110
1113
1111
c -> cfg .extra_len = 0 ;
1114
1112
if (c -> iface -> configure (c -> iface , c -> channel_id , & c -> cfg )) {
1115
- dev_err (& c -> dev , "channel configuration failed. Go check settings...\n" );
1113
+ dev_err (& c -> dev , "Channel configuration failed. Go check settings...\n" );
1116
1114
ret = - EINVAL ;
1117
1115
goto err_put_module ;
1118
1116
}
@@ -1186,7 +1184,7 @@ int most_stop_channel(struct most_interface *iface, int id,
1186
1184
1187
1185
c -> is_poisoned = true;
1188
1186
if (c -> iface -> poison_channel (c -> iface , c -> channel_id )) {
1189
- dev_err (& c -> dev , "Cannot stop channel %d of mdev %s\n" , c -> channel_id ,
1187
+ dev_err (& c -> dev , "Failed to stop channel %d of interface %s\n" , c -> channel_id ,
1190
1188
c -> iface -> description );
1191
1189
mutex_unlock (& c -> start_mutex );
1192
1190
return - EAGAIN ;
@@ -1196,7 +1194,7 @@ int most_stop_channel(struct most_interface *iface, int id,
1196
1194
1197
1195
#ifdef CMPL_INTERRUPTIBLE
1198
1196
if (wait_for_completion_interruptible (& c -> cleanup )) {
1199
- dev_err (& c -> dev , "Interrupted while clean up ch %d\n" , c -> channel_id );
1197
+ dev_err (& c -> dev , "Interrupted while cleaning up channel %d\n" , c -> channel_id );
1200
1198
mutex_unlock (& c -> start_mutex );
1201
1199
return - EINTR ;
1202
1200
}
@@ -1293,7 +1291,7 @@ int most_register_interface(struct most_interface *iface)
1293
1291
1294
1292
id = ida_simple_get (& mdev_id , 0 , 0 , GFP_KERNEL );
1295
1293
if (id < 0 ) {
1296
- dev_err (iface -> dev , "Failed to alloc mdev ID\n" );
1294
+ dev_err (iface -> dev , "Failed to allocate device ID\n" );
1297
1295
return id ;
1298
1296
}
1299
1297
@@ -1310,7 +1308,7 @@ int most_register_interface(struct most_interface *iface)
1310
1308
iface -> dev -> groups = interface_attr_groups ;
1311
1309
dev_set_drvdata (iface -> dev , iface );
1312
1310
if (device_register (iface -> dev )) {
1313
- dev_err (iface -> dev , "registering iface->dev failed \n" );
1311
+ dev_err (iface -> dev , "Failed to register interface device \n" );
1314
1312
kfree (iface -> p );
1315
1313
put_device (iface -> dev );
1316
1314
ida_simple_remove (& mdev_id , id );
@@ -1354,7 +1352,7 @@ int most_register_interface(struct most_interface *iface)
1354
1352
mutex_init (& c -> nq_mutex );
1355
1353
list_add_tail (& c -> list , & iface -> p -> channel_list );
1356
1354
if (device_register (& c -> dev )) {
1357
- dev_err (& c -> dev , "registering c->dev failed \n" );
1355
+ dev_err (& c -> dev , "Failed to register channel device \n" );
1358
1356
goto err_free_most_channel ;
1359
1357
}
1360
1358
}
@@ -1463,12 +1461,12 @@ static int __init most_init(void)
1463
1461
1464
1462
err = bus_register (& mostbus );
1465
1463
if (err ) {
1466
- pr_err ("Cannot register most bus\n" );
1464
+ pr_err ("Failed to register most bus\n" );
1467
1465
return err ;
1468
1466
}
1469
1467
err = driver_register (& mostbus_driver );
1470
1468
if (err ) {
1471
- pr_err ("Cannot register core driver\n" );
1469
+ pr_err ("Failed to register core driver\n" );
1472
1470
goto err_unregister_bus ;
1473
1471
}
1474
1472
configfs_init ();
0 commit comments