Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1280732imp; Thu, 21 Feb 2019 23:55:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IZkYW/CPboaJ6e5U/A+/rJngaWzRb7k8EBpDj1SykbvxCAM8HQXhY6TVE4aK57ojHrS37s1 X-Received: by 2002:a63:d904:: with SMTP id r4mr2731764pgg.207.1550822139173; Thu, 21 Feb 2019 23:55:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550822139; cv=none; d=google.com; s=arc-20160816; b=tKv0ZgQZx+ExHRwMh7y208ROt76AdXu8/HPjRI77WLM/3Gs/+eyXFxte5qbReqnYfb r1oM6HddoV9rWIMjHpxyXXWCek16Rp1LTXYwpOwnR5DZ41f4mJnwuVH9FJg/+rm0IKpo 6ap4aRbmEGefMM5nrDxJOKEzi7DuxT0BFqyTWRpB5aNx1ghq7Ju/V/aRxk51pgM5Do7X rko/DlaZYrw/4yeOn/Q5hQGUK+Qmkbkw0IaMiUXfsKRss2qcCi54ndnmK6VPGRsIDCsj m9bMLk/VyIvop4aQ7Sa46fHRx3opwT2ppZjhl2wVLZC1/b6iCfVXSJ+iIpD6uFv/QRnM wkZQ== 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=wDy5K42+UAtjm+HC5+OCm9XOtpfzoFEPlqbAa/HPeMA=; b=kYREa2NDZbFPqzcoz3a9doEw11e6Sh78MAQ86Al0DKlrbXU6XH+DqVN5DUNMUNMV4a 5zQO7fWh8I8CavWW58OeGA2/VRjnvs3D/N+CU8V2/gAjG8NSmkOiYie4v+8opclIt1j3 +VeGSJyLLgLT0h5KmiKAzUcAXrbslPjN9waPavCF7qAWH/8JNyXdF7271xxs+aWUPeAB IxK9oCRKNtC3WQcTq8clBpuCOjfSfjZBX++Ndc6AOEJMSEJTYZCy5C4DVahGf1o8jNbp TJKuJStS3pzBtNFDG1ZC+gbU/afCX2gXf9Ivnz2k9awgs41/lFIh8dMSvy2HCn69YorN KNoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=llM7pLVq; 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 v10si756843plp.424.2019.02.21.23.55.23; Thu, 21 Feb 2019 23:55:39 -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=llM7pLVq; 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 S1726281AbfBVHzC (ORCPT + 99 others); Fri, 22 Feb 2019 02:55:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:39712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfBVHzC (ORCPT ); Fri, 22 Feb 2019 02:55:02 -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 C70B9207E0; Fri, 22 Feb 2019 07:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550822101; bh=JEz0bcg046WywF68HABvhfGgl3vqU0KxKynTcb5gqmo=; h=Subject:References:From:In-Reply-To:To:Cc:Date:From; b=llM7pLVq68TADgySgHWtB0kdPJ/TgXNZlpTLdQBkrYaP4JmTNaWDmKkN6qkRt4apg s5ZL6Elew86NCzobE28xLKzID7bpahrV67GfVNEd+ji9+Ns+9px7vP4mToKLo6NzZV NbexmdYxMaxjmwnEqup+4tfPjZytfFRyv8CehGKw= 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: <155082210099.77512.4042430864962937771@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> <155069142918.77512.15726787055211591362@swboyd.mtv.corp.google.com> <1550716451.23876.5.camel@mszsdaap41> From: Stephen Boyd In-Reply-To: <1550716451.23876.5.camel@mszsdaap41> To: mtk14994 Cc: CK Hu , Michael Turquette , Ryder Lee , Philipp Zabel , srv_heupstream@mediatek.com, chunhui dai , David Airlie , Sean Wang , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Matthias Brugger , Colin Ian King , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 21 Feb 2019 23:55:00 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting mtk14994 (2019-02-20 18:34:11) > Dear Stephen, > > + unsigned char mux_flags; > >=20 > > Why isn't it an unsigned long? Isn't this supposed to match the > > frameworks version of the clk flags? >=20 > ----> it is unsigned char mux_flags ,becasuse struct clk_mux { >=20 > .... > .... > u8 flags; > .... > } >=20 > it is matched when use " mux->flags =3D mc->mux_flags;" >=20 Please try to not top-post. Ok I thought it was the generic clk flags, not the mux specific flag bits. Sounds fine then, but I would sort of expect it to match the type in clk_mux then, i.e. be a u8 instead of an unsigned char (yes it's the same in the end but it looks different at a glance).