linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Zapolskiy <vz@mleia.com>
To: Shubhrajyoti Datta <shubhrajyoti.datta@gmail.com>
Cc: Vitaly Wool <vitalywool@gmail.com>,
	Wolfram Sang <wsa@the-dreams.de>,
	linux-i2c@vger.kernel.org
Subject: Re: [PATCH] i2c: pnx: fix warnings caused by enabling unprepared clock
Date: Tue, 20 Oct 2015 13:58:28 +0300	[thread overview]
Message-ID: <56261E54.7040808@mleia.com> (raw)
In-Reply-To: <CAKfKVtFR524MCag-dZCaEThqgGm-KBnKkxrw-cEG2RtCSZWnVw@mail.gmail.com>

On 20.10.2015 11:54, Shubhrajyoti Datta wrote:
> On Mon, Oct 19, 2015 at 11:49 PM, Vladimir Zapolskiy <vz@mleia.com> wrote:
>> On 19.10.2015 19:21, Shubhrajyoti Datta wrote:
>>> On Sun, Oct 18, 2015 at 12:22 AM, Vladimir Zapolskiy <vz@mleia.com> wrote:
>>>> If common clock framework is configured, the driver generates a warning,
>>>> which is fixed by this change:
>>> Maybe just describe the issue and the fix.
>>> Is it just a warning or  the clk enable doesn't work ?
>>>
>>> I feel the crash log in the commit msg is not very informative.
>>
>> It is not a crash, it is a WARN_ON(1) backtrace.
> 
> ok
> 
>>
>> The backtrace is informative enough IMHO, because if you check the code
>> around given drivers/clk/clk.c:727 you may find the rootcause, the
>> WARN_ON() and that the clock is not enabled as a result.
>>
>> CLK_COMMON selects HAVE_CLK_PREPARE and all drivers used on platforms
>> with common clock framework must have clk_prepare/clk_unprepare, this
>> information is omitted as well-known.
>>
>> But if you insist, I will improve the commit message, I'm interested in
>> applying this trivial fix as soon as possible, then concentrate on doing
>> something more fascinating.
> 
> My request will be to describe the issue.
> Like the probe fails or you access registers with clocks not enabled
> 
> Or it is a warning fix and the controller works etc.

If I change initial description to the one below, would you be satisfied
with it?

The driver can not be used on a platform with common clock framework
until clk_prepare/clk_unprepare calls are added, otherwise clk_enable
calls will fail and a warning is generated.

--
With best wishes,
Vladimir

  reply	other threads:[~2015-10-20 10:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-17 18:52 [PATCH] i2c: pnx: fix warnings caused by enabling unprepared clock Vladimir Zapolskiy
2015-10-19 16:21 ` Shubhrajyoti Datta
2015-10-19 18:19   ` Vladimir Zapolskiy
2015-10-20  8:54     ` Shubhrajyoti Datta
2015-10-20 10:58       ` Vladimir Zapolskiy [this message]
2015-10-23 20:21 ` Wolfram Sang
2015-10-23 20:27   ` Wolfram Sang

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=56261E54.7040808@mleia.com \
    --to=vz@mleia.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=shubhrajyoti.datta@gmail.com \
    --cc=vitalywool@gmail.com \
    --cc=wsa@the-dreams.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).