From: David Brownell <david-b@pacbell.net>
To: Jonathan Cameron <Jonathan.Cameron@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: [patch 2.6.26] gpio: pcf857x handle pca9500 and pca9501
Date: Thu, 24 Jul 2008 18:17:04 -0700 [thread overview]
Message-ID: <200807241817.04624.david-b@pacbell.net> (raw)
In-Reply-To: <4888A8E5.6050700@gmail.com>
On Thursday 24 July 2008, Jonathan Cameron wrote:
> These two chips have two elements (on different i2c addresses),
> the first is a clone of the pcf8574 and the second 2kBit eeprom.
That is, NXP documents say it's a pcf8582 eeprom, which
is software-compatible with what Linux calls a 24c02 chip.
It'd be worth sending a patch so drivers/i2c/chips/at24.c
can handle those EEPROMs ...
> Seems easiest to support these separately so main query about
> this patch is should the device naming reflect this dual
> functionality.
>
> I've been using the pcf857x driver with a 9500 for several
> months without problems and just want this in to clean up
> a confusing element in a board config.
Hmm, well I don't really see a way around having two entries
in the relevant boards' i2c board info ... so this patch just
ensures that *one* entry can list the actual part.
I'm curious why you added this chp to the pcf857x driver
rather than to the at24 driver ... since it's quite obvious
from docs that the chip is pcf8574-compatible, but only the
pca9500 lists the EEPROM compatibility.
I guess given my druthers I'd update Kconfig for both drivers
to mention these parts (and their need for two drivers), plus
add them to the at24 driver (rather than pcf857x) purely because
the docs are, overall, more clear about the GPIO compatibility
than about the EEPROM.
- Dave
> As the Kconfig title for these is getting a bit long and the
> datasheet for these starts with stating they are pcf957x
> compatible so I haven't changed it.
Right; helptext can have a sentence.
next prev parent reply other threads:[~2008-07-25 1:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 16:08 [patch 2.6.26] gpio: pcf857x handle pca9500 and pca9501 Jonathan Cameron
2008-07-25 1:17 ` David Brownell [this message]
2008-07-25 11:48 ` Jonathan Cameron
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=200807241817.04624.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=Jonathan.Cameron@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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