Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp12095yba; Thu, 11 Apr 2019 20:31:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt78t4Qtvf6KNcrUyF+NMTNTkutvULiLWgAcrKiRY0kzAB2mMxM7MGmN0QPnrmQtFNWARX X-Received: by 2002:a65:4105:: with SMTP id w5mr18793148pgp.222.1555039911831; Thu, 11 Apr 2019 20:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555039911; cv=none; d=google.com; s=arc-20160816; b=caz6Es3zc+skfhYkEUyImYOvfryh0+N7NuFJbu1TXQjwRxoCMMV6cbeKKgBebAok0r UmWW8YbeAEjWpyqbctKw6N6Da5iv7Hbwi0kRhOUhForRkzeOuzMfHfUO9pqf4/ki1wWd maqDm7B1sWJNWZ0gHZpxE/JuyKASQFzJbgwLH5TwCvDC8d+05KKsZOIy3EgtuIsQbh2g SQqFNnfdC7r1hhOJwF+k6TQy1wZe684dreJsKVqKS5O3AorgIEAEKiFydXPkOzkK7j9j 58KSizWaKda0SGtt+VEBio9uDRE0lsdYEuH+N6kDWCFxWKb5y1d/1cxKnFDrE2ZiBIfJ 2wDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=pWV3bhzli/JR67NAJz9Nv84Q0UObnU/AL0Y/J8Rh+00=; b=ntIJOwV8vAeZYLy7+TFsRLHRdwQn+dzc1c8ET+ZbjZs1CdIr1P2vVitPhfjftPMw0s 2S+rX+pvrjyFglUUfUwxu8nyRJKzFPGPPCwGdK0DFvR/BVD9jQqVXGILQ3nXlYz4pn3s gNnA3IRBbeg35W5R6EeTvEbvw7ieYcqy+sk09SWFITbMrhokhJebykmfGdFYXXnrafl2 AStN8Pes417eJAFEMwW/talqqoUZf/ZljJR+kYud0ooKqOGpzVapamd2TGWcQJp56Tax M1fTu1qvhf393Am2BxrzNIo2+PmhrjhQJKDtIku1xScXMG/vw1o32Wb6KQdnI0Q6KLr+ 06Jg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g123si35285166pfc.58.2019.04.11.20.31.35; Thu, 11 Apr 2019 20:31:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbfDLDau (ORCPT + 99 others); Thu, 11 Apr 2019 23:30:50 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53130 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726678AbfDLDau (ORCPT ); Thu, 11 Apr 2019 23:30:50 -0400 X-UUID: 5e47a1eb8c0249b3874d61373a1330ca-20190412 X-UUID: 5e47a1eb8c0249b3874d61373a1330ca-20190412 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1606451456; Fri, 12 Apr 2019 11:30:45 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 12 Apr 2019 11:30:43 +0800 Received: from mtkslt210.mediatek.inc (10.21.14.14) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 12 Apr 2019 11:30:43 +0800 From: Weiyi Lu To: Nicolas Boichat , Matthias Brugger , Stephen Boyd , Rob Herring CC: James Liao , Fan Chen , , , , , , , Weiyi Lu Subject: [PATCH v1] clk: mediatek: fix clk-gate flag setting Date: Fri, 12 Apr 2019 11:30:27 +0800 Message-ID: <20190412033027.3516-1-weiyi.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: C3B5DB38EADB2F84A1322D5F3415410989DD1D0CFB5D5BA9BEC29150E9F064962000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CLK_SET_RATE_PARENT would be dropped. Merge two flag setting together to correct the error. Fixes: 5a1cc4c27ad2 ("clk: mediatek: Add flags to mtk_gate") Cc: Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c index 9628d4e7690b..85daf826619a 100644 --- a/drivers/clk/mediatek/clk-gate.c +++ b/drivers/clk/mediatek/clk-gate.c @@ -169,11 +169,10 @@ struct clk *mtk_clk_register_gate( return ERR_PTR(-ENOMEM); init.name = name; - init.flags = CLK_SET_RATE_PARENT; + init.flags = flags | CLK_SET_RATE_PARENT; init.parent_names = parent_name ? &parent_name : NULL; init.num_parents = parent_name ? 1 : 0; init.ops = ops; - init.flags = flags; cg->regmap = regmap; cg->set_ofs = set_ofs; -- 2.18.0