Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4167836ima; Mon, 4 Feb 2019 11:22:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IYx/ljOWBQWtJiicutyhQXiQ51ASFYED0YqfePCwu++NoX9tEWGnxlrxknza76myRGKAu81 X-Received: by 2002:a62:d2c1:: with SMTP id c184mr964862pfg.248.1549308131155; Mon, 04 Feb 2019 11:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549308131; cv=none; d=google.com; s=arc-20160816; b=EBg8VVMsliU5z7DA+7yvXkp7EPU4ivvwtYQFKNgXI5nr7CAaz9bWmhF+Ym9AvdfoQ0 TIqivk2c7B5Ze3oA9q8VtedQf4iSu3On9eC7MIBO6bIzgs2UC8qfDmWf0pQZxAMt4uO6 Lb73HAiZgCGuNEaiNLraOsVf23if//ZeIwE5Yai18xl2n/+Hv9NW7MqGgukc4XQvUXYL UE5FrhhLY64CvRQE/NqqNmtrZL9PJGPLVrILRJM4mEVg9LRutGdMTqS+hMKVRWiXmc3K ErX8PcWi5FVDrwDT0XMo3win1PhLKxVZvUgD5107Ku5NJMbZLawNPidKxpHagTGyk6mc wkXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=yjlgHfUuLREhUyUC0oL83S2doeTgEdz5km2W8jN9X3Y=; b=F1JQ0RBZmMVDJz06P/f5M43/Ph0wROM/6kq889smnFpKClwDbqJ/SxLljtTF2HCarv vo6oB1MgNBd5BkCOUGRGXx4jyhJryXNwGAYn8OOOpDG+1kOufse7vMvfBN67wrqK+Ye/ +lsnBZbtAMsRLyJ/VHYUER9B2WFp+nhQFDwUoYCFI7Aj02cudjMup/2jn2OqCuhLoqDV jvxMhoZFuxPTnLS3l4ib605dspwj7T5GKfwy2l3B78O5OcPDRTAeGibIhhctcR0eS/qX 8KbcDPWOrktez7hbuOxYv4y6eqzONT0AdBe7wOzSI8uue/+d2cmxID5a449VlqPWBH62 eEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=XxkDFU+i; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si734225plr.355.2019.02.04.11.21.55; Mon, 04 Feb 2019 11:22:11 -0800 (PST) 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=@broadcom.com header.s=google header.b=XxkDFU+i; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729251AbfBDTVo (ORCPT + 99 others); Mon, 4 Feb 2019 14:21:44 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33469 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfBDTVn (ORCPT ); Mon, 4 Feb 2019 14:21:43 -0500 Received: by mail-ed1-f67.google.com with SMTP id p6so936865eds.0 for ; Mon, 04 Feb 2019 11:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=yjlgHfUuLREhUyUC0oL83S2doeTgEdz5km2W8jN9X3Y=; b=XxkDFU+iUxzT3gR8bd2KVfuPG48QCSiFCkRIh6DQevqQLhgTC2FEZyvZA+bVrEkvse 0PB6J2mvSMfMJOvmHHQPu2kT1l0zRAUGHn7xivL8WC7Q+Amewadvtm6pxtnYMS9wVHtf BoHPymkcZ+owgadisxYLvjXrecctGpIIJmR1c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yjlgHfUuLREhUyUC0oL83S2doeTgEdz5km2W8jN9X3Y=; b=Ih+F+T3ojhBrG8Z3AA6bCxYQTPxqIaJszVvDNhlRAVQI3Y+zq/CmYqo/7zZXQKGHGO YsMePjesMf/4qJ5a8VSRWzMtC0a+yD+eMxe4eM/2e1DXS8t/bsqXgCFtFnDsxEFRKnL9 fO0RXjk9eZJYKiqpIYLUu5zQCm/iYCbeYI+6dlO8ULaccLOk/IHwr+f/j+W36i8ta9Ck 8LiYhrmPRzAdmM0lcuVC6AgNmbgTC/STRgL4omy7a//3gDuI4PRzThn5hEBzEEJUcfog b8zmqo8AG6TtxnQFiE4/8J452J8+FyB0qaquCqc9+WlUONfILCH42FEDWB7CPq7U0DJ5 oStg== X-Gm-Message-State: AHQUAuY/IASURnLNhlLO8gHHQeaOKfnXlYRKxfMWMHnBa3L6Vs6IvzQ/ OX1ynYrfhj8Ftg+iNhNlq3maJjbKnLuDa4gg X-Received: by 2002:a17:906:480d:: with SMTP id w13mr733985ejq.40.1549308101840; Mon, 04 Feb 2019 11:21:41 -0800 (PST) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id h47sm4627953eda.8.2019.02.04.11.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 11:21:41 -0800 (PST) From: Ray Jui To: Jassi Brar Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur , Ray Jui Subject: [PATCH] mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue Date: Mon, 4 Feb 2019 11:21:29 -0800 Message-Id: <20190204192129.93533-1-ray.jui@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rayagonda Kokatanur 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 --- 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 d713271ebf7c..a64116586b4c 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.17.1