Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp996635ybz; Wed, 22 Apr 2020 11:38:31 -0700 (PDT) X-Google-Smtp-Source: APiQypL/pbwYIR/jvnVfO8WPK7VINoi6KNs2U4gVI1zgLsqdqxb5zTEKFlJJzy0iHi851SH0lpWR X-Received: by 2002:a17:906:4482:: with SMTP id y2mr26408721ejo.234.1587580711118; Wed, 22 Apr 2020 11:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587580711; cv=none; d=google.com; s=arc-20160816; b=EO31KqCDBJ3kJg7CsvBbNtzfjz3uu8bDerddCBhphsvWxs3PIcQ4XbWP0MAGe+w1mK sqvPRr7QjnyvuLbIAYqMUvXnNLOKVZbVDmDzoljxOAoovEQFK3Ei4qlxO4bzRSntFyWu ILlSWtaWeI+X1Y/+XMZ8MAyns3YhIbowkmXSSA6SPAQxPfoe/aD2qC9My9zpX3KkGGnt R4mBGtxl4fU1ph6fQ53AZMBim8oNFRzHhPt9mW3kLwkA8B1QJOYjcTODGn7JN47fLSaR DrQjoZAV/nQnxFhcV/WuG0VWsVtCwn9wtJi81hf0JfVvzI2aK3ZSr7VMMMX39Rc7e0Q0 eMEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=T4kdhqCafwM/UbR3FZ9TP5rqIAkCxdB3G9X/CnrP4R8=; b=M1+MEhWzPFPzsq5WXoOQg0V6FVFFvEPYOUYA7wn+SSP8grG09+24VHI4tKTmsflAqa c23McmZmn46eW8Thd/nAsMs91xXzdilJls2ijCSNDKUNLaCzPb1IItFGjzW7M0m/R/By jrsUudqiMeLqvLy9IF5K4MfkCCkj6kZXnjNVOchbneEJeVJvo/40xybgSfYiAwVTJoxn fjEpkqlg2edUpdlUsMOwgWbDyow5O51eOIuBpzWsTN+w/dqOCH3zji2ERncwRpn5lIll uwp+5qFSM0RSknxU0xY2GjSpRcs//NsKW48wkeLg0XV3cxsFbidxfOsf+4bk8UaV1FQb pyxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pP4psPYh; 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 l12si767070edn.565.2020.04.22.11.38.06; Wed, 22 Apr 2020 11:38:31 -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=pP4psPYh; 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 S1726605AbgDVSfo (ORCPT + 99 others); Wed, 22 Apr 2020 14:35:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:33062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgDVSfo (ORCPT ); Wed, 22 Apr 2020 14:35:44 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 F24A62075A; Wed, 22 Apr 2020 18:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587580544; bh=T4kdhqCafwM/UbR3FZ9TP5rqIAkCxdB3G9X/CnrP4R8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=pP4psPYht7hIgvKBMdgBgzqJ1QwCsALKq0LqIzcICVQIq5EFrd2XTLKUQh6VdwckK NFTbf9IuoerGuGX903Jz9eLrqQbjg2J3xGuGaAmt1RG5HJF53lgw/oOG7vuRILanV5 qtjuprGc/zDGbrnB5FgTVA0KrPoUlCK3GpHl//DQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1586937773-5836-6-git-send-email-abel.vesa@nxp.com> References: <1586937773-5836-1-git-send-email-abel.vesa@nxp.com> <1586937773-5836-6-git-send-email-abel.vesa@nxp.com> Subject: Re: [PATCH v3 05/13] clk: imx: gate2: Allow single bit gating clock From: Stephen Boyd Cc: NXP Linux Team , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abel Vesa To: Abel Vesa , Anson Huang , Jacky Bai , Lee Jones , Leonard Crestez , Peng Fan , Philipp Zabel , Sascha Hauer , Shawn Guo Date: Wed, 22 Apr 2020 11:35:43 -0700 Message-ID: <158758054316.163502.7559386766986350752@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Abel Vesa (2020-04-15 01:02:45) > 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. >=20 > Signed-off-by: Abel Vesa > --- Reviewed-by: Stephen Boyd