@@ -1141,7 +1141,7 @@ static int usdhc_wait_cmd_done(struct usdhc_priv *priv,
1141
1141
if (!error ) {
1142
1142
error = usdhc_cmd_rsp (priv );
1143
1143
} else {
1144
- LOG_ERR ("CMD%d Polling ERROR\r\n " ,
1144
+ LOG_ERR ("CMD%d Polling ERROR" ,
1145
1145
priv -> op_context .cmd .index );
1146
1146
}
1147
1147
@@ -2366,7 +2366,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2366
2366
priv -> card_info .card_flags |= USDHC_SDHC_FLAG ;
2367
2367
} else {
2368
2368
/* SDSC card */
2369
- LOG_ERR ("USDHC SDSC not implemented yet!\r\n " );
2369
+ LOG_ERR ("USDHC SDSC not implemented yet!" );
2370
2370
return - ENOTSUP ;
2371
2371
}
2372
2372
@@ -2379,7 +2379,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2379
2379
SDHC_APP_SEND_OP_COND , app_cmd_41_arg ,
2380
2380
SDHC_RSP_TYPE_R1 , SDHC_RSP_TYPE_R3 , 1 );
2381
2381
if (ret ) {
2382
- LOG_ERR ("APP Condition CMD failed:%d\r\n " , ret );
2382
+ LOG_ERR ("APP Condition CMD failed:%d" , ret );
2383
2383
return ret ;
2384
2384
}
2385
2385
if (cmd -> response [0U ] & SD_OCR_PWR_BUSY_FLAG ) {
@@ -2406,7 +2406,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2406
2406
ret = usdhc_vol_switch (priv );
2407
2407
}
2408
2408
if (ret ) {
2409
- LOG_ERR ("Voltage switch failed: %d\r\n " , ret );
2409
+ LOG_ERR ("Voltage switch failed: %d" , ret );
2410
2410
return ret ;
2411
2411
}
2412
2412
priv -> card_info .voltage = SD_VOL_1_8_V ;
@@ -2422,7 +2422,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2422
2422
sdhc_decode_cid (& priv -> card_info .cid ,
2423
2423
priv -> card_info .raw_cid );
2424
2424
} else {
2425
- LOG_ERR ("All send CID CMD failed: %d\r\n " , ret );
2425
+ LOG_ERR ("All send CID CMD failed: %d" , ret );
2426
2426
return ret ;
2427
2427
}
2428
2428
@@ -2433,7 +2433,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2433
2433
if (!ret ) {
2434
2434
priv -> card_info .relative_addr = (cmd -> response [0U ] >> 16U );
2435
2435
} else {
2436
- LOG_ERR ("Send relative address CMD failed: %d\r\n " , ret );
2436
+ LOG_ERR ("Send relative address CMD failed: %d" , ret );
2437
2437
return ret ;
2438
2438
}
2439
2439
@@ -2448,7 +2448,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2448
2448
& priv -> card_info .sd_block_count ,
2449
2449
& priv -> card_info .sd_block_size );
2450
2450
} else {
2451
- LOG_ERR ("Send CSD CMD failed: %d\r\n " , ret );
2451
+ LOG_ERR ("Send CSD CMD failed: %d" , ret );
2452
2452
return ret ;
2453
2453
}
2454
2454
@@ -2458,7 +2458,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2458
2458
2459
2459
ret = usdhc_xfer (priv );
2460
2460
if (ret || (cmd -> response [0U ] & SDHC_R1ERR_All_FLAG )) {
2461
- LOG_ERR ("Select card CMD failed: %d\r\n " , ret );
2461
+ LOG_ERR ("Select card CMD failed: %d" , ret );
2462
2462
return - EIO ;
2463
2463
}
2464
2464
@@ -2471,7 +2471,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2471
2471
SDHC_RSP_TYPE_R1 , SDHC_RSP_TYPE_R1 , 0 );
2472
2472
2473
2473
if (ret ) {
2474
- LOG_ERR ("Send SCR following APP CMD failed: %d\r\n " , ret );
2474
+ LOG_ERR ("Send SCR following APP CMD failed: %d" , ret );
2475
2475
return ret ;
2476
2476
}
2477
2477
@@ -2528,7 +2528,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2528
2528
SDHC_RSP_TYPE_R1 , SDHC_RSP_TYPE_R1 , 1 );
2529
2529
2530
2530
if (ret ) {
2531
- LOG_ERR ("Set bus width failed: %d\r\n " , ret );
2531
+ LOG_ERR ("Set bus width failed: %d" , ret );
2532
2532
return ret ;
2533
2533
}
2534
2534
usdhc_set_bus_width (base , USDHC_DATA_BUS_WIDTH_4BIT );
@@ -2539,15 +2539,15 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2539
2539
ret = usdhc_select_fun (priv , SD_GRP_DRIVER_STRENGTH_MODE ,
2540
2540
priv -> card_info .driver_strength );
2541
2541
if (ret ) {
2542
- LOG_ERR ("Set SD driver strehgth failed: %d\r\n " , ret );
2542
+ LOG_ERR ("Set SD driver strength failed: %d" , ret );
2543
2543
return ret ;
2544
2544
}
2545
2545
2546
2546
/* set sd card current limit */
2547
2547
ret = usdhc_select_fun (priv , SD_GRP_CURRENT_LIMIT_MODE ,
2548
2548
priv -> card_info .max_current );
2549
2549
if (ret ) {
2550
- LOG_ERR ("Set SD current limit failed: %d\r\n " , ret );
2550
+ LOG_ERR ("Set SD current limit failed: %d" , ret );
2551
2551
return ret ;
2552
2552
}
2553
2553
}
@@ -2558,15 +2558,15 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2558
2558
2559
2559
ret = usdhc_xfer (priv );
2560
2560
if (ret || cmd -> response [0U ] & SDHC_R1ERR_All_FLAG ) {
2561
- LOG_ERR ("Set block size failed: %d\r\n " , ret );
2561
+ LOG_ERR ("Set block size failed: %d" , ret );
2562
2562
return - EIO ;
2563
2563
}
2564
2564
2565
2565
if (priv -> card_info .version > SD_SPEC_VER1_0 ) {
2566
2566
/* select bus timing */
2567
2567
ret = usdhc_select_bus_timing (priv );
2568
2568
if (ret ) {
2569
- LOG_ERR ("Select bus timing failed: %d\r\n " , ret );
2569
+ LOG_ERR ("Select bus timing failed: %d" , ret );
2570
2570
return ret ;
2571
2571
}
2572
2572
}
@@ -2582,7 +2582,7 @@ static int usdhc_sd_init(struct usdhc_priv *priv)
2582
2582
}
2583
2583
2584
2584
if (ret ) {
2585
- LOG_ERR ("USDHC bus device initalization failed!\r\n " );
2585
+ LOG_ERR ("USDHC bus device initalization failed!" );
2586
2586
}
2587
2587
2588
2588
return ret ;
@@ -2627,7 +2627,7 @@ static int usdhc_board_access_init(struct usdhc_priv *priv)
2627
2627
}
2628
2628
2629
2629
if (!priv -> detect_gpio ) {
2630
- LOG_INF ("USDHC detection other than GPIO not implemented!\r\n " );
2630
+ LOG_INF ("USDHC detection other than GPIO not implemented!" );
2631
2631
return 0 ;
2632
2632
}
2633
2633
@@ -2647,13 +2647,13 @@ static int usdhc_board_access_init(struct usdhc_priv *priv)
2647
2647
2648
2648
if (gpio_level == 0 ) {
2649
2649
priv -> inserted = false;
2650
- LOG_ERR ("NO SD inserted!\r\n " );
2650
+ LOG_ERR ("NO SD inserted!" );
2651
2651
2652
2652
return - ENODEV ;
2653
2653
}
2654
2654
2655
2655
priv -> inserted = true;
2656
- LOG_INF ("SD inserted!\r\n " );
2656
+ LOG_INF ("SD inserted!" );
2657
2657
2658
2658
return 0 ;
2659
2659
}
0 commit comments