Commit ff97a3fd authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix up ULTRA_CHANNEL_CLIENT_TRANSITION macro

Rename the macro to SPAR_CHANNEL_CLIENT_TRANSITION, and fix CamelCase
parameters:

pChan => ch
chanId => id
logCtx => log

Update all places the macro was used to call the new name.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8800bfbc
...@@ -128,26 +128,24 @@ ULTRA_CHANNELCLI_STRING(u32 v) ...@@ -128,26 +128,24 @@ ULTRA_CHANNELCLI_STRING(u32 v)
line); \ line); \
} while (0) } while (0)
#define ULTRA_CHANNEL_CLIENT_TRANSITION(pChan, chanId, \ #define SPAR_CHANNEL_CLIENT_TRANSITION(ch, id, newstate, log) \
newstate, logCtx) \
do { \ do { \
SPAR_CHANNEL_CLIENT_CHK_TRANSITION( \ SPAR_CHANNEL_CLIENT_CHK_TRANSITION( \
readl(&(((struct channel_header __iomem *) \ readl(&(((struct channel_header __iomem *)\
(pChan))->cli_state_os)), \ (ch))->cli_state_os)), \
newstate, \ newstate, id, log, __FILE__, __LINE__); \
chanId, logCtx, __FILE__, __LINE__); \
pr_info("%s Channel StateTransition (%s) %s(%d)-->%s(%d) @%s:%d\n", \ pr_info("%s Channel StateTransition (%s) %s(%d)-->%s(%d) @%s:%d\n", \
chanId, "CliStateOS", \ id, "CliStateOS", \
ULTRA_CHANNELCLI_STRING( \ ULTRA_CHANNELCLI_STRING( \
readl(&((struct channel_header __iomem *)\ readl(&((struct channel_header __iomem *)\
(pChan))->cli_state_os)), \ (ch))->cli_state_os)), \
readl(&((struct channel_header __iomem *) \ readl(&((struct channel_header __iomem *)\
(pChan))->cli_state_os), \ (ch))->cli_state_os), \
ULTRA_CHANNELCLI_STRING(newstate), \ ULTRA_CHANNELCLI_STRING(newstate), \
newstate, \ newstate, \
pathname_last_n_nodes(__FILE__, 4), __LINE__); \ pathname_last_n_nodes(__FILE__, 4), __LINE__); \
writel(newstate, &((struct channel_header __iomem *) \ writel(newstate, &((struct channel_header __iomem *)\
(pChan))->cli_state_os); \ (ch))->cli_state_os); \
mb(); /* required for channel synch */ \ mb(); /* required for channel synch */ \
} while (0) } while (0)
......
...@@ -1498,7 +1498,7 @@ virthba_serverup(struct virtpci_dev *virtpcidev) ...@@ -1498,7 +1498,7 @@ virthba_serverup(struct virtpci_dev *virtpcidev)
/* Must transition channel to ATTACHED state BEFORE we /* Must transition channel to ATTACHED state BEFORE we
* can start using the device again * can start using the device again
*/ */
ULTRA_CHANNEL_CLIENT_TRANSITION(virthbainfo->chinfo.queueinfo->chan, SPAR_CHANNEL_CLIENT_TRANSITION(virthbainfo->chinfo.queueinfo->chan,
dev_name(&virtpcidev->generic_dev), dev_name(&virtpcidev->generic_dev),
CHANNELCLI_ATTACHED, NULL); CHANNELCLI_ATTACHED, NULL);
......
...@@ -1009,7 +1009,7 @@ static int virtpci_device_add(struct device *parentbus, int devtype, ...@@ -1009,7 +1009,7 @@ static int virtpci_device_add(struct device *parentbus, int devtype,
* queues can begin at any time after device_register(). * queues can begin at any time after device_register().
*/ */
pDev = &virtpcidev->generic_dev; pDev = &virtpcidev->generic_dev;
ULTRA_CHANNEL_CLIENT_TRANSITION(addparams->chanptr, SPAR_CHANNEL_CLIENT_TRANSITION(addparams->chanptr,
BUS_ID(pDev), BUS_ID(pDev),
CHANNELCLI_ATTACHED, NULL); CHANNELCLI_ATTACHED, NULL);
...@@ -1032,7 +1032,7 @@ static int virtpci_device_add(struct device *parentbus, int devtype, ...@@ -1032,7 +1032,7 @@ static int virtpci_device_add(struct device *parentbus, int devtype,
if (ret) { if (ret) {
LOGERR("device_register returned %d\n", ret); LOGERR("device_register returned %d\n", ret);
pDev = &virtpcidev->generic_dev; pDev = &virtpcidev->generic_dev;
ULTRA_CHANNEL_CLIENT_TRANSITION(addparams->chanptr, SPAR_CHANNEL_CLIENT_TRANSITION(addparams->chanptr,
BUS_ID(pDev), BUS_ID(pDev),
CHANNELCLI_DETACHED, NULL); CHANNELCLI_DETACHED, NULL);
/* remove virtpcidev, the one we just added, from the list */ /* remove virtpcidev, the one we just added, from the list */
......
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