Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751287AbeACBrJ (ORCPT + 1 other); Tue, 2 Jan 2018 20:47:09 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:53424 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbeACBrG (ORCPT ); Tue, 2 Jan 2018 20:47:06 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 53DF760818 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Tue, 2 Jan 2018 17:47:03 -0800 From: Stephen Boyd To: Joel Stanley Cc: Lee Jones , Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andrew Jeffery , Benjamin Herrenschmidt , Jeremy Kerr , Rick Altherr , Ryan Chen , Arnd Bergmann Subject: Re: [PATCH v7 4/5] clk: aspeed: Register gated clocks Message-ID: <20180103014703.GS7997@codeaurora.org> References: <20171222024522.10362-1-joel@jms.id.au> <20171222024522.10362-5-joel@jms.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171222024522.10362-5-joel@jms.id.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 12/22, Joel Stanley wrote: > The majority of the clocks in the system are gates paired with a reset > controller that holds the IP in reset. > > This borrows from clk_hw_register_gate, but registers two 'gates', one > to control the clock enable register and the other to control the reset > IP. This allows us to enforce the ordering: > > 1. Place IP in reset > 2. Enable clock > 3. Delay > 4. Release reset > > There are some gates that do not have an associated reset; these are > handled by using -1 as the index for the reset. > > Reviewed-by: Andrew Jeffery > Signed-off-by: Joel Stanley > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project