@@ -768,8 +768,7 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd)
768
768
if (unlikely (broken )) {
769
769
for_each_sg (data -> sg , sg , data -> sg_len , i ) {
770
770
if (sg -> length & 0x3 ) {
771
- DBG ("Reverting to PIO because of "
772
- "transfer size (%d)\n" ,
771
+ DBG ("Reverting to PIO because of transfer size (%d)\n" ,
773
772
sg -> length );
774
773
host -> flags &= ~SDHCI_REQ_USE_DMA ;
775
774
break ;
@@ -803,8 +802,7 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_command *cmd)
803
802
if (unlikely (broken )) {
804
803
for_each_sg (data -> sg , sg , data -> sg_len , i ) {
805
804
if (sg -> offset & 0x3 ) {
806
- DBG ("Reverting to PIO because of "
807
- "bad alignment\n" );
805
+ DBG ("Reverting to PIO because of bad alignment\n" );
808
806
host -> flags &= ~SDHCI_REQ_USE_DMA ;
809
807
break ;
810
808
}
@@ -1016,8 +1014,8 @@ void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
1016
1014
1017
1015
while (sdhci_readl (host , SDHCI_PRESENT_STATE ) & mask ) {
1018
1016
if (timeout == 0 ) {
1019
- pr_err ("%s: Controller never released "
1020
- "inhibit bit(s).\n" , mmc_hostname (host -> mmc ));
1017
+ pr_err ("%s: Controller never released inhibit bit(s).\n" ,
1018
+ mmc_hostname (host -> mmc ));
1021
1019
sdhci_dumpregs (host );
1022
1020
cmd -> error = - EIO ;
1023
1021
tasklet_schedule (& host -> finish_tasklet );
@@ -1254,8 +1252,8 @@ void sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
1254
1252
while (!((clk = sdhci_readw (host , SDHCI_CLOCK_CONTROL ))
1255
1253
& SDHCI_CLOCK_INT_STABLE )) {
1256
1254
if (timeout == 0 ) {
1257
- pr_err ("%s: Internal clock never "
1258
- "stabilised.\n" , mmc_hostname (host -> mmc ));
1255
+ pr_err ("%s: Internal clock never stabilised.\n" ,
1256
+ mmc_hostname (host -> mmc ));
1259
1257
sdhci_dumpregs (host );
1260
1258
return ;
1261
1259
}
@@ -1540,8 +1538,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
1540
1538
else if (ios -> drv_type == MMC_SET_DRIVER_TYPE_D )
1541
1539
ctrl_2 |= SDHCI_CTRL_DRV_TYPE_D ;
1542
1540
else {
1543
- pr_warn ("%s: invalid driver type, default to "
1544
- "driver type B\n" , mmc_hostname (mmc ));
1541
+ pr_warn ("%s: invalid driver type, default to driver type B\n" ,
1542
+ mmc_hostname (mmc ));
1545
1543
ctrl_2 |= SDHCI_CTRL_DRV_TYPE_B ;
1546
1544
}
1547
1545
@@ -2015,10 +2013,7 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
2015
2013
spin_lock_irqsave (& host -> lock , flags );
2016
2014
2017
2015
if (!host -> tuning_done ) {
2018
- pr_info (DRIVER_NAME ": Timeout waiting for "
2019
- "Buffer Read Ready interrupt during tuning "
2020
- "procedure, falling back to fixed sampling "
2021
- "clock\n" );
2016
+ pr_info (DRIVER_NAME ": Timeout waiting for Buffer Read Ready interrupt during tuning procedure, falling back to fixed sampling clock\n" );
2022
2017
ctrl = sdhci_readw (host , SDHCI_HOST_CONTROL2 );
2023
2018
ctrl &= ~SDHCI_CTRL_TUNED_CLK ;
2024
2019
ctrl &= ~SDHCI_CTRL_EXEC_TUNING ;
@@ -2046,9 +2041,7 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
2046
2041
sdhci_writew (host , ctrl , SDHCI_HOST_CONTROL2 );
2047
2042
}
2048
2043
if (!(ctrl & SDHCI_CTRL_TUNED_CLK )) {
2049
- pr_info (DRIVER_NAME ": Tuning procedure"
2050
- " failed, falling back to fixed sampling"
2051
- " clock\n" );
2044
+ pr_info (DRIVER_NAME ": Tuning procedure failed, falling back to fixed sampling clock\n" );
2052
2045
err = - EIO ;
2053
2046
}
2054
2047
@@ -2293,8 +2286,8 @@ static void sdhci_timeout_timer(unsigned long data)
2293
2286
spin_lock_irqsave (& host -> lock , flags );
2294
2287
2295
2288
if (host -> mrq ) {
2296
- pr_err ("%s: Timeout waiting for hardware "
2297
- "interrupt.\n" , mmc_hostname (host -> mmc ));
2289
+ pr_err ("%s: Timeout waiting for hardware interrupt.\n" ,
2290
+ mmc_hostname (host -> mmc ));
2298
2291
sdhci_dumpregs (host );
2299
2292
2300
2293
if (host -> data ) {
@@ -2325,9 +2318,8 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *mask)
2325
2318
BUG_ON (intmask == 0 );
2326
2319
2327
2320
if (!host -> cmd ) {
2328
- pr_err ("%s: Got command interrupt 0x%08x even "
2329
- "though no command operation was in progress.\n" ,
2330
- mmc_hostname (host -> mmc ), (unsigned )intmask );
2321
+ pr_err ("%s: Got command interrupt 0x%08x even though no command operation was in progress.\n" ,
2322
+ mmc_hostname (host -> mmc ), (unsigned )intmask );
2331
2323
sdhci_dumpregs (host );
2332
2324
return ;
2333
2325
}
@@ -2356,8 +2348,7 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *mask)
2356
2348
*/
2357
2349
if (host -> cmd -> flags & MMC_RSP_BUSY ) {
2358
2350
if (host -> cmd -> data )
2359
- DBG ("Cannot wait for busy signal when also "
2360
- "doing a data transfer" );
2351
+ DBG ("Cannot wait for busy signal when also doing a data transfer" );
2361
2352
else if (!(host -> quirks & SDHCI_QUIRK_NO_BUSY_IRQ )
2362
2353
&& !host -> busy_handle ) {
2363
2354
/* Mark that command complete before busy is ended */
@@ -2451,9 +2442,8 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
2451
2442
}
2452
2443
}
2453
2444
2454
- pr_err ("%s: Got data interrupt 0x%08x even "
2455
- "though no data operation was in progress.\n" ,
2456
- mmc_hostname (host -> mmc ), (unsigned )intmask );
2445
+ pr_err ("%s: Got data interrupt 0x%08x even though no data operation was in progress.\n" ,
2446
+ mmc_hostname (host -> mmc ), (unsigned )intmask );
2457
2447
sdhci_dumpregs (host );
2458
2448
2459
2449
return ;
@@ -2896,9 +2886,8 @@ int sdhci_add_host(struct sdhci_host *host)
2896
2886
host -> version = (host -> version & SDHCI_SPEC_VER_MASK )
2897
2887
>> SDHCI_SPEC_VER_SHIFT ;
2898
2888
if (host -> version > SDHCI_SPEC_300 ) {
2899
- pr_err ("%s: Unknown controller version (%d). "
2900
- "You may experience problems.\n" , mmc_hostname (mmc ),
2901
- host -> version );
2889
+ pr_err ("%s: Unknown controller version (%d). You may experience problems.\n" ,
2890
+ mmc_hostname (mmc ), host -> version );
2902
2891
}
2903
2892
2904
2893
caps [0 ] = (host -> quirks & SDHCI_QUIRK_MISSING_CAPS ) ? host -> caps :
@@ -3031,8 +3020,8 @@ int sdhci_add_host(struct sdhci_host *host)
3031
3020
if (host -> max_clk == 0 || host -> quirks &
3032
3021
SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN ) {
3033
3022
if (!host -> ops -> get_max_clock ) {
3034
- pr_err ("%s: Hardware doesn't specify base clock "
3035
- "frequency.\n" , mmc_hostname (mmc ));
3023
+ pr_err ("%s: Hardware doesn't specify base clock frequency.\n" ,
3024
+ mmc_hostname (mmc ));
3036
3025
return - ENODEV ;
3037
3026
}
3038
3027
host -> max_clk = host -> ops -> get_max_clock (host );
@@ -3294,8 +3283,8 @@ int sdhci_add_host(struct sdhci_host *host)
3294
3283
mmc -> ocr_avail_mmc &= host -> ocr_avail_mmc ;
3295
3284
3296
3285
if (mmc -> ocr_avail == 0 ) {
3297
- pr_err ("%s: Hardware doesn't report any "
3298
- "support voltages.\n" , mmc_hostname (mmc ));
3286
+ pr_err ("%s: Hardware doesn't report any support voltages.\n" ,
3287
+ mmc_hostname (mmc ));
3299
3288
return - ENODEV ;
3300
3289
}
3301
3290
0 commit comments