linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: linux-clk@vger.kernel.org, mturquette@baylibre.com,
	alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.de,
	irina.tirdea@intel.com
Subject: Re: [PATCH] clk: x86: Add Atom PMC platform clocks
Date: Wed, 31 Aug 2016 15:34:11 -0700	[thread overview]
Message-ID: <20160831223407.GJ12510@codeaurora.org> (raw)
In-Reply-To: <7c15a844-1351-f1ac-2ad0-3c41455fcc2e@linux.intel.com>

On 08/30, Pierre-Louis Bossart wrote:
> On 8/30/16 7:37 PM, Stephen Boyd wrote:
> >On 08/17, Pierre-Louis Bossart wrote:
> >>@@ -414,6 +456,13 @@ static int pmc_setup_dev(struct pci_dev *pdev, const struct pci_device_id *ent)
> >> 	if (ret)
> >> 		dev_warn(&pdev->dev, "debugfs register failed\n");
> >>
> >>+	/* Register platform clocks - PMC_PLT_CLK [5:0] */
> >>+	clkdev = platform_device_register_data(NULL, "clk-byt-plt", -1,
> >>+					       &clks, sizeof(clks));
> >
> >Shouldn't we register the clk device as a child of the
> >registering device? Otherwise it's just floating in the device
> >hierarchy?
> 
> from a hardware perspective these clocks are pretty much stand-alone
> and independent, there is no real parent/child dependency I can
> think of and having this as 'floating' isn't very far from reality.

Hmm... what about things like suspend/resume? Presumably we would
want the clk device that's touching the pmc register space to be
suspended before we suspend pmc itself? Not having a parent would
mean it's a virtual device which doesn't seem correct. It's a
logical device that is related to the pmc device.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

      parent reply	other threads:[~2016-08-31 22:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 18:41 [PATCH] clk: x86: Add Atom PMC platform clocks Pierre-Louis Bossart
2016-08-31  0:37 ` Stephen Boyd
2016-08-31  1:35   ` Pierre-Louis Bossart
2016-08-31 17:08     ` Mark Brown
2016-09-01 23:32       ` [alsa-devel] " Pierre-Louis Bossart
2016-09-03  0:31         ` Stephen Boyd
2016-08-31 22:34     ` Stephen Boyd [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160831223407.GJ12510@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=irina.tirdea@intel.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).