linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy@kernel.org>
To: Andre Werner <andre.werner@systec-electronic.com>
Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org,
	hvilleneuve@dimonoff.com, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	lech.perczak@camlingroup.com, krzk+dt@kernel.org,
	conor+dt@kernel.org, robh@kernel.org
Subject: Re: [External Email] Re: [PATCH v6 2/2] serial: sc16is7xx: Add polling mode if no IRQ pin is available
Date: Mon, 13 Jan 2025 15:11:03 +0200	[thread overview]
Message-ID: <Z4UQ56-DDr8zim-e@smile.fi.intel.com> (raw)
In-Reply-To: <6ccaf061-c3d7-c78a-17e3-f0b9642c412f@systec-electronic.com>

On Mon, Jan 13, 2025 at 02:02:25PM +0100, Andre Werner wrote:
> On Mon, 13 Jan 2025, Andy Shevchenko wrote:
> > On Mon, Jan 13, 2025 at 08:30:30AM +0100, Andre Werner wrote:

...

> > > +static void sc16is7xx_poll_proc(struct kthread_work *ws)
> > > +{
> > > +	struct sc16is7xx_port *s = container_of(ws, struct sc16is7xx_port, poll_work.work);
> > > +
> > > +	/* Reuse standard IRQ handler. Interrupt ID is unused in this context. */
> >
> > Period.
> 
> What do you expect here? Shall I add the period time from the define as
> the dedicated value? I do not understand what I should add here in
> detail.
> 
> >
> > > +	/* Setup delay based on SC16IS7XX_POLL_PERIOD_MS */
> >
> > No period.
> 
> Or do you mean that I add the define only once and not add all used
> places?

...

> > Please, go through the comments you added in the patch and use the style that
> > is mostly used in the driver for the similar (one-line comment) situations.

^^^ Read this. You have added three comments in two different styles.
It's not a big or anyhow critical issue in this case, it's matter of
the consistency with the existing style.

I expect that all three will in the same style, preferable the one
that is currently in use in the driver for other comments.

...

> > > +		/* Initialize kernel thread for polling */
> >
> > Again, no period.
> 
> Same here. Do you expect the value here or the name of the used define?


-- 
With Best Regards,
Andy Shevchenko



      reply	other threads:[~2025-01-13 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-13  7:30 [PATCH v6 1/2] dt-bindings: serial: sc16is7xx: Add description for polling mode Andre Werner
2025-01-13  7:30 ` [PATCH v6 2/2] serial: sc16is7xx: Add polling mode if no IRQ pin is available Andre Werner
2025-01-13 12:51   ` Andy Shevchenko
2025-01-13 13:02     ` [External Email] " Andre Werner
2025-01-13 13:11       ` Andy Shevchenko [this message]

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=Z4UQ56-DDr8zim-e@smile.fi.intel.com \
    --to=andy@kernel.org \
    --cc=andre.werner@systec-electronic.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=jirislaby@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lech.perczak@camlingroup.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=robh@kernel.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).