@@ -37,15 +37,17 @@ static LIST_HEAD(buses);
37
37
/* Software ID counter */
38
38
static unsigned int next_busnumber ;
39
39
/* buses_mutes locks the two buslists and the next_busnumber.
40
- * Don't lock this directly, but use ssb_buses_[un]lock() below. */
40
+ * Don't lock this directly, but use ssb_buses_[un]lock() below.
41
+ */
41
42
static DEFINE_MUTEX (buses_mutex );
42
43
43
44
/* There are differences in the codeflow, if the bus is
44
45
* initialized from early boot, as various needed services
45
46
* are not available early. This is a mechanism to delay
46
47
* these initializations to after early boot has finished.
47
48
* It's also used to avoid mutex locking, as that's not
48
- * available and needed early. */
49
+ * available and needed early.
50
+ */
49
51
static bool ssb_is_early_boot = 1 ;
50
52
51
53
static void ssb_buses_lock (void );
@@ -161,7 +163,8 @@ int ssb_bus_resume(struct ssb_bus *bus)
161
163
int err ;
162
164
163
165
/* Reset HW state information in memory, so that HW is
164
- * completely reinitialized. */
166
+ * completely reinitialized.
167
+ */
165
168
bus -> mapped_device = NULL ;
166
169
#ifdef CONFIG_SSB_DRIVER_PCICORE
167
170
bus -> pcicore .setup_done = 0 ;
@@ -467,7 +470,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
467
470
sdev = & (bus -> devices [i ]);
468
471
469
472
/* We don't register SSB-system devices to the kernel,
470
- * as the drivers for them are built into SSB. */
473
+ * as the drivers for them are built into SSB.
474
+ */
471
475
switch (sdev -> id .coreid ) {
472
476
case SSB_DEV_CHIPCOMMON :
473
477
case SSB_DEV_PCI :
@@ -521,7 +525,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
521
525
if (err ) {
522
526
pr_err ("Could not register %s\n" , dev_name (dev ));
523
527
/* Set dev to NULL to not unregister
524
- * dev on error unwinding. */
528
+ * dev on error unwinding.
529
+ */
525
530
sdev -> dev = NULL ;
526
531
put_device (dev );
527
532
goto error ;
@@ -667,7 +672,8 @@ ssb_bus_register(struct ssb_bus *bus,
667
672
ssb_bus_may_powerdown (bus );
668
673
669
674
/* Queue it for attach.
670
- * See the comment at the ssb_is_early_boot definition. */
675
+ * See the comment at the ssb_is_early_boot definition.
676
+ */
671
677
list_add_tail (& bus -> list , & attach_queue );
672
678
if (!ssb_is_early_boot ) {
673
679
/* This is not early boot, so we must attach the bus now */
@@ -1007,7 +1013,8 @@ static void ssb_flush_tmslow(struct ssb_device *dev)
1007
1013
* a machine check exception otherwise.
1008
1014
* Do this by reading the register back to commit the
1009
1015
* PCI write and delay an additional usec for the device
1010
- * to react to the change. */
1016
+ * to react to the change.
1017
+ */
1011
1018
ssb_read32 (dev , SSB_TMSLOW );
1012
1019
udelay (1 );
1013
1020
}
@@ -1044,7 +1051,8 @@ void ssb_device_enable(struct ssb_device *dev, u32 core_specific_flags)
1044
1051
EXPORT_SYMBOL (ssb_device_enable );
1045
1052
1046
1053
/* Wait for bitmask in a register to get set or cleared.
1047
- * timeout is in units of ten-microseconds */
1054
+ * timeout is in units of ten-microseconds
1055
+ */
1048
1056
static int ssb_wait_bits (struct ssb_device * dev , u16 reg , u32 bitmask ,
1049
1057
int timeout , int set )
1050
1058
{
@@ -1153,7 +1161,8 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
1153
1161
1154
1162
/* On buses where more than one core may be working
1155
1163
* at a time, we must not powerdown stuff if there are
1156
- * still cores that may want to run. */
1164
+ * still cores that may want to run.
1165
+ */
1157
1166
if (bus -> bustype == SSB_BUSTYPE_SSB )
1158
1167
goto out ;
1159
1168
@@ -1322,7 +1331,8 @@ static int __init ssb_modinit(void)
1322
1331
}
1323
1332
/* ssb must be initialized after PCI but before the ssb drivers.
1324
1333
* That means we must use some initcall between subsys_initcall
1325
- * and device_initcall. */
1334
+ * and device_initcall.
1335
+ */
1326
1336
fs_initcall (ssb_modinit );
1327
1337
1328
1338
static void __exit ssb_modexit (void )
0 commit comments