Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp927543imp; Wed, 20 Feb 2019 11:37:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjxJVyFPffSYWNZSc7yrI+rCnbduC88lj3jYtgYNWLmW/6iTZWTMBUGk1L4/BnlIchJg4g X-Received: by 2002:a65:534b:: with SMTP id w11mr30841132pgr.125.1550691474275; Wed, 20 Feb 2019 11:37:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550691474; cv=none; d=google.com; s=arc-20160816; b=B5FmsJwA3czIoyv6LaPDY9ypXYETMrE7H3uGqljDFQZKxUaDgCOvvRUPWTCgiDPCi1 BeB+sC1K5nVOEryN35TtJbJZdyibIbJMH3+xK1shXsxoa7Rz8R+2WjWz7HFRGu4FAKcw GuC8RwfsqRgtd/F2rEXcodMkO1IbY+LKbcDNdCOULToUc1jPqRNW37g9HtK7Uz/KDUHc EEQSs1YjaVuEE+IQ8x+GzXXV8VlCU1NVvbos4GmmSYwy2VvnoeyB56cHfTu/zVw2pdGN niMLk/NYIAAwtpM7P/FMg9OhsZic1mnUGmWYTl2ZJpui06FnZU6kpUW1yT1N3FxfCCXA 6RFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:in-reply-to:from:references :user-agent:message-id:subject:content-transfer-encoding :mime-version:dkim-signature; bh=HAeazmIdSuNJwBg33iNenxSSRuz2OTTb+w0R4TGxJY0=; b=y2cuToNxnbhMWiCofaJLxvzT8/VPAS7EbJFISoC9V8K9jdFCZezT/BCewYPmMFX0Wl MHW9wB1pXLmbHIR7qysGABNtMJkHSDD+4ljBdwm71ZRmJ59m3TdAtP/5yhVQAJo5yzTf f91PSTT+DQpGihazRUDETz0xj76F21Sn/CeNftHoH1oqfahqj2EihnPtHRJsq7XAWzEu AT8BpDjkArElvd7n9Ry1wgdmro21lIl9ul7jpY69DBAa9BjqiQphtc/rLAELoMbQLLsF BwVBC9UQVvQSg/Rr1ukvwhiGi1GBSbO72UMsjQc8uzfT0LD5LH31k09gZWHCpRB6r2SQ QJWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ky5RQCtt; 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 u77si21518229pfj.139.2019.02.20.11.37.37; Wed, 20 Feb 2019 11:37:54 -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=ky5RQCtt; 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 S1726194AbfBTThL (ORCPT + 99 others); Wed, 20 Feb 2019 14:37:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:56014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfBTThK (ORCPT ); Wed, 20 Feb 2019 14:37:10 -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 F01872147A; Wed, 20 Feb 2019 19:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550691430; bh=ls9Kb/WUZC2EEQcYIXRlGgc5kXAjNg6isxqpbbiI54c=; h=Subject:References:From:In-Reply-To:To:Cc:Date:From; b=ky5RQCttZLD9W7GPElvHfb73aS1HjSxHPKu1hxFx290GUDtGun6k+iQ6Xy8MFBpAq g9BED9OpfiZbWRT3FqIwJyuQ9q61CecNsr9bhvUAenG7SXoFLfAdjTOR1EcFznnIAi IRYq3jdv1SCPRKSXAX1M+8OhJI5VlU/M1N53q8Uc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH V5 5/8] clk: mediatek: add MUX_GATE_FLAGS_2 Message-ID: <155069142918.77512.15726787055211591362@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 References: <20190220025357.7354-1-wangyan.wang@mediatek.com> <20190220025357.7354-6-wangyan.wang@mediatek.com> From: Stephen Boyd In-Reply-To: <20190220025357.7354-6-wangyan.wang@mediatek.com> To: CK Hu , Michael Turquette , wangyan wang Cc: wangyan wang , Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , chunhui dai , Colin Ian King , Sean Wang , Ryder Lee , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, srv_heupstream@mediatek.com Date: Wed, 20 Feb 2019 11:37:09 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting wangyan wang (2019-02-19 18:53:54) > From: chunhui dai >=20 > Add MUX_GATE_FLAGS_2 for the clock which needs to set two falgs. s/falgs/flags/ > Such as some mux need to set the flags of "CLK_MUX_ROUND_CLOSEST". >=20 > Signed-off-by: chunhui dai > Signed-off-by: wangyan wang > --- > drivers/clk/mediatek/clk-mtk.c | 2 +- > drivers/clk/mediatek/clk-mtk.h | 20 ++++++++++++++------ > 2 files changed, 15 insertions(+), 7 deletions(-) >=20 > diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mt= k.c > index 9c0ae4278a94..2ed996404804 100644 > --- a/drivers/clk/mediatek/clk-mtk.c > +++ b/drivers/clk/mediatek/clk-mtk.c > @@ -167,7 +167,7 @@ struct clk *mtk_clk_register_composite(const struct m= tk_composite *mc, > mux->mask =3D BIT(mc->mux_width) - 1; > mux->shift =3D mc->mux_shift; > mux->lock =3D lock; > - > + mux->flags =3D mc->mux_flags; > mux_hw =3D &mux->hw; > mux_ops =3D &clk_mux_ops; > =20 > diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mt= k.h > index f83c2bbb677e..4b88d196d52f 100644 > --- a/drivers/clk/mediatek/clk-mtk.h > +++ b/drivers/clk/mediatek/clk-mtk.h > @@ -81,15 +81,13 @@ struct mtk_composite { > signed char divider_shift; > signed char divider_width; > =20 > + unsigned char mux_flags; Why isn't it an unsigned long? Isn't this supposed to match the frameworks version of the clk flags?