devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Victor Ascroft <victorascroft-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mason <mpeg.blue-GANU6spQydw@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Looking for good references for ARM driver development
Date: Wed, 19 Nov 2014 23:00:08 +0530	[thread overview]
Message-ID: <546CD3A0.6000307@gmail.com> (raw)
In-Reply-To: <546CD11F.6050502-GANU6spQydw@public.gmane.org>


On 11/19/2014 10:49 PM, Mason wrote:
> On 19/11/2014 17:57, Victor Ascroft wrote:
> 
>> This actually depends on the kernel you are using. Do you have relatively
>> new kernel or an old one? Depending on that, either you will get that
>> information in a board file or else in the device tree in arch/arm/boot/dts.
> 
> I'll reply more thoroughly later, but I wanted to address this question.
> We're targeting kernel 3.14.x

OK. Has to be a device tree then.

> 
>> This depends. If you have driver compiled in with the kernel this will happen
>> on kernel boot up. If you have the driver as a loadable module, the probe hook
>> will be called on modprobe or insmod.
> 
> Is this an answer to question 5?
> I think there is some confusion with the "probe" terminology.
> 
> I meant "probe" as in "read the current value".
> I think you mean "probe" as in "the driver probes for the device through
> the probe method."
> 
> I meant to ask how often the hwmon framework "polls" the temperature sensor.

Oh. My understanding was you meant the "probe" of the driver. The hwmon
will be exposing the functionality of reading the temperature sensor through
a sysfs interface. I am not sure as to whether a "poll" functionality is
provided by hwmon (probably not), but, when you cat or read the sysfs path 
you will have the temperature readout. The lm75.c is good place to start.

http://lxr.free-electrons.com/source/Documentation/hwmon/
http://lxr.free-electrons.com/source/Documentation/hwmon/sysfs-interface

-- Sanchayan
> 
> Regards.
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-11-19 17:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19 12:50 Looking for good references for ARM driver development Mason
2014-11-19 15:02 ` Andreas Färber
2014-11-19 16:05   ` Mason
     [not found]     ` <546CBFAC.9040906-GANU6spQydw@public.gmane.org>
2014-11-20  9:18       ` Viresh Kumar
2014-11-20 14:33       ` Antony Pavlov
     [not found] ` <546C920A.7060800-GANU6spQydw@public.gmane.org>
2014-11-19 16:57   ` Victor Ascroft
     [not found]     ` <546CCBF6.7070607-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-19 17:19       ` Mason
     [not found]         ` <546CD11F.6050502-GANU6spQydw@public.gmane.org>
2014-11-19 17:30           ` Victor Ascroft [this message]
2014-11-20 21:41     ` Mason
     [not found]       ` <546E600F.8020704-GANU6spQydw@public.gmane.org>
2014-11-21  6:00         ` Victor Ascroft

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=546CD3A0.6000307@gmail.com \
    --to=victorascroft-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mpeg.blue-GANU6spQydw@public.gmane.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 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).