From patchwork Wed Dec 2 10:25:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 57547 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2772404lbb; Wed, 2 Dec 2015 02:26:26 -0800 (PST) X-Received: by 10.67.3.196 with SMTP id by4mr3365143pad.67.1449051986372; Wed, 02 Dec 2015 02:26:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si3802568pap.162.2015.12.02.02.26.26; Wed, 02 Dec 2015 02:26:26 -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 S1757114AbbLBK0X (ORCPT + 28 others); Wed, 2 Dec 2015 05:26:23 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37494 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755890AbbLBKZm (ORCPT ); Wed, 2 Dec 2015 05:25:42 -0500 Received: by wmww144 with SMTP id w144so50312351wmw.0 for ; Wed, 02 Dec 2015 02:25:41 -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=KLFklSReTX+SQvzxPshBg33EBH8MVRF636sMbfOFsftS34jIp0v8th7JTml4X2Ex47 Pyhpkc7qrH2vMzED/qRbFX1P/WmTE6Hi27hbdBgbLMKTJei9XCBS6q3tEmMgI4S/12XE YjC6KOOmjDKU99R6vR9HmlqQkr5IQQDVBkMpFcgRUDj8lXiQW6P8a6boADZG3rO3nj6h 4iIDNQJpHiPPINhI5nYs1ALAkLIwepS+msfnl8vlNko8kbyiDhNC4ejh3LQhDrBYv5CF hpQXLqO9iBG76b44TNzLIKSPKt76gWQV94YEnopj/66D1i2WfVDwchDkS84Ri/3eRjMC MBnQ== 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=VeHgfhR+mqOdWuMuPGWjyS/LriQF3wz6/TgNKxabxZnba3R5wXUYSyeWxXzcKBxbP2 S/dB3KovIbt+651i3bAFSFSJGY5Q6txDOwP3P5O2MZMmRtR5tAeP2hGe9oONQuokqa4I 9gYJcV4V0fxWI1+iTvy9mrIiWrPxpQAFPVsRZl3sbzn3hB2myckWM55GU1ksIlF45ban MUC5fcoxBwE9DcQJP5qOgeCojtDLD25jH7bR130Pj2OxpVPF3/Eq8ib5wZYTQ26LOpgJ aHLVs6SI/g6Ep/gTCcrwNZZKuDjKX0vqf4Ypnm9nObCs20L+njHjxDe0ScqZywOJ9R1M xUgA== X-Gm-Message-State: ALoCoQlPOqRPz1Ab+4KHPKcdTbQPxniQ2nWjtvPnWzsToCoHJ2FplWaqDTvpEGeh9zZhoR8qEGHn X-Received: by 10.28.172.129 with SMTP id v123mr4617517wme.47.1449051941407; Wed, 02 Dec 2015 02:25:41 -0800 (PST) Received: from bgdev-debian.home ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id bg10sm2077707wjb.46.2015.12.02.02.25.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Dec 2015 02:25:40 -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: Wed, 2 Dec 2015 11:25:24 +0100 Message-Id: <1449051926-21918-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449051926-21918-1-git-send-email-bgolaszewski@baylibre.com> References: <1449051926-21918-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) },