Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756732AbcK2VLF (ORCPT ); Tue, 29 Nov 2016 16:11:05 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:48276 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754816AbcK2VK4 (ORCPT ); Tue, 29 Nov 2016 16:10:56 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 0C82160218 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=sboyd@codeaurora.org Date: Tue, 29 Nov 2016 13:10:54 -0800 From: Stephen Boyd To: Xiaolong Zhang Cc: mturquette@baylibre.com, orson.zhai@spreadtrum.com, ben.li@spreadtrum.com, baolin.wang@spreadtrum.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: Register clkdev after setup of fixed-rate and fixed-factor clocks Message-ID: <20161129211054.GD6095@codeaurora.org> References: <1476184424-8528-1-git-send-email-orson.zhai@spreadtrum.com> <20161020230103.GD26139@codeaurora.org> <20161022081448.GB32560@spreadtrum.com> <20161025204008.GE26139@codeaurora.org> <20161112051907.GA8514@spreadtrum.com> <20161124003833.GF6095@codeaurora.org> <20161124073948.GA12946@spreadtrum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161124073948.GA12946@spreadtrum.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1102 Lines: 25 On 11/24, Xiaolong Zhang wrote: > On 三, 11月 23, 2016 at 04:38:33下午 -0800, Stephen Boyd wrote: > > > We're really off track now though. Can you please point to some > > code that needs this change? If we're using DT then we should be > > able to use the of_clk_*() path to find the clk. > > > > Actually, the requirement is raised by our GPU driver. In the > early stage of the GPU DT driver, the GPU driver use the > clk_get(NULL, con_id) to get the clock instance for compatible > with non-DT GPU driver. The new driver have used the of_clk_get() > instead of the clk_get. And we reserved the modification in clock. > Ok the non-DT version of the GPU driver should be modified to call clk_get() and pass in the device. The con_id argument there should be something specific to the GPU device, and not a global name of a clock on the system. When the clkdev lookup is populated on the non-DT board make sure to set the dev_id string to match the device name of the GPU device. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project