Commit f3028212 authored by Shubhankar Kuranagatti's avatar Shubhankar Kuranagatti Committed by Kalle Valo

ssb: Fix indentation of comment

Shifted the closing */ to the next line
This is done to maintain code uniformity.
Acked-by: default avatarMichael Büsch <m@bues.ch>
Signed-off-by: default avatarShubhankar Kuranagatti <shubhankarvk@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210428162907.bn5q3oh3sji6wlh4@kewl-virtual-machine
parent 2a3d830f
...@@ -37,7 +37,8 @@ static LIST_HEAD(buses); ...@@ -37,7 +37,8 @@ static LIST_HEAD(buses);
/* Software ID counter */ /* Software ID counter */
static unsigned int next_busnumber; static unsigned int next_busnumber;
/* buses_mutes locks the two buslists and the next_busnumber. /* buses_mutes locks the two buslists and the next_busnumber.
* Don't lock this directly, but use ssb_buses_[un]lock() below. */ * Don't lock this directly, but use ssb_buses_[un]lock() below.
*/
static DEFINE_MUTEX(buses_mutex); static DEFINE_MUTEX(buses_mutex);
/* There are differences in the codeflow, if the bus is /* There are differences in the codeflow, if the bus is
...@@ -45,7 +46,8 @@ static DEFINE_MUTEX(buses_mutex); ...@@ -45,7 +46,8 @@ static DEFINE_MUTEX(buses_mutex);
* are not available early. This is a mechanism to delay * are not available early. This is a mechanism to delay
* these initializations to after early boot has finished. * these initializations to after early boot has finished.
* It's also used to avoid mutex locking, as that's not * It's also used to avoid mutex locking, as that's not
* available and needed early. */ * available and needed early.
*/
static bool ssb_is_early_boot = 1; static bool ssb_is_early_boot = 1;
static void ssb_buses_lock(void); static void ssb_buses_lock(void);
...@@ -161,7 +163,8 @@ int ssb_bus_resume(struct ssb_bus *bus) ...@@ -161,7 +163,8 @@ int ssb_bus_resume(struct ssb_bus *bus)
int err; int err;
/* Reset HW state information in memory, so that HW is /* Reset HW state information in memory, so that HW is
* completely reinitialized. */ * completely reinitialized.
*/
bus->mapped_device = NULL; bus->mapped_device = NULL;
#ifdef CONFIG_SSB_DRIVER_PCICORE #ifdef CONFIG_SSB_DRIVER_PCICORE
bus->pcicore.setup_done = 0; bus->pcicore.setup_done = 0;
...@@ -467,7 +470,8 @@ static int ssb_devices_register(struct ssb_bus *bus) ...@@ -467,7 +470,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
sdev = &(bus->devices[i]); sdev = &(bus->devices[i]);
/* We don't register SSB-system devices to the kernel, /* We don't register SSB-system devices to the kernel,
* as the drivers for them are built into SSB. */ * as the drivers for them are built into SSB.
*/
switch (sdev->id.coreid) { switch (sdev->id.coreid) {
case SSB_DEV_CHIPCOMMON: case SSB_DEV_CHIPCOMMON:
case SSB_DEV_PCI: case SSB_DEV_PCI:
...@@ -521,7 +525,8 @@ static int ssb_devices_register(struct ssb_bus *bus) ...@@ -521,7 +525,8 @@ static int ssb_devices_register(struct ssb_bus *bus)
if (err) { if (err) {
pr_err("Could not register %s\n", dev_name(dev)); pr_err("Could not register %s\n", dev_name(dev));
/* Set dev to NULL to not unregister /* Set dev to NULL to not unregister
* dev on error unwinding. */ * dev on error unwinding.
*/
sdev->dev = NULL; sdev->dev = NULL;
put_device(dev); put_device(dev);
goto error; goto error;
...@@ -667,7 +672,8 @@ ssb_bus_register(struct ssb_bus *bus, ...@@ -667,7 +672,8 @@ ssb_bus_register(struct ssb_bus *bus,
ssb_bus_may_powerdown(bus); ssb_bus_may_powerdown(bus);
/* Queue it for attach. /* Queue it for attach.
* See the comment at the ssb_is_early_boot definition. */ * See the comment at the ssb_is_early_boot definition.
*/
list_add_tail(&bus->list, &attach_queue); list_add_tail(&bus->list, &attach_queue);
if (!ssb_is_early_boot) { if (!ssb_is_early_boot) {
/* This is not early boot, so we must attach the bus now */ /* 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,7 +1013,8 @@ static void ssb_flush_tmslow(struct ssb_device *dev)
* a machine check exception otherwise. * a machine check exception otherwise.
* Do this by reading the register back to commit the * Do this by reading the register back to commit the
* PCI write and delay an additional usec for the device * PCI write and delay an additional usec for the device
* to react to the change. */ * to react to the change.
*/
ssb_read32(dev, SSB_TMSLOW); ssb_read32(dev, SSB_TMSLOW);
udelay(1); udelay(1);
} }
...@@ -1044,7 +1051,8 @@ void ssb_device_enable(struct ssb_device *dev, u32 core_specific_flags) ...@@ -1044,7 +1051,8 @@ void ssb_device_enable(struct ssb_device *dev, u32 core_specific_flags)
EXPORT_SYMBOL(ssb_device_enable); EXPORT_SYMBOL(ssb_device_enable);
/* Wait for bitmask in a register to get set or cleared. /* Wait for bitmask in a register to get set or cleared.
* timeout is in units of ten-microseconds */ * timeout is in units of ten-microseconds
*/
static int ssb_wait_bits(struct ssb_device *dev, u16 reg, u32 bitmask, static int ssb_wait_bits(struct ssb_device *dev, u16 reg, u32 bitmask,
int timeout, int set) int timeout, int set)
{ {
...@@ -1153,7 +1161,8 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus) ...@@ -1153,7 +1161,8 @@ int ssb_bus_may_powerdown(struct ssb_bus *bus)
/* On buses where more than one core may be working /* On buses where more than one core may be working
* at a time, we must not powerdown stuff if there are * at a time, we must not powerdown stuff if there are
* still cores that may want to run. */ * still cores that may want to run.
*/
if (bus->bustype == SSB_BUSTYPE_SSB) if (bus->bustype == SSB_BUSTYPE_SSB)
goto out; goto out;
...@@ -1322,7 +1331,8 @@ static int __init ssb_modinit(void) ...@@ -1322,7 +1331,8 @@ static int __init ssb_modinit(void)
} }
/* ssb must be initialized after PCI but before the ssb drivers. /* ssb must be initialized after PCI but before the ssb drivers.
* That means we must use some initcall between subsys_initcall * That means we must use some initcall between subsys_initcall
* and device_initcall. */ * and device_initcall.
*/
fs_initcall(ssb_modinit); fs_initcall(ssb_modinit);
static void __exit ssb_modexit(void) static void __exit ssb_modexit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment