All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Koller <clemens.koller@anagramm.de>
To: Scott Wood <scottwood@freescale.com>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>,
	rtc-linux@googlegroups.com, linuxppc-embedded@ozlabs.org
Subject: OT: Re: solved: Re: [rtc-linux] Re: DS1337 RTC on I2C broken.
Date: Mon, 03 Dec 2007 18:41:01 +0100	[thread overview]
Message-ID: <47543FAD.7040504@anagramm.de> (raw)
In-Reply-To: <47543351.2080904@freescale.com>

Hello, Scott!

Scott Wood schrieb:
 > Clemens Koller wrote:
 >> [OT+sarcasm on]
 >>
 >> So, the time is over, where you just enable a driver in the kernel
 >> config and
 >> the device gets probed and - if it's probed successfully - it usually
 >> works.
 >
 > The problem is the "probed successfully" bit -- i2c can't be
 > automatically detected like PCI can, and the probing that was being done
 > before was very error-prone.

I think I understood the original purpose of device trees, or it's
intended advantage but don't see much of this yet.

Before (2.6.22) everything was working fine just by enabling the proper
kernel config. But in it's current implementation I primarily see the
an additional, duplicate, badly documented configuration step for
these - in my case - stupid, usually trivial to handle RTC chips.

 > That's the simplest way, but not the only way.  You could also have a
 > wrapper platform that chooses the proper device tree based on something
 > you detect.

Here is the problem:
something it detects = probing (what we planned to avoid)
something I detect = configurating (currently duplicated work).
This wrapper platform doesn't really exist yet in practice.

 >> Hmmm... this just s****!
 >
 > There are some growing pains, but the old method of blindly poking at
 > i2c addresses and hoping that the first driver to ask for a port that
 > something responds to is actually the right driver for that port is just
 > shit.

That's not a good example: Of course, blindly poking is bad...
therefore there is the (kernel.)configuration step to have only
the relevant drivers enabled:
The Philips PCF8563 is on address 0x51 and the DS13x7 on 0x68.
The drivers don't touch foreign addresses at all and they are
fixed. No issues there... proved by 2.6.22.

Well, I don't want to start a flamewar on this since we have had
already enough pro & contra Device Tree discussions. I just want
to point out that the current situation doesn't really follow
the KISS principle at all in my eyes.

Here, the next idea which comes to my mind:
Maybe we should think about a kernel-config -> dts compiler for
the future where the enabled drivers generate their default dts
entries automagically?

Regards,
-- 
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com

  reply	other threads:[~2007-12-03 17:40 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 18:25 DS1337 RTC on I2C broken Clemens Koller
2007-11-28 18:43 ` Alessandro Zummo
2007-11-28 19:20   ` Clemens Koller
2007-11-28 19:36   ` Clemens Koller
2007-11-28 20:34     ` [rtc-linux] " Alessandro Zummo
2007-11-29 11:24   ` Clemens Koller
2007-11-29 11:34     ` raul.moreno
2007-11-29 12:43       ` Clemens Koller
2007-11-29 20:03   ` Clemens Koller
2007-11-29 20:19     ` Alessandro Zummo
2007-11-30 11:04       ` Clemens Koller
2007-11-30 11:20         ` [rtc-linux] " Alessandro Zummo
2007-11-30 14:12           ` Clemens Koller
2007-12-01 12:24             ` Alessandro Zummo
2007-12-02 20:25             ` Olof Johansson
2007-11-30 18:12           ` Clemens Koller
2007-12-01 12:16             ` Alessandro Zummo
2007-12-03 15:14           ` Clemens Koller
2007-12-03 16:07             ` Bartlomiej Sieka
2007-12-03 16:38               ` Clemens Koller
2007-12-03 16:09             ` solved: " Clemens Koller
2007-12-03 16:48               ` Scott Wood
2007-12-03 17:41                 ` Clemens Koller [this message]
2007-12-03 18:07                   ` OT: " Scott Wood
2007-12-03 19:35                     ` Clemens Koller
2007-12-03 20:05                       ` Grant Likely
2007-12-03 20:46                       ` Scott Wood
2007-12-04 11:42                         ` Clemens Koller
2007-12-04 13:08                           ` Scott Wood
2007-12-04 15:32                             ` Clemens Koller
2007-12-04 16:08                               ` Scott Wood
2007-12-05 10:27                                 ` Clemens Koller
2007-12-04 17:19                               ` Jon Smirl
2007-12-05 10:30                                 ` Clemens Koller

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=47543FAD.7040504@anagramm.de \
    --to=clemens.koller@anagramm.de \
    --cc=alessandro.zummo@towertech.it \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=scottwood@freescale.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.