From: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Mika Westerberg
<mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Aaron Lu <aaron.lu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Daniel Mack <daniel-cYrQPVfZoowdnm+yROfE0A@public.gmane.org>,
Haojian Zhuang
<haojian.zhuang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] spi: pxa2xx: Remove redundant call to lpss_ssp_setup() in probe
Date: Fri, 20 Nov 2015 14:14:41 +0200 [thread overview]
Message-ID: <564F0EB1.8020306@linux.intel.com> (raw)
In-Reply-To: <1448020521-94914-1-git-send-email-mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
On 11/20/2015 01:55 PM, Mika Westerberg wrote:
> Commit 8b136baa5892 ("spi: pxa2xx: Detect number of enabled Intel LPSS SPI
> chip select signals") added a block where lpss_ssp_setup() gets called
> again for Intel LPSS SPI host controllers before checking number of chip
> selects from the capabilities register.
>
> There is no point in calling the function twice in probe so remove the
> first call.
>
> Reported-by: Aaron Lu <aaron.lu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> ---
> drivers/spi/spi-pxa2xx.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
> index b25dc71b0ea9..ab9914ad8365 100644
> --- a/drivers/spi/spi-pxa2xx.c
> +++ b/drivers/spi/spi-pxa2xx.c
> @@ -1567,9 +1567,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
> if (!is_quark_x1000_ssp(drv_data))
> pxa2xx_spi_write(drv_data, SSPSP, 0);
>
> - if (is_lpss_ssp(drv_data))
> - lpss_ssp_setup(drv_data);
> -
> if (is_lpss_ssp(drv_data)) {
> lpss_ssp_setup(drv_data);
> config = lpss_get_config(drv_data);
Right, obvious, I just ponder why I was blind to see this myself when I
split the original patch.
Acked-by: Jarkko Nikula <jarkko.nikula-FVTvWyuFUl3QT0dZR+AlfA@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-11-20 12:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 11:55 [PATCH] spi: pxa2xx: Remove redundant call to lpss_ssp_setup() in probe Mika Westerberg
[not found] ` <1448020521-94914-1-git-send-email-mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-11-20 12:14 ` Jarkko Nikula [this message]
[not found] ` <564F0EB1.8020306-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-11-20 13:52 ` Jarkko Nikula
2015-11-20 18:20 ` Applied "spi: pxa2xx: Remove redundant call to lpss_ssp_setup() in probe" to the spi tree Mark Brown
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=564F0EB1.8020306@linux.intel.com \
--to=jarkko.nikula-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=aaron.lu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=daniel-cYrQPVfZoowdnm+yROfE0A@public.gmane.org \
--cc=haojian.zhuang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=robert.jarzmik-GANU6spQydw@public.gmane.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).