mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Lh Kuo 郭力豪" <lh.Kuo@sunplus.com>
To: Mark Brown <broonie@kernel.org>, Li-hao Kuo <lhjeff911@gmail.com>
Cc: "p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	"andyshevchenko@gmail.com" <andyshevchenko@gmail.com>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"linux-spi@vger.kernel.org" <linux-spi@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Wells Lu 呂芳騰" <wells.lu@sunplus.com>
Subject: RE: [PATCH v4 1/2] SPI: Add SPI driver for Sunplus SP7021
Date: Mon, 20 Dec 2021 06:04:39 +0000	[thread overview]
Message-ID: <c2006b3f35ce4a2eb56d3dea534a3121@sphcmbx02.sunplus.com.tw> (raw)
In-Reply-To: <YbzK/Xm8hONUc5w6@sirena.org.uk>

Hi Mr. Mark Brown

Thank you for your review.

I will fix it in the next submission

> -----Original Message-----
> From: Mark Brown <broonie@kernel.org>
> Sent: Saturday, December 18, 2021 1:38 AM
> To: Li-hao Kuo <lhjeff911@gmail.com>
> Cc: p.zabel@pengutronix.de; andyshevchenko@gmail.com; robh+dt@kernel.org;
> linux-spi@vger.kernel.org; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Wells Lu 呂芳騰
> <wells.lu@sunplus.com>; Lh Kuo 郭力豪 <lh.Kuo@sunplus.com>
> Subject: Re: [PATCH v4 1/2] SPI: Add SPI driver for Sunplus SP7021
> 
> On Fri, Dec 10, 2021 at 05:02:47PM +0800, Li-hao Kuo wrote:
> 
> > +static irqreturn_t sp7021_spi_sla_irq(int irq, void *dev) {
> > +	struct sp7021_spi_ctlr *pspim = dev;
> > +	unsigned int data_status;
> > +
> > +	data_status = readl(pspim->sla_base + SP7021_DATA_RDY_REG);
> > +	writel(data_status | SP7021_SLA_CLR_INT, pspim->sla_base + SP7021_DATA_RDY_REG);
> > +	complete(&pspim->sla_isr);
> > +	return IRQ_NONE;
> > +}
> 
> This will always return IRQ_NONE even if the interrupt actually fired - that should eventually cause
> genirq to complain that there's a problem with the interrupt never being handled I think (though perhaps
> if the interrupt stops asserting it'll pick up on that).  It should return IRQ_HANDLED if there was
> something asserted in SP7021_DATA_RDY_REG.
> 
> Apart from that one thing this all looks good as far as I can see.

  reply	other threads:[~2021-12-20  6:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-10  9:02 [PATCH v4 0/2] Add SPI control driver for Sunplus SP7021 SoC Li-hao Kuo
2021-12-10  9:02 ` [PATCH v4 1/2] SPI: Add SPI driver for Sunplus SP7021 Li-hao Kuo
2021-12-17 17:38   ` Mark Brown
2021-12-20  6:04     ` Lh Kuo 郭力豪 [this message]
2021-12-17 18:05   ` Andy Shevchenko
2021-12-20  6:56     ` Lh Kuo 郭力豪
2021-12-10  9:02 ` [PATCH v4 2/2] devicetree: bindings SPI Add bindings doc " Li-hao Kuo
2021-12-10 22:08   ` Rob Herring

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=c2006b3f35ce4a2eb56d3dea534a3121@sphcmbx02.sunplus.com.tw \
    --to=lh.kuo@sunplus.com \
    --cc=andyshevchenko@gmail.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lhjeff911@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    --cc=wells.lu@sunplus.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

all inboxes | Powered by JetHome®