From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
joe@perches.com, Bingbu Cao <bingbu.cao@linux.intel.com>,
Yong Zhi <yong.zhi@intel.com>, Bingbu Cao <bingbu.cao@intel.com>,
Tian Shu Qiu <tian.shu.qiu@intel.com>,
linux-media@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [PATCH v1 6/7] media: ipu3-cio2: Use readl_poll_timeout() helper
Date: Mon, 17 Aug 2020 15:29:11 +0300 [thread overview]
Message-ID: <20200817122911.GN1891694@smile.fi.intel.com> (raw)
In-Reply-To: <20200817115538.GJ24582@paasikivi.fi.intel.com>
On Mon, Aug 17, 2020 at 02:55:38PM +0300, Sakari Ailus wrote:
> On Mon, Aug 17, 2020 at 02:33:22PM +0300, Andy Shevchenko wrote:
> > On Mon, Aug 17, 2020 at 02:27:47PM +0300, Sakari Ailus wrote:
> > > On Mon, Aug 17, 2020 at 02:20:06PM +0300, Andy Shevchenko wrote:
> > > > On Mon, Aug 17, 2020 at 02:13:16PM +0300, Sakari Ailus wrote:
> > > > > On Mon, Aug 17, 2020 at 12:44:36PM +0300, Andy Shevchenko wrote:
> > > > > > On Mon, Aug 17, 2020 at 05:27:33PM +0800, Bingbu Cao wrote:
> > > > > > > On 8/15/20 12:30 AM, Andy Shevchenko wrote:
> > > > > > > > We may use special helper macro to poll IO till condition or timeout occurs.
> > > > > >
> > > > > > > > + ret = readl_poll_timeout(dma, value, value & CIO2_CDMAC0_DMA_HALTED, 4000, 2000000);
> > > > > > >
> > > > > > > This line is too long, need a break, others look good for me.
> > > > > >
> > > > > > checkpatch doesn't complain, but if you insist, I'll split it in v2.
> > > > >
> > > > > The coding style hasn't changed, it's just the checkpatch.pl warning that
> > > > > has.
> > > >
> > > > Joe, it seems we have inconsistency now between checkpatch and coding style.
> > > > Shouldn't we revert 100 limit warning to 80?
> > >
> > > There are sometimes genuine reasons for having longer lines than 80, and
> > > depending on the code, that happens more often in some places than
> > > elsewhere. This tended to generate lots of checkpatch.pl warnings in the
> > > past.
> > >
> > > While I didn't see the patch removing the 80 chars per line limit until it
> > > made the news, I think it was a quite reasonable compromise.
> >
> > But doesn't it make harder life for reviewers like you? You have to keep in
> > mind all these inconsistencies and rule either way.
> >
> > That said, we either would fix the doc, or revert the checkpatch change.
>
> I don't think the documentation should be changed. There *are* reasons for
> the 80-column limit. Although the exact number can be connected to the
> width of traditional text terminals, using very long lines makes reading
> text harder. IOW, there's a connection to the same reason why wide
> newspaper articles are split into several columns.
> Would it be reasonable if checkpatch.pl warned about exceeding 80-column
> limits if such lines are rare or nonexistent in the same file?
I don't think so. If somebody decides to *gradually* move to 100 limit in the
driver, it will be painful with all these new old warnings.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-08-17 12:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-14 16:30 [PATCH v1 1/7] media: ipu3-cio2: Simplify cleanup code Andy Shevchenko
2020-08-14 16:30 ` [PATCH v1 2/7] media: ipu3-cio2: Introduce CIO2_MAX_ENTRIES constant Andy Shevchenko
2020-08-14 20:18 ` Sakari Ailus
2020-08-17 11:46 ` Andy Shevchenko
2020-08-14 16:30 ` [PATCH v1 3/7] media: ipu2-cio2: Replace custom definition with PAGE_SIZE Andy Shevchenko
2020-08-14 16:30 ` [PATCH v1 4/7] media: ipu3-cio2: Use macros from pfn.h Andy Shevchenko
2020-08-14 16:30 ` [PATCH v1 5/7] media: ipu3-cio2: Replace infinite loop by one with clear exit condition Andy Shevchenko
2020-08-17 10:21 ` Bingbu Cao
2020-08-17 11:47 ` Andy Shevchenko
2020-08-14 16:30 ` [PATCH v1 6/7] media: ipu3-cio2: Use readl_poll_timeout() helper Andy Shevchenko
2020-08-17 9:27 ` Bingbu Cao
2020-08-17 9:44 ` Andy Shevchenko
2020-08-17 11:13 ` Sakari Ailus
2020-08-17 11:20 ` Andy Shevchenko
2020-08-17 11:27 ` Sakari Ailus
2020-08-17 11:33 ` Andy Shevchenko
2020-08-17 11:55 ` Sakari Ailus
2020-08-17 12:29 ` Andy Shevchenko [this message]
2020-08-17 12:44 ` Sakari Ailus
2020-08-14 16:30 ` [PATCH v1 7/7] media: ipu3-cio2: Update Copyright year and fix indentation issues Andy Shevchenko
2020-08-14 20:16 ` [PATCH v1 1/7] media: ipu3-cio2: Simplify cleanup code Sakari Ailus
2020-08-17 14:37 ` Andy Shevchenko
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=20200817122911.GN1891694@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bingbu.cao@intel.com \
--cc=bingbu.cao@linux.intel.com \
--cc=corbet@lwn.net \
--cc=joe@perches.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tian.shu.qiu@intel.com \
--cc=yong.zhi@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