All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Murphy <brm@murphy.dk>
To: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] Add back support for LASAT platforms
Date: Wed, 22 Aug 2007 22:35:58 +0200	[thread overview]
Message-ID: <46CC9E2E.5090402@murphy.dk> (raw)
In-Reply-To: <20070822101425.430da249.yoichi_yuasa@tripeaks.co.jp>

Yoichi Yuasa wrote:

<much snipping>
>> +
>> +config DS1603
>> +	bool "DS1603 RTC driver"
>> +	depends on LASAT
>>     
>
> If you add new RTC driver, it should go to drivers/rtc.
>   
It's hardly new, is it? It was removed by you with the rest
of the LASAT stuff two months ago after it had been in the kernel
for 5 years. Why are RTC drivers more important than any others?
And why is it important that a platform specific driver goes in a
common area when only one platform uses it?

The driver is quite platform specific:

1) It needs to adjust for a slow transistor on the I/O line to allow
for three-stating.
2) A special lasat_ndelay which guesses the clock speed based
on platform to allowi the bit-banging interface to control the device
before the CP0 timer is calibrated (by the RTC).
3) Platform specific I/O which is not programmable (part of an FPGA/CPLD).

1 Is basically solved now in an ugly manner with a long delay parameter.
2 I cant really see a sensible solution to.
3 I could use the new fancy gpio interface but as the I/O is neither
general or programmable I'm not sure of the point. If someone else
needed the driver then I would have no problem in doing this but as
it is it seems like a waste of time.

The interface the rtc uses is still used by many drivers implemented
in the platform directories and is much simpler and straightforward
than the general interface used by the drivers in drivers/rtc and will
give more code.

I have no problems with your other points but I would really like the
RTC code to stay where it is.

/Brian

  parent reply	other threads:[~2007-08-22 20:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 20:34 [PATCH] Add back support for LASAT platforms brm
2007-08-22  1:14 ` Yoichi Yuasa
2007-08-22  6:59   ` Geert Uytterhoeven
2007-08-22 23:24     ` Ralf Baechle
2007-08-22 20:35   ` Brian Murphy [this message]
2007-08-23  1:17     ` Yoichi Yuasa
2007-08-23 12:32 ` Ralf Baechle
2007-08-23 19:49   ` Brian Murphy
2007-08-23 20:08     ` Ralf Baechle
2007-08-28 11:24       ` Brian Murphy
2007-08-28 11:24         ` Brian Murphy
2007-08-28 12:40         ` Ralf Baechle

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=46CC9E2E.5090402@murphy.dk \
    --to=brm@murphy.dk \
    --cc=linux-mips@linux-mips.org \
    --cc=yoichi_yuasa@tripeaks.co.jp \
    /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.