Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp94059ybz; Tue, 28 Apr 2020 19:02:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJwM2wWdBN4369ANWnLj6/EQdrN2mXyXhcyVq2HA33PUfeQjpeboWKs2VgEbHXYN1zwNq80 X-Received: by 2002:a50:9d42:: with SMTP id j2mr494896edk.249.1588125758630; Tue, 28 Apr 2020 19:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588125758; cv=none; d=google.com; s=arc-20160816; b=MydWwCJ2Ovou/5eyVjHREpXjfeHaPtH5I7hkz++VFkFKSXARqgTanbxlj8dJF/amgH 3Ab/RWNGNdANf9fOHP3ATsknWdhKogP/1sJhgrHs/BEaANfACQx0FO52I73a5Sfwncm+ fm0SNLHEiq6Kdlg46UFYgjIbOEdeWPH4WLDiOyBzgTG3GGHVZOexSm51geZucdhrRzHt asT6+qW0hj0XEK7fjwAiRIEvSARD+AjTY2GT3zcm42geGgMmmRnS0YjV91f+MdfdjbXY 6dLdlyIgwerPc3PqR1MBzf4Y2mNX0prThSAMTv6pYaxi0ZyKnb2AE1+kvMSB34oAeE2x 8nDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fOdq6q5vRkbkokgORrCfYabUtjKnHwOzCq/INJN0eBU=; b=1IiCbSnRH78iYngyCNM3VjKghDDU+MX8OphVrpmb/vmBhoStnyyEtw4jTG6/A04Cb7 o5kuJ0zLTMQ4GaWxD/lzWwAjUmWs46V6p9JIHHNaRTqrifKE7pCX7I9uk4a/HftdiVJn 2oN8RkHKhOz4/xZa/5W1EPVjUDv2Lxn/6QIxHju2CPTS9uK0nNvFTdXUnANzBKLDgS21 BbAUJThRXSZ6EB7iiWFex33pa0zltqMTKGzNrxaBljlAh9r86NJJCUZxv/kej1fxHrCW oNvbim7uRkkusnbBATtuH1y9y9MvHbGb0CBwiB5A4nQp/+WHaMDU9s6lUPgeSQghRGcD mO5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z9dGYTK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cz15si2398193edb.381.2020.04.28.19.02.15; Tue, 28 Apr 2020 19:02:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z9dGYTK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726543AbgD2CAc (ORCPT + 99 others); Tue, 28 Apr 2020 22:00:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:51948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgD2CAb (ORCPT ); Tue, 28 Apr 2020 22:00:31 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (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 BE05D2073E; Wed, 29 Apr 2020 02:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588125631; bh=UOQ0AgSZSddPa4oMPBO/udK77ds8YJT1AliiBkX9hkQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z9dGYTK6zsa7MZLOLmq5X0BZ5gyGFTJMbIvaDtVUxXRX77Enpm9a5nGX0iz1qpsnS SauewEX7BRXuXuLB6EJzUOn+iaMqvyrQfJIVedjrkSxjBNyYXkNigFaGnW9twa1mQ6 Jqk9u3mpEXNe+om0lvCocHiQSokCwDJ2qgvBZ2xI= Date: Wed, 29 Apr 2020 10:00:23 +0800 From: Shawn Guo To: Abel Vesa Cc: Lee Jones , Peng Fan , Philipp Zabel , Stephen Boyd , Sascha Hauer , Anson Huang , Leonard Crestez , Jacky Bai , NXP Linux Team , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 05/13] clk: imx: gate2: Allow single bit gating clock Message-ID: <20200429020022.GD32592@dragon> References: <1586937773-5836-1-git-send-email-abel.vesa@nxp.com> <1586937773-5836-6-git-send-email-abel.vesa@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1586937773-5836-6-git-send-email-abel.vesa@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 11:02:45AM +0300, Abel Vesa wrote: > Audiomix on i.MX8MP registers two gates that share the same enable count > but use the same bit to control the gate instead of two bits. By adding > the flag IMX_CLK_GATE2_SINGLE_BIT we allow the gate2 to use the generic > gate ops for enable, disable and is_enabled. > For the disable_unused, nothing happens if this flag is specified. > > Signed-off-by: Abel Vesa Applied, thanks.