From patchwork Tue Nov 17 09:52:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 56762 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1829397lbb; Tue, 17 Nov 2015 01:53:50 -0800 (PST) X-Received: by 10.68.65.8 with SMTP id t8mr58085375pbs.99.1447754030631; Tue, 17 Nov 2015 01:53:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ya7si57059346pbc.121.2015.11.17.01.53.50; Tue, 17 Nov 2015 01:53:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@baylibre_com.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753572AbbKQJxs (ORCPT + 28 others); Tue, 17 Nov 2015 04:53:48 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34381 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbbKQJwn (ORCPT ); Tue, 17 Nov 2015 04:52:43 -0500 Received: by wmvv187 with SMTP id v187so218153876wmv.1 for ; Tue, 17 Nov 2015 01:52:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GeAR9/Jr2/H8a0ubVLJMU8D5OC9RkYml87cklqya9ug=; b=ADTYnk8K7AIt5uEij8QHrDeojSTMU/OIX/bfQnJKRe3n3NIz20NZR/i/txyBVKEobv WaP44VsnLsWWUBJamZcwKOr+nEKNOqHHtvTmoWEDdePwKLYTWXYuaNFCajAa3g7y30lx qgYOyfb6ZES3oX2/K+8AluSty9x6lgrdfqY3vKB+ShgCMmZ5WKNiyYng/9iPkNWq6pib iwzB0FkmOwaronBoR5nRWX8JrWJC7nWsZYOkBseNxU3X3WOUTSow94RqgE2QwqELe6ar iMUxJ+HaXxWAk73X171lB0ji640Ty10orNg9oh+xRvGjl4j+VyHKGLzTrUKM0Fpc/Y5h rAfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GeAR9/Jr2/H8a0ubVLJMU8D5OC9RkYml87cklqya9ug=; b=aQ/Z13tJJzvzeXARw8zm8zVJmQazBzwmhd8jKf7ba9ps1FUHMa5IAdSuoQ8yHmnO5s P3Wv2UWh+Pyf/1aBgH2FmkqB0v0uT4vGT4sOlWF0iQQ5OL6NKknCc9Z/cfoBXcSuMfK4 j0qW3S7WW4g7VTJS4EKHWiTn0hET1aWSJG747OGOO8+jnttPUkimXBBv+Y+5Hn97bhvV uAVujv9pyEToRfzQ+VcshaHqVfuXNKvXrU8DpcFCLhnQI3RN8DW27nW490Bym0A6O5Uj 6GEZsk6U1z9/ZvMEq3lC9pxjCHvpa/HrpzWBJRYNAw2xhZHK+1gr/4PhLDfWfbfef3uF JG2g== X-Gm-Message-State: ALoCoQkMR+joGzCnRuaqcAZkaqFI8Mw7VP0XILR2rahbECFE55Nw/IlOXbJD8DM+FOVcoD76/Yo2 X-Received: by 10.28.210.74 with SMTP id j71mr1475007wmg.96.1447753961930; Tue, 17 Nov 2015 01:52:41 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bk7sm38993546wjb.25.2015.11.17.01.52.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:52:41 -0800 (PST) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [RESEND PATCH v2 7/9] eeprom: at24: add the at24cs series to the list of supported devices Date: Tue, 17 Nov 2015 10:52:28 +0100 Message-Id: <1447753950-17213-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447753950-17213-1-git-send-email-bgolaszewski@baylibre.com> References: <1447753950-17213-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The infrastructure for reading of the factory-programmed serial number for at24cs EEPROM series is now in place. Add the chips that are actually equipped with the serial number memory area to the list of supported devices. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index d474b6d..6e28b02 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -117,16 +117,25 @@ static const struct i2c_device_id at24_ids[] = { { "24c00", AT24_DEVICE_MAGIC(128 / 8, AT24_FLAG_TAKE8ADDR) }, /* old variants can't be handled with this generic entry! */ { "24c01", AT24_DEVICE_MAGIC(1024 / 8, 0) }, + { "24cs01", AT24_DEVICE_MAGIC(1024 / 8, AT24_FLAG_SERIAL) }, { "24c02", AT24_DEVICE_MAGIC(2048 / 8, 0) }, + { "24cs02", AT24_DEVICE_MAGIC(2048 / 8, AT24_FLAG_SERIAL) }, /* spd is a 24c02 in memory DIMMs */ { "spd", AT24_DEVICE_MAGIC(2048 / 8, AT24_FLAG_READONLY | AT24_FLAG_IRUGO) }, { "24c04", AT24_DEVICE_MAGIC(4096 / 8, 0) }, + { "24cs04", AT24_DEVICE_MAGIC(4096 / 8, AT24_FLAG_SERIAL) }, /* 24rf08 quirk is handled at i2c-core */ { "24c08", AT24_DEVICE_MAGIC(8192 / 8, 0) }, + { "24cs08", AT24_DEVICE_MAGIC(8192 / 8, AT24_FLAG_SERIAL) }, { "24c16", AT24_DEVICE_MAGIC(16384 / 8, 0) }, + { "24cs16", AT24_DEVICE_MAGIC(16384 / 8, AT24_FLAG_SERIAL) }, { "24c32", AT24_DEVICE_MAGIC(32768 / 8, AT24_FLAG_ADDR16) }, + { "24cs32", AT24_DEVICE_MAGIC(32768 / 8, + AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL) }, { "24c64", AT24_DEVICE_MAGIC(65536 / 8, AT24_FLAG_ADDR16) }, + { "24cs64", AT24_DEVICE_MAGIC(65536 / 8, + AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL) }, { "24c128", AT24_DEVICE_MAGIC(131072 / 8, AT24_FLAG_ADDR16) }, { "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) }, { "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) },