[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87bnbsiiuv.fsf@dell.be.48ers.dk>
Date: Wed, 21 Oct 2015 13:03:36 +0200
From: Peter Korsgaard <peter@...sgaard.com>
To: Bartosz Golaszewski <bgolaszewski@...libre.com>
Cc: Wolfram Sang <wsa@...-dreams.de>,
linux-i2c <linux-i2c@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RESEND PATCH 0/9] eeprom: at24: at24cs series serial number read
>>>>> "Bartosz" == Bartosz Golaszewski <bgolaszewski@...libre.com> writes:
> Chips from the at24cs EEPROM series have an additional read-only memory area
> containing a factory pre-programmed serial number. In order to access it, a
> dummy write must be executed before reading the serial number bytes.
> This series adds support for reading the serial number through a sysfs
> attribute.
> While we're at it: some of the patches contain readability tweaks and code
> organization fixes.
> Tested with at24cs64 and at24cs02 chips (for both 16 and 8 bit address
> pointers).
As the serial number is available on a separate i2c address, wouldn't
it be simpler to handle these as special (read only) device variants and
instantiate E.G. a 24c64 (for the normal data) and a 24cs64 (for the
serial)?
--
Bye, Peter Korsgaard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists