From patchwork Thu Aug 22 17:24:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 172041 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1191856ily; Thu, 22 Aug 2019 10:25:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXPz0+lB7+yCn394zrz3fncIWR+WygL/9q6VzAt9KsL1852rEgWIumOdax8iksDtxRzSbV X-Received: by 2002:a65:4044:: with SMTP id h4mr327971pgp.164.1566494752137; Thu, 22 Aug 2019 10:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566494752; cv=none; d=google.com; s=arc-20160816; b=OjXT1BS0GEHfZUksI57KaNqxfWvWhFMsowLbbclR+YShFHikujwaIFQBuslyiZGKyw UhWZNftqAlamnYHItozCG6TdFMZrw1HQc6SVhVqzFqkKnkRkeE49sK4inmCXgzEaCgBZ jxHX+ajCE8S1Ra35QOndirrkZ7P5OKziyjULS+HKfWbFSOjZ0cgD05vDJ6YMnPILlJWO dv/D7/+Fcz5yTI3KZaEF/3QezT2QxYnOWr7Q22eDMn2nNwF/V+5kl5dCwveA5vaoEsYA DDlE7njcANrjz7bFI2BygqZvSIBKsA/U/vI7Hx1/ctCTTUe+gM3uYVKKseeGW6xXRPZZ SOtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=a/DBFL5pnFxmW7r8pfJ654oUFkPKTYmOJJb8EXbuSt0=; b=E9ZfSGrBiePOPXQCMS7IpSsXCe2VXfaUkwzoqqBYh4OqepIDgVqAp/V86kSyKC+cMW mnygLddDNflJJQrB+DF4lx9fWJg6bszIRMA6u9XYiRAXctA4ZGSAs6HG6yjHBKaNZSy1 gfUpG6yeiST8akyzQ5PVP/5IALxDfV5YlKNu3lCw/5VH7JC4HTB9t2aGDe+ogQIDgBL8 HBnGeOrB3JPHsTBmS0ABD1mNSHmDr8lAYwe5h8UQDQJzteMKjSaY/uYO4Q3tThpNxHrd 22sc8J+iWvR9InGPFQTYFnp4kwjdhlhy0wzsXTeDjeP5xszcNK1okqQyZhVCfQIKRnwb iMwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RX3L3NEy; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id em12si229534pjb.25.2019.08.22.10.25.51; Thu, 22 Aug 2019 10:25:52 -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=@linaro.org header.s=google header.b=RX3L3NEy; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391879AbfHVRZu (ORCPT + 28 others); Thu, 22 Aug 2019 13:25:50 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35741 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391767AbfHVRY4 (ORCPT ); Thu, 22 Aug 2019 13:24:56 -0400 Received: by mail-pf1-f196.google.com with SMTP id d85so4414132pfd.2 for ; Thu, 22 Aug 2019 10:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a/DBFL5pnFxmW7r8pfJ654oUFkPKTYmOJJb8EXbuSt0=; b=RX3L3NEysLNGueK8XYcm4tI5nQZ2pEFyeSxHYiObmFt8nWRtF62qzckIHmf2rpGxrP BLn4KXyVPFgfoviJQgPO/s2j82QZFQl96pFgqGNU4z2fsVsaxfgeFqyUhckvdrHLzqrA p8HLWOVvrNzJ8jujwhikFfgqm0RNuFfV4wK1Xj4qfo6pDRR2KeGAgorfqhi1U2Q1agzD qLOLhFMM0fBHGwattVPoacW0SA8gg+UqkAchcyWJxEspzojX5olDwPFZWk9xUAaO6LPb 8Qp3+xNgeubaXFd3rIDxjUGNumFk054qag4X+vH9xDBisRUZi4LK940Ny0tqYab7R/zY 5V+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a/DBFL5pnFxmW7r8pfJ654oUFkPKTYmOJJb8EXbuSt0=; b=b3oKASauCo0V8foytynCuqG9Xg7phECwmjG/1lTfi2WwBVLvuMUazCvav5+tQ5cFU5 IetuB20O7UD0l/g34diADBFqcl7Pd3i25oYgrtAU1Iq7Nl8G82HNQabwvzLVHOTcJWH8 D26R3WpiURmq6wswsw9JmivLwsOTWxcqdwixUZOJZkgJkonfuou9ZiNrVQQ+LeSiKqPi kC/ddVVxYcph+fveqc6dFjora6YDMwpuO7FUX6DCVYAP2OO3q3bKDaCCQEsoNH8E6dAz 2qM93H2kQcYSjl2w4UHhVj99p1QrWmk/5JUeVhpijcWOKp2r/5XWXMrKxftuMUvNjOhM m2NQ== X-Gm-Message-State: APjAAAWA0zJlEPPvIQ70sz7VI/E4NE599YS0i6b0Dn+o3wBqTsXG7vnl 0zvp2m7OHQtbyZgVF8yH0+VS X-Received: by 2002:a63:e20a:: with SMTP id q10mr327282pgh.24.1566494695791; Thu, 22 Aug 2019 10:24:55 -0700 (PDT) Received: from localhost.localdomain ([2405:204:71cc:5738:24ad:193e:4b59:8a76]) by smtp.gmail.com with ESMTPSA id r12sm31705798pgb.73.2019.08.22.10.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 10:24:55 -0700 (PDT) From: Manivannan Sadhasivam To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, fisher.cheng@bitmain.com, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v4 2/8] clk: Warn if clk_init_data is not zero initialized Date: Thu, 22 Aug 2019 22:54:20 +0530 Message-Id: <20190822172426.25879-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> References: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new implementation for determining parent map uses multiple ways to pass parent info. The order in which it gets processed depends on the first available member. Hence, it is necessary to zero init the clk_init_data struct so that the expected member gets processed correctly. So, add a warning if multiple clk_init_data members are available during clk registration. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/clk.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index c0990703ce54..7d6d6984c979 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3497,6 +3497,14 @@ static int clk_core_populate_parent_map(struct clk_core *core) if (!num_parents) return 0; + /* + * Check for non-zero initialized clk_init_data struct. This is + * required because, we only require one of the (parent_names/ + * parent_data/parent_hws) to be set at a time. Otherwise, the + * current code would use first available member. + */ + WARN_ON((parent_names && parent_data) || (parent_names && parent_hws)); + /* * Avoid unnecessary string look-ups of clk_core's possible parents by * having a cache of names/clk_hw pointers to clk_core pointers. From patchwork Thu Aug 22 17:24:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 172050 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1203347ily; Thu, 22 Aug 2019 10:35:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRpUGqFONZsdFipbv69JzoCRfiQoV4oHBfBy2JM1KE3d6wjGrO75U5NtOSlFM6fABiV+EO X-Received: by 2002:a17:902:bcc2:: with SMTP id o2mr40890804pls.127.1566495352341; Thu, 22 Aug 2019 10:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566495352; cv=none; d=google.com; s=arc-20160816; b=zjOYtezGjHoWbQFQ5GSypxHq3PWKeKvVdHya+GF6WY8syfzaotJmwWN2a2OYfaScG/ BDveoyDx2/5y0jEhU4ZPPCy7WOE+gnIgq+c5PvFWP4eb1pfMjL3HyeSO2s2DGIojn+Cx pNlMaX1uOSZvMcy6TUPzHpu41YAZtisdA7MXLNLdmFQfqswZid4rHVbd6yqbaX+E9Z9+ gqGB3vi9aEcYWDIb/YRw7dc5IYvP5yj6E2AmgP6TDBAwLhqDKrLn3Tac8YeNmQRifmz8 ybsvTKWOZld2y4y5K3JlS7m8g3DO6DC4KDaFp1KLkW6a3d0MWRFI+53cScsT3eEp6Bjx T76Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=ZK/1zWz8e5trhDXFpzvcHO4jqTzADjLMCxdcUdUigMbyGieqwGVhvxXoke9dr+JpXA omImJPi+0XUzYyuuJmN9lWfDC0Fcq2RTSi9sRQ7KUBJkz0nEoadwiqR/sMTUEoJ5HMFc h4Ja8c1TtzXIC5yGvxtm1B0UNxROJIAt+gTM7Gl/cVAd2iTlZxqdQoiyXHgCHaKK+sLJ ulVroJD2grvD8Ngv/FlfnpLjKUVR9NwZMm1NtYhtosplTKSrFn7PSIeekh6fH37nzVsR 56q6AJWkwx7eHYs5QqdS4Z5ho6iXJ1OBa1PpHoMuvfBd2aR3Cxq5dzrW6g3HACsGDHiB 7p4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=euLLhY+9; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si115576plt.128.2019.08.22.10.35.52; Thu, 22 Aug 2019 10:35:52 -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=@linaro.org header.s=google header.b=euLLhY+9; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404871AbfHVRfv (ORCPT + 28 others); Thu, 22 Aug 2019 13:35:51 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38555 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391819AbfHVRZD (ORCPT ); Thu, 22 Aug 2019 13:25:03 -0400 Received: by mail-pl1-f194.google.com with SMTP id w11so3370520plp.5 for ; Thu, 22 Aug 2019 10:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=euLLhY+946DfyFpuvIdyFGJfMj0knyI7kYwiFDLPxTrrpqBXt30egdCgq3fEB/sL88 GJZHY1upb9230M9+Zx2VsXWQbb6terlbASK2Y8NjIXMYqZYxmMrwPJrKbYsdrXVKdKVp h3oLBX6Xq2Kyr7bh2rZD1m3sNpfVxJEePoY4q7+bX1Usir70lWfAZ2Q5Wm9c3x/iC2oF i845R9dxFgTKai1UsSQc1aFVXhbltY2Rql4zSkj4KmwbqXDJHZOd0ZxLP53dYJHtXhvW PFZDbnj5L0kebFpNB0KndJJvUuR+yNkmwD89p/IsdVDOyVRCYiob6rsRKOyrv39tDlJH 213g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RtuYujDQbGoE383NaOTW8yNTTYMDfvcRIoYrv77xBo0=; b=UrbFbbSfG6dX3z54us8LBliNX5bMfZl39LsDSqFX7Arige/5dY0tVlpWsYz6PiEeJ7 0uf8KxR98m5G7UmGC8D/0mv1NaopDuJc0sNbIStS3S9UqTFOfuL7NtzpXbBV+Zv1zQV9 mNUwk+5e5bBh073Xx1ct2z4xsDFxHvAcDBNS47CkxIDGd6BTFmI2GGKkWBYS/x0KxJ+i z0Hm8njcl/+JDO+Du01NyxBAQusIR84Tg7L5Ex1qOK4fccv0zmj6mmkf9U0jUezge0az OMCabi3fAZh8nC0jmdVlfhX+/stdkgjqt3waIATItAW4lpOaQLjGK0x4wMOGvsBqQxY/ wPnQ== X-Gm-Message-State: APjAAAVpMFauOFyueEDkih4t+CsxUiI9rrKkygZP6XId1hkKqhkmbOuC TL03Yx2q7+UuWqBaDXKZ4Z5Y X-Received: by 2002:a17:902:788b:: with SMTP id q11mr40640145pll.308.1566494703001; Thu, 22 Aug 2019 10:25:03 -0700 (PDT) Received: from localhost.localdomain ([2405:204:71cc:5738:24ad:193e:4b59:8a76]) by smtp.gmail.com with ESMTPSA id r12sm31705798pgb.73.2019.08.22.10.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 10:25:02 -0700 (PDT) From: Manivannan Sadhasivam To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, fisher.cheng@bitmain.com, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v4 3/8] clk: Add clk_hw_unregister_composite helper function definition Date: Thu, 22 Aug 2019 22:54:21 +0530 Message-Id: <20190822172426.25879-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> References: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function has been delcared but not defined anywhere. Hence, this commit adds definition for it. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/clk-composite.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.17.1 diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index 4d579f9d20f6..ccca58a6d271 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -344,3 +344,14 @@ void clk_unregister_composite(struct clk *clk) clk_unregister(clk); kfree(composite); } + +void clk_hw_unregister_composite(struct clk_hw *hw) +{ + struct clk_composite *composite; + + composite = to_clk_composite(hw); + + clk_hw_unregister(hw); + kfree(composite); +} +EXPORT_SYMBOL_GPL(clk_hw_unregister_composite); From patchwork Thu Aug 22 17:24:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 172047 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1201888ily; Thu, 22 Aug 2019 10:34:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqybQC9pdU4iErNk73yPFVq9cP44RZiym2duOoMl459MOelftHwsOiRsMchmHbebJtUQDvQZ X-Received: by 2002:aa7:8108:: with SMTP id b8mr307586pfi.197.1566495276674; Thu, 22 Aug 2019 10:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566495276; cv=none; d=google.com; s=arc-20160816; b=0YF9VawlVEylThcGIIPFvOfVFCU2ytsCb8s9QNlFoxfTZRIppFZTEAbdWpLv3qpT5b eYD3G6bvt1tPPeosPjA8wf66SZq2OrcfjGbP7AdQchiLb+UnQwvloUmp2smUsljzv39j uFWrl4ZlH+JIZ7FqauozlcJRMxljxxAkZ4i7mIXXohJa14RWygLITYuDd/Ck1YXPw4tB zkvAMPQtUjPYxzjkPS8U1GpRlnU/581wdT/0IivMQYNqnstz1uvq5futeD/DxN7Q1Xji nApLzpaP9Ii65mAkOd3PEo80adjUsX/LuMAVWHtfWhIzm7bm/J7KapdlzUuhpTtDHOCz I4SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Y6Dgg0LHIAz3laO+y1ntUkl0I7eVRTHEz+QlpqCcJzM=; b=MXuZgexET3m5lYxL+qRsSd2l6DXMY2xGw1vGuOIGPWgk3hOuKK1NvcpttKhhiH0uSi TbkxB7L4jD+cUouDKb09uo006Zz94p9vFR9S8/ZbiA25CHtQolqLPMWccq+7MRxVk3Je c9WQomBU+KuOu+nsFC/h3bmnA72s3Di+Zd93KoysRu2I8iZsb/vPX2X2oyNw85Q6SAng arASYvr3gn8SEkeldC/6x6sTqJm4xHcNr2fNh82O8EK/7sy1f1/KjJh9nQs3vTzQ1EPv AjYW9Z2t5Gsq15eEEJ2WvjrqCsb3QSseS/H+uotP6mVh0JmtCtva9fAqRUCtSpRMM/q2 QA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TOXDCBl6; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si130965plv.19.2019.08.22.10.34.36; Thu, 22 Aug 2019 10:34:36 -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=@linaro.org header.s=google header.b=TOXDCBl6; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392796AbfHVRef (ORCPT + 28 others); Thu, 22 Aug 2019 13:34:35 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46731 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404374AbfHVRZS (ORCPT ); Thu, 22 Aug 2019 13:25:18 -0400 Received: by mail-pl1-f195.google.com with SMTP id c2so3826784plz.13 for ; Thu, 22 Aug 2019 10:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Y6Dgg0LHIAz3laO+y1ntUkl0I7eVRTHEz+QlpqCcJzM=; b=TOXDCBl6f8xlElGz/1VgT87+cdII1cmN5ZgoolaAd7oEb3dKLp1S1aL8eIAK602wRA rFV3kajNzuMqA4UEKTCS3p+weiq9BteIBukmbisFxA48gsaY84KdHTxbIl+R7uti/zmz vKmYinXsuEL5HmhH7cQg7SvGd3IMVzS+tidp1iSw7IeQ5I3BILh31uDv6xkYym/ZUF22 I+N3iNN6gjUqxDsC7MVj180HA/sXR/waBKbKAC6Ujfjt91vw4asNcnDuH9yG8hcd+pla GAc0mCLgB3uLH3bVSL7ZcOSv9zFfBCOpTcrSc+K2XP/54ZTAa50tjiJvklrL9DieJktS oDYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y6Dgg0LHIAz3laO+y1ntUkl0I7eVRTHEz+QlpqCcJzM=; b=FXPpJ+FG/zBUDwvPya3KJAFWMx8R4gnpHjFhdkAV70BzRuEF53f63OTF7/bQEcLt72 lgueAvz8YB57e+UbOAOecGpfCRsbRyhnTXNTj8YrdKgt1e9ODX3RPNKPBUalwWOEUYOr ceVUVlstdxEHr0WuKatCQIHZXc2xhMlN9V1vghtCS6JWCicIyZJxB+CMYhkO2uCsyqjf IwqstXYZvI3eHibp2cgzAH2V3sq9BUuBFCcFMBI4iNYURbQbu2nFlmE5eC/+u8RTLbf/ +IXaZe306+fKTWwjwf/oX0N62USfI3+R0eGYG0MhUQdoXOl2Tqtl3vONhrX6DjjVpq5X Ctlg== X-Gm-Message-State: APjAAAXASOoTgNNevjlp0VQmIlbUP91yQ1Ma6sPCqpfj1+HBeC+RNQlB ClG++QP/la6nITZjGblqNazzjKz/Ug== X-Received: by 2002:a17:902:ab8f:: with SMTP id f15mr41150750plr.301.1566494717986; Thu, 22 Aug 2019 10:25:17 -0700 (PDT) Received: from localhost.localdomain ([2405:204:71cc:5738:24ad:193e:4b59:8a76]) by smtp.gmail.com with ESMTPSA id r12sm31705798pgb.73.2019.08.22.10.25.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 10:25:17 -0700 (PDT) From: Manivannan Sadhasivam To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, fisher.cheng@bitmain.com, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v4 5/8] arm64: dts: bitmain: Add clock controller support for BM1880 SoC Date: Thu, 22 Aug 2019 22:54:23 +0530 Message-Id: <20190822172426.25879-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> References: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock controller support for Bitmain BM1880 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/bitmain/bm1880.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/bitmain/bm1880.dtsi b/arch/arm64/boot/dts/bitmain/bm1880.dtsi index d65453f99a99..8471662413da 100644 --- a/arch/arm64/boot/dts/bitmain/bm1880.dtsi +++ b/arch/arm64/boot/dts/bitmain/bm1880.dtsi @@ -4,6 +4,7 @@ * Author: Manivannan Sadhasivam */ +#include #include #include @@ -66,6 +67,12 @@ ; }; + osc: osc { + compatible = "fixed-clock"; + clock-frequency = <25000000>; + #clock-cells = <0>; + }; + soc { compatible = "simple-bus"; #address-cells = <2>; @@ -94,6 +101,15 @@ reg = <0x400 0x120>; }; + clk: clock-controller@e8 { + compatible = "bitmain,bm1880-clk"; + reg = <0xe8 0x0c>, <0x800 0xb0>; + reg-names = "pll", "sys"; + clocks = <&osc>; + clock-names = "osc"; + #clock-cells = <1>; + }; + rst: reset-controller@c00 { compatible = "bitmain,bm1880-reset"; reg = <0xc00 0x8>; From patchwork Thu Aug 22 17:24:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 172044 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1201189ily; Thu, 22 Aug 2019 10:33:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNqNXkEyKZsdbinSz2GhC4qmUNUH91QCL4DlLIAbInPc66TRzAmXPdDtOGxKCeSz/chCMB X-Received: by 2002:a63:c304:: with SMTP id c4mr352116pgd.126.1566495238747; Thu, 22 Aug 2019 10:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566495238; cv=none; d=google.com; s=arc-20160816; b=YATrlHf0tyB2WTyfqPsHnu4digajTRye0NEC3IzwZI0wPyvbPWwF0Ch6b/Nx0c1gY1 3CCXn2WmXYnd9IxTa/zBD4vRHCXoh8Qjt40r65VaQWasbO1AxFmmVU3YBAHale8SjdGm wNFmTtseWU+lFaFHT8d1kiS+wewkWiyzNjUuaFRslWhhKZ199RdHSitayXZUdOSedbFa tYLdi4EzZV63uOzaFiMo7VS/nnj4ZUQyLPzhvxfba6cSLjGgA2eqvKdN/4g7Qvklup0g kzdeWx2Q5xSAVKj2hwvZbbsojw6nCdnpe8iUYwRTAU9sw3JZl25INzjtXAYHMUCppN1D H2sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=K+pJPk2iXl0LixGuiysFHZxmO1vjBGFGOdrJivWtPCQ=; b=XWphhyX+799qvVsspsLQ36/bEunm4hwxpOluyL1APAZ5+KqR26gKQSpWjJjRpeQaTf eeTA2k8/YRW3C3DMDwjK1/7yGcxan9ng0bNzgvRRcehKCtiBF8c9tuPdWog0XZb+JMZY aa7z+x8EgB9dTs/jq4zLBcFZjoT9DG/djtEkW2gefDaZQFf8vpZPype9+46Q/SmbkaDH Wf7ktWlyAW+6UuAjv5CpmEOHx7+isTpF2Q/CLggpOXrkqp84XaOMeYjkHCcS7TopfEd6 1x9dY014FOUwj0Z7N+a5k7YBZj8hDpQJG0eLtIwXpOFn0MyN2V/t/0TPNngKsbEZqn0X vZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mW7Tgp1F; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp3si99992plb.390.2019.08.22.10.33.58; Thu, 22 Aug 2019 10:33:58 -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=@linaro.org header.s=google header.b=mW7Tgp1F; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392487AbfHVRd4 (ORCPT + 28 others); Thu, 22 Aug 2019 13:33:56 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33817 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404468AbfHVRZj (ORCPT ); Thu, 22 Aug 2019 13:25:39 -0400 Received: by mail-pg1-f195.google.com with SMTP id n9so4061640pgc.1 for ; Thu, 22 Aug 2019 10:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K+pJPk2iXl0LixGuiysFHZxmO1vjBGFGOdrJivWtPCQ=; b=mW7Tgp1FmSapx19uGrdxDMd8OE3OgYVCxKv0qpVYm8Q5+jUgIaziiHoQzAuP0TaXs9 b1ZDesqxvAoluWM9GSEgQ9G4QpMDXvfp1IJTvfkJGpAMme7osiW/rkqTy1V39252Dhbr WXc7XNRjcldsS3KQ5hKTF2F6stNSdyRfJu0zieUGc7nCMyhwFwel8ZedzEhJPaoTUDGH 0Zl8idC+H4dtYMabKHQRwEow0I1NKJ4pbHlgdXYq69qyghfuNCeaweyDyYm2QCZ8YsEq NXYnSNYIG9YQ4K0Pcnaedhk/gu/Ja5KzsJqjnc094RYmDcUJAWGybU/FRQnwhBehyHjS Zpug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K+pJPk2iXl0LixGuiysFHZxmO1vjBGFGOdrJivWtPCQ=; b=sfCcscy378kNFX3JFoZ5U5QenTEoO3W5Yw4w93KEqzDzTZ5uNLzL9dMZqc2jQM4ITI kwT7mh2glHr89wPr7B7hAzwM2/ZwIzm/yRFXqCyqGldcon2lnGKlyoj8aATZKUGXpAzr MhfLgmrLyWwe1E6yuHeSlme829V0q8SXbhwHkSHHBfwIftIj5i0pxKVy5VgVbfMwdgfx uywyNdjGI7RGLdewkjUvt5rq0lpvOTO/aX9LcQDZp7I/ElLsP1qtDtrEG5yk3YpWZbyU DxUJ3ZVA0YDa4ibuqoWFhwHzzsyWYFUpX3Gl9a2DVXqJWhs+YGWrrr8I3IOdo+6us5nl HfgA== X-Gm-Message-State: APjAAAXhnvHBiFnctoZ2AU6EoQ/w1A0n9x0v4sokZaPfCzoja6wzYFFm qpenZQ23KW5mLrPygSkhElL0 X-Received: by 2002:a17:90a:b303:: with SMTP id d3mr863897pjr.28.1566494738302; Thu, 22 Aug 2019 10:25:38 -0700 (PDT) Received: from localhost.localdomain ([2405:204:71cc:5738:24ad:193e:4b59:8a76]) by smtp.gmail.com with ESMTPSA id r12sm31705798pgb.73.2019.08.22.10.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 10:25:37 -0700 (PDT) From: Manivannan Sadhasivam To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, fisher.cheng@bitmain.com, alec.lin@bitmain.com, Manivannan Sadhasivam Subject: [PATCH v4 8/8] MAINTAINERS: Add entry for BM1880 SoC clock driver Date: Thu, 22 Aug 2019 22:54:26 +0530 Message-Id: <20190822172426.25879-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> References: <20190822172426.25879-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MAINTAINERS entry for Bitmain BM1880 SoC clock driver. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/MAINTAINERS b/MAINTAINERS index 997a4f8fe88e..280defec35b2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1503,8 +1503,10 @@ M: Manivannan Sadhasivam L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: arch/arm64/boot/dts/bitmain/ +F: drivers/clk/clk-bm1880.c F: drivers/pinctrl/pinctrl-bm1880.c F: Documentation/devicetree/bindings/arm/bitmain.yaml +F: Documentation/devicetree/bindings/clock/bitmain,bm1880-clk.yaml F: Documentation/devicetree/bindings/pinctrl/bitmain,bm1880-pinctrl.txt ARM/CALXEDA HIGHBANK ARCHITECTURE