Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6156265yba; Thu, 11 Apr 2019 13:17:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1TGA024uCFt0wPUmvx/hz1pQgpBTza+ARg00KntJTcH964ILlEJJ0EVTvW32i6+F03dN5 X-Received: by 2002:a62:a513:: with SMTP id v19mr51687847pfm.212.1555013835657; Thu, 11 Apr 2019 13:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555013835; cv=none; d=google.com; s=arc-20160816; b=d/+tFeh+G/Hu41GSrXx2EdxUhw1YPCc6R1hswE3TJWA+cV31Cx7XBNvSU1Hy13P2C0 GlDsjTRloKkODFsezavD4hPDdKMWRTpVn2PQwuFVqKqENtR7YonW/NDBHECMOO2xWlCP 93uWVUPCxVgdhVnQWbAHFHeIUgdaYffC/wFUod5ozRtBuT+m8DmisXOO1hpqcdsd5I3J /a1V+Ox0Be14qV2rWY+KYXNTykjvywkhJ9WurptGQx0Vc/ptsU9iW6oSdgwtcl2iZRYp EL+yjfC2j7xL8Yl00j4Jkk1IRLvdkbDKA2BXmVmnqz9MVTd+FAghEsz20wdrG/zKaoW1 bkuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:cc:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=mRAtumr2P7rdLJ1lOMzEBoLNKvE+b5PIYcMk60mOUYs=; b=pLvz7UEHZSVGg+x2X9obS8G50lfN0RgN+YD9D8DYpw+6KD8VWCuNhnF2RaPUAbI6tP e+giG9bG47wH5kLUQLuekUWrcGdQCufTcXBAp2LhSCm36LLcxZQDWZriysqhnMMQwY5h kfi7KNFbTpYxpd7P4Szq2CEwCG+1sS6i/C62+s3uScJbt1uGsE6ve10W6btYqZw/gynO bkmjlop/+WL2IebzZsAsNRUsUlhHp9Fsc3qztQCdmfB/ynHapVltvnWDM3wjD57gKd0C s/4LRNn7czpQgUPsH09UK6wrXqJTYKxxNvMyP8UPV1uE0SgoagSp10xxY8QHJqhv2XmX libw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FI3BFwBo; 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 m4si4007361plt.26.2019.04.11.13.16.59; Thu, 11 Apr 2019 13:17:15 -0700 (PDT) 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=FI3BFwBo; 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 S1726875AbfDKUQW (ORCPT + 99 others); Thu, 11 Apr 2019 16:16:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfDKUQV (ORCPT ); Thu, 11 Apr 2019 16:16:21 -0400 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 C052E20850; Thu, 11 Apr 2019 20:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555013780; bh=mRAtumr2P7rdLJ1lOMzEBoLNKvE+b5PIYcMk60mOUYs=; h=In-Reply-To:References:From:Subject:Cc:To:Date:From; b=FI3BFwBozTe4SoaU5U/LCJTcZH2YXCiPs+AIIYSMp+ZaAyvB424iUhpNaYilxPtcx g46L5GH/S2QOXiUtP1/0Einv5PzzKUJgKj0wsFthm5bGTedupEgdbprfjiqlsCBpW0 mi1a1O5i9DvbAE+BhMtX1JpWjDbdbqZJeScC4kt0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190305050546.23431-4-weiyi.lu@mediatek.com> References: <20190305050546.23431-1-weiyi.lu@mediatek.com> <20190305050546.23431-4-weiyi.lu@mediatek.com> From: Stephen Boyd Subject: Re: [PATCH v5 2/9] clk: mediatek: Add new clkmux register API 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 , Owen Chen To: Matthias Brugger , Nicolas Boichat , Rob Herring , Stephen Boyd , Weiyi Lu Message-ID: <155501377988.20095.3921794940086690412@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Thu, 11 Apr 2019 13:16:19 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Weiyi Lu (2019-03-04 21:05:39) > From: Owen Chen >=20 > On both MT8183 & MT6765, there add "set/clr" register for > each clkmux setting, and one update register to trigger value change. > It is designed to prevent read-modify-write racing issue. > The sw design need to add a new API to handle this hw change with > a new mtk_clk_mux/mtk_mux struct in new file "clk-mux.c", "clk-mux.h". >=20 > Signed-off-by: Owen Chen > Signed-off-by: Weiyi Lu > --- Applied to clk-next