diff options
author | Eddie James <eajames@linux.ibm.com> | 2020-04-06 22:19:36 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2020-09-10 05:52:49 +0300 |
commit | a1d5ce111aa2f8b9d5d4db3ed85b11e53251d676 (patch) | |
tree | f0a94cfc64b85133c7c127700989c1ac039ed21c /drivers/fsi/fsi-master-aspeed.c | |
parent | 196964a31cf8c4175fab28942071215e34f0a684 (diff) | |
download | linux-a1d5ce111aa2f8b9d5d4db3ed85b11e53251d676.tar.xz |
fsi: master: Remove link enable read-back
Both the Aspeed and hub masters read back the link enable register
after enabling the link, but this is unnecessary, so remove it.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi/fsi-master-aspeed.c')
-rw-r--r-- | drivers/fsi/fsi-master-aspeed.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c index 6152cfe6d18e..2b8ca72baeb5 100644 --- a/drivers/fsi/fsi-master-aspeed.c +++ b/drivers/fsi/fsi-master-aspeed.c @@ -306,7 +306,7 @@ static int aspeed_master_link_enable(struct fsi_master *master, int link, { struct fsi_master_aspeed *aspeed = to_fsi_master_aspeed(master); int idx, bit, ret; - __be32 reg, result; + __be32 reg; idx = link / 32; bit = link % 32; @@ -323,15 +323,6 @@ static int aspeed_master_link_enable(struct fsi_master *master, int link, mdelay(FSI_LINK_ENABLE_SETUP_TIME); - ret = opb_readl(aspeed, ctrl_base + FSI_MENP0 + (4 * idx), &result); - if (ret) - return ret; - - if (result != reg) { - dev_err(aspeed->dev, "%s failed: %08x\n", __func__, result); - return -EIO; - } - return 0; } |