Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1743177imu; Wed, 21 Nov 2018 01:01:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJwREdnrlvqivlrXoMWgHmVcQFyf+QmE5IC5U/qQ0WNLMWi5eTmyfe2XkD7S50VikopFVD X-Received: by 2002:a63:b105:: with SMTP id r5mr5215877pgf.442.1542790909883; Wed, 21 Nov 2018 01:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542790909; cv=none; d=google.com; s=arc-20160816; b=T7oAGy/N3zDg+IxDo+BqDUq3mNxp3XiBN4ymkqLGWVecubRdJIVo/EtZkZ4iPwdndv YrGqjlb+jr/tlhC8j0Co160jRs1flkwA/1ye4HgJ/Vwnh85G56ZbRUzM3bdYTkpDB14f msePGOM6/djeVdvDAC3/PzlVjEhJkQE7LvDD/1P8S1AC2gloRK00pM7EhFFwpTk6GKPc 8YIG+EV0U995pjnfUgRjs9MypXA4tPT1i8dgQW37Lv9g2YGHD9EsCG3m0hoLnoBmHycg kmZEf6EFEuQEkEZsquVIpLu4+6opc8ql3eIGz0k+LR/Mm9TOHauVkzlzvAlfKnMTpi2U D9Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=cn2lF0gcvQR+FONqyJl9n6t4LCo6bGltvXw6TDhEVk0=; b=uuYy8MlAh0zpoD4szlR6/xgg/O4ThPJcuRCQVwGTe/pzyh3nWlW1xmzl2RZpcjT7Kv iItctWlFMtF431BQoMSAWHoTk92I+NC4PYqOeF057ThrMujz/zrrE0BcQ54EmxVdtegX GvqOuST7Iv/52IPb6jsRc5FVS8uYVRbA1exsFT2FvDiPAB3B2xU5wz5nS/Itw+1qfMb1 8pTEaCvPIDyNi+h8UiuMPLR/2691bDL100tQSFynJV+dOyMtEpg4CobYnRxp60hEUOZv PCeCbc3sXdPDKac3DDVpUjGGPrUX3EqJwjzJ22HAWNlfi/SSLYZAZ0jcUG0quvT6nZSv xyMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="mih/Kt7K"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6-v6si46733560pla.245.2018.11.21.01.01.34; Wed, 21 Nov 2018 01:01:49 -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=@chromium.org header.s=google header.b="mih/Kt7K"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729112AbeKUTeE (ORCPT + 99 others); Wed, 21 Nov 2018 14:34:04 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38474 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729045AbeKUTeE (ORCPT ); Wed, 21 Nov 2018 14:34:04 -0500 Received: by mail-pl1-f194.google.com with SMTP id e5so4563061plb.5 for ; Wed, 21 Nov 2018 01:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=cn2lF0gcvQR+FONqyJl9n6t4LCo6bGltvXw6TDhEVk0=; b=mih/Kt7KIhqH375rhgTGlRfhgIpqIRajJ8jJwWIfMZeBsKYz2l99cL4bMMzwVP2U9g 17YMLQohoWo5vmtDVSYfvAYDq4ten8xMohJZXCMgxSj/jPrGM0zu+++uCPVwS17husGY rxxEZVNmz7eUEth+FO+RB8FLBlfYH79j+iagI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=cn2lF0gcvQR+FONqyJl9n6t4LCo6bGltvXw6TDhEVk0=; b=f/JOdM97E7v625hfn33Xk50oYHs+HAqTKa5fx6Xs7YBYN1KzMTmmKWrn7hsAfPWK1c UGAOQQOnUBMRk3q7G6RkQ2iAuNWxx41bwOqMjyuYJAc54TW9R4mqbsszhZ1NRklcTvTt hS1pYrUklFbeIi0MTyqpSpHATGC6JKMLYys87TF7u2gOzq9dP+cHzYC2I+rtjcnltHOG nc8FvxRT3b2PBjdFfUdLHhnDzP38bOVDNxsMyfralbosTt3MKSuM2KXzV2LmL5aa9u7e 9QacjP4OQX5ez4AUnqIX7WKGWunWF1DcbeD8RzbxVa2+2WNuJVa6Px3Kwh+O/5cQh7Uv cbDA== X-Gm-Message-State: AA+aEWbiE9AIgPjDKBk7fi7E4dIkvWSKy3q5IJx/qmfJ1Ih9Ws4zlQNH SdBB/5weE5G5I7kQABsGqUft5A== X-Received: by 2002:a63:1321:: with SMTP id i33mr5260427pgl.380.1542790824960; Wed, 21 Nov 2018 01:00:24 -0800 (PST) Received: from localhost ([2620:15c:202:1:fed3:9637:a13a:6c15]) by smtp.gmail.com with ESMTPSA id p62-v6sm53418272pfp.111.2018.11.21.01.00.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 01:00:24 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Michael Turquette , Stephen Boyd From: Stephen Boyd In-Reply-To: <20181105194011.43770-3-swboyd@chromium.org> Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Taniya Das , Bjorn Andersson References: <20181105194011.43770-1-swboyd@chromium.org> <20181105194011.43770-3-swboyd@chromium.org> Message-ID: <154279082358.88331.12065362627893713159@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH 2/2] clk: qcom: Support 'protected-clocks' property Date: Wed, 21 Nov 2018 01:00:23 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2018-11-05 11:40:11) > Certain firmware configurations "protect" clks and cause the entire > system to reboot when a non-secure OS such as Linux tries to read or > write protected clk registers. But other firmware configurations allow > reading or writing the same registers, and they may actually require > that the OS use the otherwise locked down clks. Support the > 'protected-clocks' property by never registering these protected clks > with the common clk framework. This way, when firmware is protecting > these clks we won't have the chance to ever read or write these > registers and take down the entire system. > = > Cc: Taniya Das > Cc: Bjorn Andersson > Signed-off-by: Stephen Boyd > --- Applied to clk-next