Received: by 10.223.164.202 with SMTP id h10csp93183wrb; Mon, 13 Nov 2017 20:48:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ0tavAY1Pm0Wg+8SeEp2bcb+Vi9u85Al6byxNrCb3MmARLhwuFDyRCbUBGXjA5bbDPmVrN X-Received: by 10.98.196.77 with SMTP id y74mr6525649pff.186.1510634892453; Mon, 13 Nov 2017 20:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510634892; cv=none; d=google.com; s=arc-20160816; b=REmeQIfJvuFxbvrk7vwX/jxsswobQaftxqm3zAQQhnD1XACUdSTCtkvNz5wCdi4XUF ekWobsK0F0THYe55ABf7XP95+/vTyo429TYBgyHwqKLCoj169vc1h9nqT6NDxTpTizRg +afXmSGxFjjmj+1R+7QpGNQkdMrG3HaIe3k0ckmE4lo+l5UrYO70WleB8kwU44rn22B0 27XxutU8+56NJc4V4k9TE0ZAOpylLzhzXaQFjOqwUN26wDed5P/j4o61VS41Pk/ufjQV FD2YKuRu70U/3/a8/sRjdjE5AHU9so1fUNWoMQ1NllJ8cnKa1W2Z+nsNDbnE76dg6xJ6 0f0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=BKQUkIAV71y0I+0L4NjQg37V5lndORfsgCBLtxDepes=; b=Hm9qrDtC+dZMiJD5ptArO87ipxX4ZnNn6a8LOkZ8muScONoZciHdocEdC2S0kfpRpM 2tZh9Wa3FFyIwFnTgRuF9BGtK537IUxKGYzrroqO2H4Io8YUnCYOIxuIbiNb/GcaEO3f GkdqRgdAl8vD3XIIpwP41n8s27n7ggLqH9aXlPkU2q/kacOBU73KjdxeDdwCPiUal0ea qUqalRekoEw5t3zHbFRJOb6br1H8K2S6pw/n6uSdBOT2GpC/DJzvkcOhrPXpI7cs2+U4 zYYWKWXA4heQxnsX59u7IxRfu+yqHbEYlNfvPcItmBsYG/k3mJtTECk1RcETtGU5OZzN uxnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZuUvRai; 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 n22si15079074pgc.652.2017.11.13.20.47.57; Mon, 13 Nov 2017 20:48:12 -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=CZuUvRai; 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 S1754122AbdKNErX (ORCPT + 89 others); Mon, 13 Nov 2017 23:47:23 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:55866 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753637AbdKNErG (ORCPT ); Mon, 13 Nov 2017 23:47:06 -0500 Received: by mail-pf0-f178.google.com with SMTP id 17so13526110pfn.12 for ; Mon, 13 Nov 2017 20:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BKQUkIAV71y0I+0L4NjQg37V5lndORfsgCBLtxDepes=; b=CZuUvRail6u6OBvLsqytS4Rn+xIueLKW+nWd0dkPOPLIxQwZ4VHr8+GK0+5DdDOVv5 KXQhkz/5xaYEfx7xEmLo1+r+OmUWmlWqaM0P2OlLGhkFyOqKfBK1cB9Kh4+yXTs/9wxI baiv7bEEy45vJCgS8NibZl7B0opdEQLRfk2OE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BKQUkIAV71y0I+0L4NjQg37V5lndORfsgCBLtxDepes=; b=WkT54++r6lidboT4THLN9DDLfeU6wc/EZMGMPIsNaZ2JQ+DwrUljEVRy/eV7LWxWHB lJxoWDcafTdHjSqBc2c+JB8cPJFC6Rp6xanVwcm9UkP+EoJ0XvP0NYkeDiTAKsXfoq3D 1lxY6J+AU8p/xv49Y8chhA0oKnr+kyNV384Fy6+KHoGORTDvWT0DpmeiPJoDJ2pan0VM s6tiQL0/oNLobYIerZd5XtCJwG3uFumIngf2An5ZlF8Gaoqj9y/0xIIHrIK86AqCLvxa 8hq4jt3yCmI6SHCcoV4tmHcJ6sKh5YYbw9Z+D16p5HNxS037o3eJZxW9/U9z92/YGQAT p+2A== X-Gm-Message-State: AJaThX5Xbaa0aIvTvndJYAcM+mxSOZSF7191NcmwkYMhPyHXUh8q+2Jf /ahjD6Zs07PoRchbiVu0EIsugg== X-Received: by 10.84.198.35 with SMTP id o32mr11124681pld.214.1510634825989; Mon, 13 Nov 2017 20:47:05 -0800 (PST) Received: from minitux (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id m11sm1198143pfh.35.2017.11.13.20.47.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2017 20:47:05 -0800 (PST) Date: Mon, 13 Nov 2017 20:47:02 -0800 From: Bjorn Andersson To: Stephen Boyd Cc: Georgi Djakov , jassisinghbrar@gmail.com, robh+dt@kernel.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v9 3/7] mailbox: qcom: Move the apcs struct into a separate header Message-ID: <20171114044702.GF28761@minitux> References: <20170921164940.20343-1-georgi.djakov@linaro.org> <20170921164940.20343-4-georgi.djakov@linaro.org> <20171026042811.GL1575@tuxbook> <5bad4c4b-362b-ba9f-3072-1cced7a004dd@linaro.org> <20171114021255.GY11955@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171114021255.GY11955@codeaurora.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 13 Nov 18:12 PST 2017, Stephen Boyd wrote: > On 10/27, Georgi Djakov wrote: > > Hi Bjorn, > > > > Thanks for reviewing! > > > > On 10/26/2017 07:28 AM, Bjorn Andersson wrote: > > > On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > > > > > >> Move the structure shared by the APCS IPC device and its subdevices > > >> into a separate header file. > > >> > > > > > > As you're creating the apcs regmap with devm_regmap_init_mmio() you can > > > just call dev_get_regmap(dev->parent) in your child to get the handle. > > > > Ok, thanks! > > > > > > > > But I would prefer that you just add the clock code to the existing > > > driver. > > > > This will require an ack from Stephen, and i got the impression that he > > prefers a separate clk driver [1]. > > > > Stephen, are you ok with registering the clocks from the apcs mailbox > > driver? > > > > [1] https://lkml.org/lkml/2017/6/26/750 > > The parent regmap "trick" was the plan. Is something wrong with > that? > Not at all, but then this patch (moving apcs context to a shared header file) shouldn't be needed, or am I missing something? > Not having random clk drivers scattered throughout the tree is > sort of nice because it makes for an easier time finding things > that are similar. Maybe that's an abuse of the driver model > though? Just to get things into some same directory. I'm fine > either way. > Keeping the clock driver in the clock subsystem does make sense. I see now that there is a include of a local header file as well, so that would just be messy to keep split. I'm fine with the extra driver instance, it's the DT that I don't think should describe the fact that we want to keep the clock-part in the clock subsystem. Do you see any problems spawning the clock driver programmatically and then calling of_clk_add_hw_provider() on the parent's of_node? Regards, Bjorn From 1584005782257933515@xxx Tue Nov 14 02:13:51 +0000 2017 X-GM-THRID: 1579168714736773466 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread