All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: "Sylwester Nawrocki" <sylvester.nawrocki@gmail.com>,
	"José Miguel Gonçalves" <jose.goncalves@inov.pt>,
	linux-samsung-soc@vger.kernel.org,
	"Kukjin Kim" <kgene.kim@samsung.com>
Subject: Re: Problem using S3C2416's HSSPI
Date: Tue, 02 Oct 2012 10:08:59 +0200	[thread overview]
Message-ID: <506AA11B.9050502@samsung.com> (raw)
In-Reply-To: <201210020147.47512.heiko@sntech.de>

On 10/02/2012 01:47 AM, Heiko Stübner wrote:
>> diff --git a/arch/arm/mach-s3c24xx/common-s3c2443.c
>> b/arch/arm/mach-s3c24xx/common-s3c2443.c index aeeb2be..aeb4a24 100644
>> --- a/arch/arm/mach-s3c24xx/common-s3c2443.c
>> +++ b/arch/arm/mach-s3c24xx/common-s3c2443.c
>> @@ -559,7 +559,7 @@ static struct clk hsmmc1_clk = {
>>
>>  static struct clk hsspi_clk = {
>>         .name           = "spi",
>> -       .devname        = "s3c64xx-spi.0",
>> +       .devname        = "s3c2443-spi.0",
>>         .parent         = &clk_p,
>>         .enable         = s3c2443_clkcon_enable_p,
>>         .ctrlbit        = S3C2443_PCLKCON_HSSPI,
>> @@ -633,7 +633,7 @@ static struct clk_lookup s3c2443_clk_lookup[] = {
>>         CLKDEV_INIT(NULL, "clk_uart_baud2", &clk_p),
>>         CLKDEV_INIT(NULL, "clk_uart_baud3", &clk_esys_uart.clk),
>>         CLKDEV_INIT("s3c-sdhci.1", "mmc_busclk.0", &hsmmc1_clk),
>> -       CLKDEV_INIT("s3c64xx-spi.0", "spi_busclk0", &hsspi_clk),
>> +       CLKDEV_INIT("s3c2443-spi.0", "spi_busclk0", &hsspi_clk),
>>  };
> 
> ahaa ... that's the cause. As far as I was able to determine, in the patchset 
> only the clocks were renamed and the different device names introduced.
> 
> The spi devices did not get a function to set the name, like for the rtc, adc 
> and nand. The devices are named s3c6410-spi by default, so it seems only the 
> s3c64xx machines should have a working spi currently.

That reminds me that I have some patches that set the SPI device names and
I have been using those for non-dt exynos platform. Yes, it looks like we
need a generic function for all Samsung machines that would override SPI
device names on all except mach-s3c64xx.

> I'm working on a patch to fix this for all Samsung arches.

OK. I have something like this too. Anyway it seems SPI is now broken on
all non-dt machines except s3c64xx in kernel 3.6. Perhaps these patches
should be also sent now to stable@vger.kernel.org.

Regards,
Sylwester


-- 
Sylwester Nawrocki
Samsung Poland R&D Center

  reply	other threads:[~2012-10-02  8:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 17:32 Problem using S3C2416's HSSPI José Miguel Gonçalves
2012-10-01 19:18 ` Heiko Stübner
2012-10-01 19:40   ` Sylwester Nawrocki
2012-10-01 23:47     ` Heiko Stübner
2012-10-02  8:08       ` Sylwester Nawrocki [this message]
2012-10-01 20:01   ` José Miguel Gonçalves

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=506AA11B.9050502@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=heiko@sntech.de \
    --cc=jose.goncalves@inov.pt \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=sylvester.nawrocki@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.