From: Sebastian Reichel <sre@kernel.org>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: "Pallala, Ramakrishna" <ramakrishna.pallala@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
MyungJoo Ham <myungjoo.ham@samsung.com>
Subject: Re: [PATCH v2] power: max17042_battery: add HEALTH and TEMP_* properties support
Date: Mon, 27 Jul 2015 03:22:36 +0200 [thread overview]
Message-ID: <20150727012235.GA24229@earth> (raw)
In-Reply-To: <55B57C85.4070309@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
Hi,
On Mon, Jul 27, 2015 at 09:34:13AM +0900, Krzysztof Kozlowski wrote:
>>> [...]
>>
>> I missed this email (may be overlooked it). To have the
>> interrupts enabled we need the config registers(0x1Dh) bit's
>> BIT(9), BIT(4) and BIT92) should be 1 and BIT(8) should be 0.
>>
>> Can you dump the status(00h), Talrt(02H) Temp(08h) and
>> config(1Dh) registers values and share?
>
> Thanks for responding. The issue was in BIT(8) which was set to default
> value of 0x1. This would mean to use external sensor but the board does
> not have it.
>
> This is a DT platform and there is no initial config data so all
> registers are set to default values.
>
> Anyway everything seems to work as expected, thanks for explanation.
So I guess the bit should be set to 0 during probe. Maybe with a
boolean DT property "maxim,has-external-sensor" for setting it
to 1.
-- Sebastian
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-07-27 1:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-24 3:41 [PATCH v2] power: max17042_battery: add HEALTH and TEMP_* properties support Ramakrishna Pallala
2015-05-24 19:49 ` Sebastian Reichel
2015-06-08 1:22 ` Krzysztof Kozlowski
2015-06-23 0:58 ` Krzysztof Kozlowski
2015-07-24 14:46 ` Sebastian Reichel
2015-07-25 13:23 ` Pallala, Ramakrishna
2015-07-27 0:34 ` Krzysztof Kozlowski
2015-07-27 1:22 ` Sebastian Reichel [this message]
2015-07-27 1:27 ` Krzysztof Kozlowski
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=20150727012235.GA24229@earth \
--to=sre@kernel.org \
--cc=k.kozlowski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=ramakrishna.pallala@intel.com \
/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