From: Wolfram Sang Subject: Re: [PATCH v3] New-style I2C and SMBus EEPROM driver (with device_ids) Date: Tue, 1 Jul 2008 15:20:51 +0200 Message-ID: <20080701132050.GA3836@pengutronix.de> References: <20080605193103.GA13062@pengutronix.de> <200806111025.08951.david-b@pacbell.net> <20080611214135.090ea690@hyperion.delvare> <200806121417.51446.david-b@pacbell.net> <20080613101644.6333fcff@hyperion.delvare> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9133683628873101270==" Return-path: In-Reply-To: <20080613101644.6333fcff-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: Jean Delvare Cc: David Brownell , i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org --===============9133683628873101270== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jean, hopefully, I now have the time to finish at24 for good. Do you think it can go through the next merge window? > > As I said, my thought there is to make it safe for most > > developers to just say "24c32" (or whatever) and have a > > sane default ... while making sure that they *always* have > > a way to set chips up to be readonly, or provide a better > > page size (if they need better bulk write speeds). >=20 > I agree on the principle. But the question remains: what is a sane > default in this context? Using the smallest page size amongst commonly > used EEPROM models? Using the smallest page size amongst known models? > Using the smallest possible page size (that would be 1 byte for all > EEPROM sizes as I understand it)? This 3rd possibility would probably > be no better than defaulting to read-only, as the write performance > would be so bad that every developer would specify custom platform data. Hmm, I tend to set all page_sizes to 1. It is a bit awkward to write "double check those parameters" and then provide values you cannot be absolutely sure of. Still, a minimal write-possibility may come in handy, I think. I agree with Jean here, that it will be so slow, that developers surely will create their own platform_devices. All the best, Wolfram --=20 Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIai8yD27XaX1/VRsRAn23AKCRJCQgaGa0lySrL8SEJ+Iu+Fbz6wCgi5Zs shG6fDks3btXf151zpLTaWg= =hgi/ -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA-- --===============9133683628873101270== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c --===============9133683628873101270==--