All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanimir Varbanov <svarbanov@mm-sol.com>
To: Courtney Cavin <courtney.cavin@sonymobile.com>
Cc: Rob Herring <robh@kernel.org>,
	Grant Likely <grant.likely@linaro.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"Ivan T. Ivanov" <iivanov@mm-sol.com>,
	Josh Cartwright <joshc@codeaurora.org>,
	Stephen Boyd <sboyd@codeaurora.org>
Subject: Re: [RFC PATCH 0/6] Support for QPNP PMIC's
Date: Thu, 26 Jun 2014 18:12:06 +0300	[thread overview]
Message-ID: <53AC3846.9010808@mm-sol.com> (raw)
In-Reply-To: <20140625212811.GD10905@sonymobile.com>

On 06/26/2014 12:28 AM, Courtney Cavin wrote:
> On Wed, Jun 25, 2014 at 11:18:57PM +0200, Rob Herring wrote:
>> On Wed, Jun 25, 2014 at 1:04 PM, Courtney Cavin
>> <courtney.cavin@sonymobile.com> wrote:
>>> On Wed, Jun 25, 2014 at 01:07:13PM +0200, Stanimir Varbanov wrote:
>>>> On 06/25/2014 01:36 AM, Courtney Cavin wrote:
>>> Greg, Grant, Rob?  What's the law?
>>
>> Generally sub-blocks of a device are handled as platform devices. If
>> there is a good enough reason then creating a new device type may be
>> okay, but we certainly wouldn't want every PMIC or MFD driver to go
>> off and define their own bus. Probably not each vendor doing a bus
>> either.
> 
> Thanks for the clarification!

OK, I tend to agree that creating a new bus only to define new device
type is pointless. But using platform devices for sub-blocks attached to
spmi-bus seems wrong too.

Courtney, the other option could be to extend
spmi.c::of_spmi_register_devices to create spmi_device for each
sub-function per each slave. Currently the function creates devices only
for every spmi slave.

Thus every sub-function driver will be spmi_driver (something like
i2c_driver for example). Sub-function resources could be embedded in
spmi_device structure.

I'm not sure how much code/efforts will be needed but it seems it is
worth to do.

Any thoughts?


-- 
regards,
Stan

  reply	other threads:[~2014-06-26 15:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 12:21 [RFC PATCH 0/6] Support for QPNP PMIC's Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 1/6] dt: qpnp: add binding description of Qualcomm QPNP PMICs Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 2/6] qpnp: add support for " Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 3/6] dt: qcom: msm8974: add qpnp-spmi device nodes Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 4/6] rtc: add qpnp rtc driver Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 5/6] dt: msm8974: add qpnp rtc device node Stanimir Varbanov
2014-06-20 12:21 ` [RFC PATCH 6/6] dt: rtc: add binding document for rtc-qpnp Stanimir Varbanov
2014-06-24 22:36 ` [RFC PATCH 0/6] Support for QPNP PMIC's Courtney Cavin
2014-06-25 11:07   ` Stanimir Varbanov
2014-06-25 18:04     ` Courtney Cavin
2014-06-25 21:18       ` Rob Herring
2014-06-25 21:28         ` Courtney Cavin
2014-06-26 15:12           ` Stanimir Varbanov [this message]
2014-06-26 15:48       ` Stanimir Varbanov

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=53AC3846.9010808@mm-sol.com \
    --to=svarbanov@mm-sol.com \
    --cc=courtney.cavin@sonymobile.com \
    --cc=grant.likely@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=iivanov@mm-sol.com \
    --cc=joshc@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@codeaurora.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.