From patchwork Tue Nov 24 09:44:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57213 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1973288lbb; Tue, 24 Nov 2015 01:46:40 -0800 (PST) X-Received: by 10.68.136.129 with SMTP id qa1mr3720740pbb.50.1448358400769; Tue, 24 Nov 2015 01:46:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tk2si25402058pab.196.2015.11.24.01.46.40; Tue, 24 Nov 2015 01:46:40 -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 S1753994AbbKXJqg (ORCPT + 28 others); Tue, 24 Nov 2015 04:46:36 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:33069 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754132AbbKXJoz (ORCPT ); Tue, 24 Nov 2015 04:44:55 -0500 Received: by wmec201 with SMTP id c201so199590361wme.0 for ; Tue, 24 Nov 2015 01:44:54 -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=vAMR2PzJ2mfyJHbR9PbIANa4FROhINMwTIsk8QSwpXvhL6I4tJOYOq2LLlu3XhKDX4 3u9fzdQwjJMWcwiK3z6KitzTBjE/ZwoxNbOt70Zy69QyVbEL3jYlKDkfE+sf9KGliJNG kIDtdZqn11WwY+LRYtbp7NsqcWhw1ht/qh/nhx2OBwkaeTjialsAEEEovA9xy6tlyePj FxXRIOxmTw9v6kgYuwpT5KeVIFyx1XF2UaGS/x98XK+K6zNN5w+B9fgu2c1qTIQNWsvL zh9fWqhpPqufZLYjBIqbj1vSqAu8+B05qT3N/qIIDtXHPZIUGdyJ5VehGAqsf+FSTrbZ eiuA== 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=kyTYh77dQvjKfM8aVEurFoRHLXs5ndgS4WPkyS1rniOuuTSKJGesmBSCojoTbOQWvW sS+fjfkQmlrUwD0g3yWIyZzeEysD8En/ZVWex2QBjeyygpXaL3XEHR0TGpKrWwePbB7p AS3iGEBVd0rsxosvglhhFGyyDI8J+P4PuTUuqacQo3uwFYOi6kRu+ZB/U+tSlbSREGKS wXf1k92HMZM/Ty/ChiewEJ0EK49H80Wq1pPAtdVGVL06b8MdnSIUC0psydDoSkr88tih 2PpFByqoFbt9q1mVJLdcxTwtQ349QnZqV5Dp+RaWpqVYSRetmOks6jIi8glFeG7YP6oB i8IQ== X-Gm-Message-State: ALoCoQnO6GPY2mWkJMuItcfRqRlIQHN6DqVpBjgr1xK5qnPyrqduHjMCrKK1STrwNrGPIvpBYWlJ X-Received: by 10.194.117.163 with SMTP id kf3mr23794359wjb.139.1448358294463; Tue, 24 Nov 2015 01:44:54 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id cl5sm17353156wjc.29.2015.11.24.01.44.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 01:44:53 -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, 24 Nov 2015 10:44:43 +0100 Message-Id: <1448358285-25016-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448358285-25016-1-git-send-email-bgolaszewski@baylibre.com> References: <1448358285-25016-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) },