From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch: avr32: mach-at32ap: at32ap700x: Remove unused function
Date: Fri, 2 Jan 2015 14:21:06 +0100 [thread overview]
Message-ID: <20150102132106.GA8951@samfundet.no> (raw)
In-Reply-To: <1420134742-1142-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Around Thu 01 Jan 2015 18:52:22 +0100 or thereabout, Rickard Strandqvist wrote:
> Remove the function set_ebi_sfr_bits() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Hmmm, nack, I suspect there was non-upstreamed boards that used this to
fiddle with the hmatrix. I even think Atmel still has an appnote about how to
do this.
At least NGW100 was used to verify that fiddling with hmatrix worked.
> ---
> arch/avr32/mach-at32ap/at32ap700x.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index 37b7560..d84516c 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -744,17 +744,6 @@ struct clk at32_hmatrix_clk = {
> .users = 1,
> };
>
> -/*
> - * Set bits in the HMATRIX Special Function Register (SFR) used by the
> - * External Bus Interface (EBI). This can be used to enable special
> - * features like CompactFlash support, NAND Flash support, etc. on
> - * certain chipselects.
> - */
> -static inline void set_ebi_sfr_bits(u32 mask)
> -{
> - hmatrix_sfr_set_bits(HMATRIX_SLAVE_EBI, mask);
> -}
> -
> /* --------------------------------------------------------------------
> * Timer/Counter (TC)
> * -------------------------------------------------------------------- */
--
mvh
Hans-Christian Egtvedt
prev parent reply other threads:[~2015-01-02 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-01 17:52 [PATCH] arch: avr32: mach-at32ap: at32ap700x: Remove unused function Rickard Strandqvist
2015-01-02 13:21 ` Hans-Christian Egtvedt [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=20150102132106.GA8951@samfundet.no \
--to=egtvedt@samfundet.no \
--cc=hskinnemoen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rickard_strandqvist@spectrumdigital.se \
/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