diff options
author | Markus Mayer <mmayer@broadcom.com> | 2019-02-12 02:24:41 +0100 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2019-05-20 18:32:35 +0200 |
commit | 7ccd2ffce0d4a180172c984ca7266d056d6d4b11 (patch) | |
tree | 23652049b5229b920dacb0105605c16ed919c307 /drivers/memory/brcmstb_dpfe.c | |
parent | Linux 5.2-rc1 (diff) | |
download | linux-7ccd2ffce0d4a180172c984ca7266d056d6d4b11.tar.xz linux-7ccd2ffce0d4a180172c984ca7266d056d6d4b11.zip |
memory: brcmstb: dpfe: use msleep() over udelay()
To be more "scheduler friendly", we use msleep() rather than udelay()
while we wait for the DCPU to respond.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'drivers/memory/brcmstb_dpfe.c')
-rw-r--r-- | drivers/memory/brcmstb_dpfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 04599eccd604..8e1ccdb0e59d 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -111,7 +111,7 @@ #define DPFE_MSG_TYPE_COMMAND 1 #define DPFE_MSG_TYPE_RESPONSE 2 -#define DELAY_LOOP_MAX 200000 +#define DELAY_LOOP_MAX 1000 enum dpfe_msg_fields { MSG_HEADER, @@ -323,7 +323,7 @@ static int __send_command(struct private_data *priv, unsigned int cmd, resp = readl_relaxed(regs + REG_TO_HOST_MBOX); if (resp > 0) break; - udelay(5); + msleep(1); } if (i == DELAY_LOOP_MAX) { |