Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3595969imu; Tue, 18 Dec 2018 00:40:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/VccnvM8RFgcLS94jT5G9YNDGQsRusD/zXyRZr8urK8k1TuFdSeeWXmeP/rr9jCAjcAEgmT X-Received: by 2002:a17:902:5a0b:: with SMTP id q11mr15822430pli.186.1545122416335; Tue, 18 Dec 2018 00:40:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545122416; cv=none; d=google.com; s=arc-20160816; b=V1QFXv9H2unVyQgyclLrXD/f289BUNcWqcd45MFWSk/lPg6j1XYVfbDMKm/R1+cVUd vml0F6QgJp1/QTjhQbpCjH0Lwx7MZYX+pFEE8Q9DRcLJdMAiZavgNzk50N6y5F1cW59o d2pqjGHJlXKB0n+0tr7wXOXFy2t7A4+h8ZyQLfDYrgwjUdeD383mqIgwoZDaG9rE1+go V4ChpHjUtey2YeHeMPf0I1ipTW5PwBREbt45gEfxxwuPDj2sI7GC0/Dx9PD39aQlrqQw ETUGnnGyFut5h9y/go2618kDNllFCyDDChdjNZvr+u/dIzeQmbwAiFw9qGw0DVN2KHcl 1jIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=vqzAn8YdXf7bnKbmiNaQpJRP/lxpkAy0aohkam2JcmM=; b=KQv8n9OxB8Y166OqYrZtxtiNysaRXdALF+oZ/BRtgy8nLz0AxlHepsayeNE4qDmOPN k91Rst78wofBmmQaPgvrJe0IL2Hp/LJK5e2AUxmoONGm3/x73dzumkLqDKcKPfhVhUP1 bqxiTcIkO2T0OxcoD9cAeMLk8QmAvQiYlpaEcI76xgDOnOF0qUiZu9ckCOFVVeDn0/JJ +DDT/dyI+A64sgOBusYqJ5hkzLIfeUWAt3/EC6V68XhuWXTfB5pcFE1j6zjVcyzlE2Mb +RHarLyDEP6EbgJCrH22K+xr+pJryEgEhg8ZAl0RJnTi8w4lEsy4fTxPUq+Iq8TPkDjn HRVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHYnOjjn; 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 b11si12528280pgb.536.2018.12.18.00.40.01; Tue, 18 Dec 2018 00:40:16 -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=@linaro.org header.s=google header.b=bHYnOjjn; 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 S1726770AbeLRIhf (ORCPT + 99 others); Tue, 18 Dec 2018 03:37:35 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51450 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeLRIhf (ORCPT ); Tue, 18 Dec 2018 03:37:35 -0500 Received: by mail-wm1-f67.google.com with SMTP id b11so1679639wmj.1 for ; Tue, 18 Dec 2018 00:37:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=vqzAn8YdXf7bnKbmiNaQpJRP/lxpkAy0aohkam2JcmM=; b=bHYnOjjn2s3GTiS7z+a5A7Yju2c7cNxMykNvVEZUM04K2uMYWNV8/JDXs0SKhjj27H FtZ0G1fVVDeuGAWbJKiqO8JTiwKEHCFTnOWDt59CxF1UXJyQ/vK5eFots9L5AMC7pioz nRPm5g9R65iyLhFKnjDU1a6FqqcqeCZ0mPGHs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=vqzAn8YdXf7bnKbmiNaQpJRP/lxpkAy0aohkam2JcmM=; b=uGXWfaPvFeOZ/jicctP9ZbpLeR3m8SpIteMORz4XZI67xAX7pvZJzPQgIPPQN7opB2 2C8BeKASsHmVfrpRKVSiQBGZhVKGKLlwTCPamTVJmbcpJzKIWMIIEEsTxHRN4f3E9omu WBvQRgSQAG9LYln7eu3w45/hSRPMMcVyIuVQIUPZSZgkfYEvGc1Jzo73LowwlY0eyiNG Ytvu/WiQwS8sACelBFPUbtfhQtaU5PzADcvQlt2if7Ys4JaHSB43ffnP4M+loqYZQWsn cUdyekm/0jel07FaYLYUEbAmvjJbdzX8FGdI0U6KCWhr55nBKzjJflTy9KU3MMJsslHh Hk7g== X-Gm-Message-State: AA+aEWZxllXOq6grZNCBGQEu/0Xn6nYn5BXsmhJXeqqX4QcQyonlsUTk /ubjAT4GhVePP80C9x4GrJG8ew== X-Received: by 2002:a7b:c34c:: with SMTP id l12mr2135630wmj.147.1545122252603; Tue, 18 Dec 2018 00:37:32 -0800 (PST) Received: from [192.168.1.2] (74.red-95-121-88.dynamicip.rima-tde.net. [95.121.88.74]) by smtp.gmail.com with ESMTPSA id j33sm3629702wre.91.2018.12.18.00.37.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 00:37:31 -0800 (PST) Subject: Re: [PATCH 05/13] clk: qcom: apcs-msm8916: get parent clock names from DT To: Stephen Boyd , andy.gross@linaro.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" , linux-clk@vger.kernel.org References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1545039990-19984-6-git-send-email-jorge.ramirez-ortiz@linaro.org> <154508986359.19322.1555129141976726505@swboyd.mtv.corp.google.com> From: Jorge Ramirez Message-ID: <57ef23b0-9c6b-cdd4-9a1a-41c6d5b3aa93@linaro.org> Date: Tue, 18 Dec 2018 09:37:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <154508986359.19322.1555129141976726505@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/18 00:37, Stephen Boyd wrote: > Quoting Jorge Ramirez-Ortiz (2018-12-17 01:46:22) >> Allow accessing the parent clock names required for the driver >> operation by using the device tree node. >> >> This permits extending the driver to other platforms without having to >> modify its source code. >> >> For backwards compatibility leave previous values as default. > Why do we need to maintain backwards compatibility? Isn't is required > that the nodes have clocks properties? > > this driver -apcs clock controller- uses platform data (not DT) and therefore it uses the DT from the parent node (mailbox). And for the mailbox the clock property is optional. So the APCS clock controller requires that the parent provides at least one clock but the clock is not mandatory in the parent DT node. For instance in the case of the msm8916, the parent only provides one clock, just the pll. am I required to modify that platform instead of maintaining backwards compatibility?