Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp38625imu; Fri, 14 Dec 2018 14:01:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJrUCLd84TsF8eApj/hjp8WFwRzQ69ttAt6mXkyK3Y9UGQQu/rB386dhjxKJ29TRS7eU6W X-Received: by 2002:a63:2e88:: with SMTP id u130mr4299697pgu.9.1544824872781; Fri, 14 Dec 2018 14:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544824872; cv=none; d=google.com; s=arc-20160816; b=UYFw2seRlaxYUQrTFTu21/IHSIFqy1KteS5DbYV69C2tuVrkoEg5b1YAOrjqB0UoTY HQiEe0JTytrWk//DriR9GHa8l20AbOavC7pen9roUwOPFFx1dKj4j/Yw3xsGrIEvotCk BSb99pOTPX1GpcRlmknoNjwUK0r8C3FPNRzibm+F9Gh/kHz4fhRWRmGqtd+BjkiKGK+n PCKVbY8VsWU8Nt0st+LLKN7szSq561m0AzGWWhfhumOnO0zUv9vyA94ir/5McVKpRl56 cLK7Tvp3ralEVBuMkQwwsKNWxEeICmr9vRflgmvo+wZlOsqFPUM/QdcxZsS3tT+9K992 bhiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:user-agent:from:message-id :references:to:subject:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=bazDAtr1Lf7FsEt60ClCYnwn3v2iw98G9ZjPSF0UJQo=; b=MAlMRCvHrAlFRLzwHRb5tKFq70Jgg9fOOGcv7do73qaTOedFqIbtCq530dMkyYZCTy 9GfxvcdOMTD+HH01cc3Yd1HzpmtSllTf59oMCUzud4Qm8X5ZX3e6iTnYhitleDeO5GlE n7g4bpmhACIOzGd9wehgvBS+wal7up9xELfqoSzodkB3oSHQu2obQZqnwIAj5vr0X5Bl TDaEWn0wwIyJCNtBZ2/P3pMmchTZ0yAFyn1zb0XSp8XEi7oTjSf0wKLXLzAOHEHkBOPs /pWq5x6x5oh+TRSXeClNPfUJPKV35QkFwTMPA3JDYnMwrnU3uWVo8Kn1DON99smTEbpG acUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QcopODKb; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si5465701pfd.3.2018.12.14.14.00.56; Fri, 14 Dec 2018 14:01:12 -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=QcopODKb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731272AbeLNV7y (ORCPT + 99 others); Fri, 14 Dec 2018 16:59:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:52878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731020AbeLNV7x (ORCPT ); Fri, 14 Dec 2018 16:59:53 -0500 Received: from localhost (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 95EEF2080F; Fri, 14 Dec 2018 21:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544824793; bh=HM+pvOXnrVygvetIkh6Obe539vg/4SVk5T1UxvWkShU=; h=In-Reply-To:Subject:To:References:From:Cc:Date:From; b=QcopODKbU4RpoGGdn8CaiRzYCU/HTo1GxBNIQAkfnin4+0SoY7JLy1pQmUnBNZP/7 cneCLtH+NeFt0qfa2HRhcAE1F7a3rYarI3yncT//Ffz3m24zhU2bl88o4t8AKcsRqM RiVaM/Z7hQugntgLwxpKxMn6fCPjoXD+8PNTFGiM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20181210073240.32278-10-weiyi.lu@mediatek.com> Subject: Re: [PATCH v3 08/12] clk: mediatek: Add MT8183 clock support To: Matthias Brugger , Nicolas Boichat , Rob Herring , Stephen Boyd , Weiyi Lu References: <20181210073240.32278-1-weiyi.lu@mediatek.com> <20181210073240.32278-10-weiyi.lu@mediatek.com> Message-ID: <154482479243.19322.7465842539016312943@swboyd.mtv.corp.google.com> From: Stephen Boyd User-Agent: alot/0.8 Cc: James Liao , Fan Chen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, srv_heupstream@mediatek.com, stable@vger.kernel.org, Weiyi Lu Date: Fri, 14 Dec 2018 13:59:52 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Weiyi Lu (2018-12-09 23:32:36) > + "apll2_ck" > +}; > + > +static const struct mtk_mux top_muxes[] =3D { > + /* CLK_CFG_0 */ > + MUX_GATE_CLR_SET_UPD_FLAGS(CLK_TOP_MUX_AXI, "axi_sel", > + axi_parents, 0x40, > + 0x44, 0x48, 0, 2, 7, 0x004, 0, CLK_IS_CRITICAL), Please document why CLK_IS_CRITICAL is being used everywhere it's used. > + MUX_GATE_CLR_SET_UPD(CLK_TOP_MUX_MM, "mm_sel", > + mm_parents, 0x40, > + 0x44, 0x48, 8, 3, 15, 0x004, 1), > + MUX_GATE_CLR_SET_UPD(CLK_TOP_MUX_IMG, "img_sel", > + img_parents, 0x40, > + 0x44, 0x48, 16, 3, 23, 0x004, 2), > + MUX_GATE_CLR_SET_UPD(CLK_TOP_MUX_CAM, "cam_sel",