Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3230322imc; Wed, 13 Mar 2019 12:12:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoF6m7Ta5+D0pDFISwsHpoeH3j37wy3oWodrd1L0ZLoOlerAVzTFX/kO0GnZrdsWgMfvpV X-Received: by 2002:a63:4c18:: with SMTP id z24mr41988452pga.62.1552504338618; Wed, 13 Mar 2019 12:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552504338; cv=none; d=google.com; s=arc-20160816; b=my0hk0TQCk2bVTqEjmDjd8cmB8mxH0acXg22RIMHKnCYLztufNp9Ugs/UY6yr8QmTj lyvwPgHAlJ224WqDYivDo7Prfifv2uIpB8RiTw72Sl1u+IuhShNo9yn5o2FPjU7zYuTN rSogcxqTWk5ayvHuVZ9oRNNQqFGabC2f+hFe9ZtqIb4kEIlR9Yzzaq6+OorvY+k9bvuo /iZjSZNQfLMYUQF3j+w8Lnaocr60vXUXEjCP/EbBgJNY7KMdhvKBm/9RCBecMm9zzTQC /1e37oRvOjAjj9TldVwrpR+LxzX8uvKiz3uk+5WH5isE3tgvugliYZAAt7/xji8CA7ti jp+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=78NSk5rpU0iLKGc5QcCFbRvcSSQ1pa9HgiXicsXCY94=; b=MaauZ2GfqvtM716xjTJUNTs2aejc7ZNTPJ6pdRW81heln2E/kAhBRkt9JF99nbDLbK 5+bzjARKHQ0QH1Z3LgZWAohVaU5NRIM1PuifWupezI4o6LylOXQt31qlB/7BG72Vo5Al taf0mCRA8TLOS3Wb1fu4yJNZNDa/+GEAqh7Qf8ZBA20As2QZ8d/J/JJoYEYDu+9WCNVX g3tdMKJhydAK3eOLbqF/XDHL3KxjNnJy7ArVPnd4sGUxbSresB/Z0f3k9Iuj4CdxMVZQ 5f2R3Q7thrbBhOLVsm/AZRD8jPZT/KfoA3TzmU/6BJFRc/FPALGXhHu1W3+ckvydsOdQ AJ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EGu2LqQP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y32si10535247pga.518.2019.03.13.12.12.02; Wed, 13 Mar 2019 12:12:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EGu2LqQP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727357AbfCMTLK (ORCPT + 99 others); Wed, 13 Mar 2019 15:11:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:41706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727342AbfCMTLI (ORCPT ); Wed, 13 Mar 2019 15:11:08 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C58AD213A2; Wed, 13 Mar 2019 19:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552504268; bh=RfaDM+dzAwWn7oQbQuFGx8MXdvcnpISfOtSi9SC3+Ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EGu2LqQPaib9Zgf7VVlY8U7rCZWiRbKN9OHbnCF74pvJBpIwvXwfDTB7W8iBmtd0W h+JCjMknike33Z2dqbMnMXMTfYtikf6nHnXv1fofKlZJ6TIXyMpEjmW5FBGFm4Wsqd QIybmUBLz8rVQtfFt4OQ5cJ8ddEi5VLQyKe4dmSw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rayagonda Kokatanur , Ray Jui , Jassi Brar , Sasha Levin Subject: [PATCH AUTOSEL 4.20 22/60] mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue Date: Wed, 13 Mar 2019 15:09:43 -0400 Message-Id: <20190313191021.158171-22-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190313191021.158171-1-sashal@kernel.org> References: <20190313191021.158171-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rayagonda Kokatanur [ Upstream commit d7bf31a0f85faaf63c63c39d55154825a1eaaea9 ] RING_CONTROL reg was not written due to wrong address, hence all the subsequent ring flush was timing out. Fixes: a371c10ea4b3 ("mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence") Signed-off-by: Rayagonda Kokatanur Signed-off-by: Ray Jui Reviewed-by: Scott Branden Signed-off-by: Jassi Brar Signed-off-by: Sasha Levin --- drivers/mailbox/bcm-flexrm-mailbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index d7a8ed7d8097..57cd7293fa51 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1396,9 +1396,9 @@ static void flexrm_shutdown(struct mbox_chan *chan) /* Clear ring flush state */ timeout = 1000; /* timeout of 1s */ - writel_relaxed(0x0, ring + RING_CONTROL); + writel_relaxed(0x0, ring->regs + RING_CONTROL); do { - if (!(readl_relaxed(ring + RING_FLUSH_DONE) & + if (!(readl_relaxed(ring->regs + RING_FLUSH_DONE) & FLUSH_DONE_MASK)) break; mdelay(1); -- 2.19.1