Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp778932ybl; Wed, 11 Dec 2019 07:23:37 -0800 (PST) X-Google-Smtp-Source: APXvYqx6iXnF8NmX5wbj/COKv//6XsJS+5d1w6ezrJN4WzcXBAyMG79Izwyw1JykLh1fu/Xfd0hU X-Received: by 2002:aca:3b54:: with SMTP id i81mr3304674oia.155.1576077817154; Wed, 11 Dec 2019 07:23:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576077817; cv=none; d=google.com; s=arc-20160816; b=KALU4yIs2PNOEIiWUI8WOTl77TtEgs0NMAk4N6G5vgbOvVhuhGLcSCXjz3IPiJXx/3 B+k9IGo7jCyAnl+LNBihHeNrBZ0EebyAPmKjnQz47c7UQKsjgO8Z3HgywUqxDAjKkkHP JfZmuiV7xXnAKMR++QvRF5dY2gdfZ50R0jODkhGU6lnrDLmFUFvU4G2q1eYdb6xd8Y9d DxLymfrkZQvzB3+40AVRwqKAUUASG1xisXE7s7Rx/oA9B4vzPD85sHBJ9heL/ZmyBLar ViSKerQh1SBJ7swPdrqGgcO1xVfze4EHiQq0ecIEKSpd6dyeVZzFPKey9sc9bHBv0Geo CEHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZWGIUa0OVaHTc1npHW+j7gcVud9on69+80f286T83sI=; b=LjhGJWTAuBTbCHYuoNH53iJYsc2/AVa4oZt/iGRX3ERQ6PqFEVPygtEnFbk7f5pkwe kbxhVo5ZmkI55g1u4CFkQRiYxkhdtTMl+It/tsCbyjdl0RasttQ0xdQsWSp5JnyQCO51 Ub+MNuft3baQ9qVkjwnu3/XbsBOfslVkjp+liHyIhL4M7ZAR27JjdNGQAGfDQ3G1SYEl jV8W1mWjOcyvAbG6n6/Cdmn7KBaoGUN2qMCebEn9eUH7/dsXO68GtQ0xGNQP7C+sIl9C Wev3CbwIhUs34Ypoo0y8VD5eopWiAt7Tp8ra2rcUtyrzFcO4W9aTg5yxTKGmEa4Q1ERV /8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JaL1puFx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si1323470otr.145.2019.12.11.07.23.24; Wed, 11 Dec 2019 07:23:37 -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=@kernel.org header.s=default header.b=JaL1puFx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732419AbfLKPWw (ORCPT + 99 others); Wed, 11 Dec 2019 10:22:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:53622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732630AbfLKPWs (ORCPT ); Wed, 11 Dec 2019 10:22:48 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C64EA2073D; Wed, 11 Dec 2019 15:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077768; bh=sBp0YHgt70jpnj3jI0N7+0m0ZK2YV5St8lYmC2G7qZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JaL1puFx465wH96rLpkoFRK1HxTOKafX4J9KaqNRB2Tb5C/nm1j8R0O3sJpLGnFmp bb6wCJJehNLq4wTWfpbAs4HeIHA+iOnFz+OaB0bRJvF1dh3l7FVB/Sn7gb5LQESLnn A3nWsAFLTMTO79DoZIZ4oUAtEiJzYVMGrW6WNXNI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeffrey Hugo , Bjorn Andersson , Stephen Boyd , Sasha Levin Subject: [PATCH 4.19 164/243] clk: qcom: Fix MSM8998 resets Date: Wed, 11 Dec 2019 16:05:26 +0100 Message-Id: <20191211150350.236425961@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150339.185439726@linuxfoundation.org> References: <20191211150339.185439726@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeffrey Hugo [ Upstream commit 4f89f7b59a6ea17e81cff212c18a0b580ff5ff27 ] The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation. Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver) Signed-off-by: Jeffrey Hugo Reviewed-by: Bjorn Andersson Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index cd937ce6aaaf6..5fd6662a1beac 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2743,25 +2743,25 @@ static struct gdsc *gcc_msm8998_gdscs[] = { }; static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR] = { 0x102400 }, - [GCC_BLSP1_QUP2_BCR] = { 0x110592 }, - [GCC_BLSP1_QUP3_BCR] = { 0x118784 }, - [GCC_BLSP1_QUP4_BCR] = { 0x126976 }, - [GCC_BLSP1_QUP5_BCR] = { 0x135168 }, - [GCC_BLSP1_QUP6_BCR] = { 0x143360 }, - [GCC_BLSP2_QUP1_BCR] = { 0x155648 }, - [GCC_BLSP2_QUP2_BCR] = { 0x163840 }, - [GCC_BLSP2_QUP3_BCR] = { 0x172032 }, - [GCC_BLSP2_QUP4_BCR] = { 0x180224 }, - [GCC_BLSP2_QUP5_BCR] = { 0x188416 }, - [GCC_BLSP2_QUP6_BCR] = { 0x196608 }, - [GCC_PCIE_0_BCR] = { 0x438272 }, - [GCC_PDM_BCR] = { 0x208896 }, - [GCC_SDCC2_BCR] = { 0x81920 }, - [GCC_SDCC4_BCR] = { 0x90112 }, - [GCC_TSIF_BCR] = { 0x221184 }, - [GCC_UFS_BCR] = { 0x479232 }, - [GCC_USB_30_BCR] = { 0x61440 }, + [GCC_BLSP1_QUP1_BCR] = { 0x19000 }, + [GCC_BLSP1_QUP2_BCR] = { 0x1b000 }, + [GCC_BLSP1_QUP3_BCR] = { 0x1d000 }, + [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6b000 }, + [GCC_PDM_BCR] = { 0x33000 }, + [GCC_SDCC2_BCR] = { 0x14000 }, + [GCC_SDCC4_BCR] = { 0x16000 }, + [GCC_TSIF_BCR] = { 0x36000 }, + [GCC_UFS_BCR] = { 0x75000 }, + [GCC_USB_30_BCR] = { 0xf000 }, }; static const struct regmap_config gcc_msm8998_regmap_config = { -- 2.20.1