@@ -95,7 +95,7 @@ static int apb_cold_boot(struct device *dev, void *data)
95
95
96
96
ret = apb_ctrl_coldboot (dev );
97
97
if (ret )
98
- dev_warn (dev , "Failed to coldboot\n" );
98
+ dev_warn (dev , "failed to coldboot\n" );
99
99
100
100
/*Child nodes are independent, so do not exit coldboot operation */
101
101
return 0 ;
@@ -107,7 +107,7 @@ static int apb_poweroff(struct device *dev, void *data)
107
107
108
108
/* Enable HUB3613 into HUB mode. */
109
109
if (usb3613_hub_mode_ctrl (false))
110
- dev_warn (dev , "Failed to control hub device\n" );
110
+ dev_warn (dev , "failed to control hub device\n" );
111
111
112
112
return 0 ;
113
113
}
@@ -142,7 +142,7 @@ static irqreturn_t arche_platform_wd_irq_thread(int irq, void *devid)
142
142
143
143
/* Enable HUB3613 into HUB mode. */
144
144
if (usb3613_hub_mode_ctrl (true))
145
- dev_warn (arche_pdata -> dev , "Failed to control hub device\n" );
145
+ dev_warn (arche_pdata -> dev , "failed to control hub device\n" );
146
146
147
147
spin_lock_irqsave (& arche_pdata -> wake_lock , flags );
148
148
arche_platform_set_wake_detect_state (arche_pdata , WD_STATE_IDLE );
@@ -228,12 +228,12 @@ arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata)
228
228
229
229
ret = clk_prepare_enable (arche_pdata -> svc_ref_clk );
230
230
if (ret ) {
231
- dev_err (arche_pdata -> dev , "Failed to enable svc_ref_clk: %d\n" ,
231
+ dev_err (arche_pdata -> dev , "failed to enable svc_ref_clk: %d\n" ,
232
232
ret );
233
233
return ret ;
234
234
}
235
235
236
- /* Bring SVC out of reset */
236
+ /* bring SVC out of reset */
237
237
svc_reset_onoff (arche_pdata -> svc_reset , !arche_pdata -> is_reset_act_hi );
238
238
239
239
arche_platform_set_state (arche_pdata , ARCHE_PLATFORM_STATE_ACTIVE );
@@ -262,7 +262,7 @@ arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata)
262
262
263
263
ret = clk_prepare_enable (arche_pdata -> svc_ref_clk );
264
264
if (ret ) {
265
- dev_err (arche_pdata -> dev , "Failed to enable svc_ref_clk: %d\n" ,
265
+ dev_err (arche_pdata -> dev , "failed to enable svc_ref_clk: %d\n" ,
266
266
ret );
267
267
return ret ;
268
268
}
@@ -340,7 +340,7 @@ static ssize_t state_store(struct device *dev,
340
340
if (arche_pdata -> state == ARCHE_PLATFORM_STATE_STANDBY )
341
341
goto exit ;
342
342
343
- dev_warn (arche_pdata -> dev , "Standby state not supported\n" );
343
+ dev_warn (arche_pdata -> dev , "standby state not supported\n" );
344
344
} else if (sysfs_streq (buf , "fw_flashing" )) {
345
345
if (arche_pdata -> state == ARCHE_PLATFORM_STATE_FW_FLASHING )
346
346
goto exit ;
@@ -358,7 +358,7 @@ static ssize_t state_store(struct device *dev,
358
358
if (ret )
359
359
goto exit ;
360
360
} else {
361
- dev_err (arche_pdata -> dev , "Unknown state\n" );
361
+ dev_err (arche_pdata -> dev , "unknown state\n" );
362
362
ret = - EINVAL ;
363
363
}
364
364
@@ -434,7 +434,7 @@ static int arche_platform_probe(struct platform_device *pdev)
434
434
if (!arche_pdata )
435
435
return - ENOMEM ;
436
436
437
- /* Setup svc reset gpio */
437
+ /* setup svc reset gpio */
438
438
arche_pdata -> is_reset_act_hi = of_property_read_bool (np ,
439
439
"svc,reset-active-high" );
440
440
if (arche_pdata -> is_reset_act_hi )
@@ -445,7 +445,7 @@ static int arche_platform_probe(struct platform_device *pdev)
445
445
arche_pdata -> svc_reset = devm_gpiod_get (dev , "svc,reset" , flags );
446
446
if (IS_ERR (arche_pdata -> svc_reset )) {
447
447
ret = PTR_ERR (arche_pdata -> svc_reset );
448
- dev_err (dev , "Failed to request svc-reset GPIO: %d\n" , ret );
448
+ dev_err (dev , "failed to request svc-reset GPIO: %d\n" , ret );
449
449
return ret ;
450
450
}
451
451
arche_platform_set_state (arche_pdata , ARCHE_PLATFORM_STATE_OFF );
@@ -454,24 +454,24 @@ static int arche_platform_probe(struct platform_device *pdev)
454
454
GPIOD_OUT_LOW );
455
455
if (IS_ERR (arche_pdata -> svc_sysboot )) {
456
456
ret = PTR_ERR (arche_pdata -> svc_sysboot );
457
- dev_err (dev , "Failed to request sysboot0 GPIO: %d\n" , ret );
457
+ dev_err (dev , "failed to request sysboot0 GPIO: %d\n" , ret );
458
458
return ret ;
459
459
}
460
460
461
- /* Setup the clock request gpio first */
461
+ /* setup the clock request gpio first */
462
462
arche_pdata -> svc_refclk_req = devm_gpiod_get (dev , "svc,refclk-req" ,
463
463
GPIOD_IN );
464
464
if (IS_ERR (arche_pdata -> svc_refclk_req )) {
465
465
ret = PTR_ERR (arche_pdata -> svc_refclk_req );
466
- dev_err (dev , "Failed to request svc-clk-req GPIO: %d\n" , ret );
466
+ dev_err (dev , "failed to request svc-clk-req GPIO: %d\n" , ret );
467
467
return ret ;
468
468
}
469
469
470
470
/* setup refclk2 to follow the pin */
471
471
arche_pdata -> svc_ref_clk = devm_clk_get (dev , "svc_ref_clk" );
472
472
if (IS_ERR (arche_pdata -> svc_ref_clk )) {
473
473
ret = PTR_ERR (arche_pdata -> svc_ref_clk );
474
- dev_err (dev , "Failed to get svc_ref_clk: %d\n" , ret );
474
+ dev_err (dev , "failed to get svc_ref_clk: %d\n" , ret );
475
475
return ret ;
476
476
}
477
477
@@ -504,28 +504,28 @@ static int arche_platform_probe(struct platform_device *pdev)
504
504
IRQF_TRIGGER_RISING | IRQF_ONESHOT ,
505
505
dev_name (dev ), arche_pdata );
506
506
if (ret ) {
507
- dev_err (dev , "Failed to request wake detect IRQ %d\n" , ret );
507
+ dev_err (dev , "failed to request wake detect IRQ %d\n" , ret );
508
508
return ret ;
509
509
}
510
510
disable_irq (arche_pdata -> wake_detect_irq );
511
511
512
512
ret = device_create_file (dev , & dev_attr_state );
513
513
if (ret ) {
514
- dev_err (dev , "Failed to create state file in sysfs\n" );
514
+ dev_err (dev , "failed to create state file in sysfs\n" );
515
515
return ret ;
516
516
}
517
517
518
518
ret = of_platform_populate (np , NULL , NULL , dev );
519
519
if (ret ) {
520
- dev_err (dev , "Failed to populate child nodes %d\n" , ret );
520
+ dev_err (dev , "failed to populate child nodes %d\n" , ret );
521
521
goto err_device_remove ;
522
522
}
523
523
524
524
arche_pdata -> pm_notifier .notifier_call = arche_platform_pm_notifier ;
525
525
ret = register_pm_notifier (& arche_pdata -> pm_notifier );
526
526
527
527
if (ret ) {
528
- dev_err (dev , "Failed to register pm notifier %d\n" , ret );
528
+ dev_err (dev , "failed to register pm notifier %d\n" , ret );
529
529
goto err_device_remove ;
530
530
}
531
531
@@ -570,7 +570,7 @@ static void arche_platform_remove(struct platform_device *pdev)
570
570
arche_platform_poweroff_seq (arche_pdata );
571
571
572
572
if (usb3613_hub_mode_ctrl (false))
573
- dev_warn (arche_pdata -> dev , "Failed to control hub device\n" );
573
+ dev_warn (arche_pdata -> dev , "failed to control hub device\n" );
574
574
}
575
575
576
576
static __maybe_unused int arche_platform_suspend (struct device * dev )
0 commit comments