From patchwork Tue Oct 27 11:43:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 55592 Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1739466lbq; Tue, 27 Oct 2015 04:44:36 -0700 (PDT) X-Received: by 10.50.60.104 with SMTP id g8mr24939877igr.89.1445946276006; Tue, 27 Oct 2015 04:44:36 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m70si28852435ioe.132.2015.10.27.04.44.35; Tue, 27 Oct 2015 04:44:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-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 S1754232AbbJ0LoX (ORCPT + 1 other); Tue, 27 Oct 2015 07:44:23 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36798 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754214AbbJ0LoU (ORCPT ); Tue, 27 Oct 2015 07:44:20 -0400 Received: by wicfx6 with SMTP id fx6so155298785wic.1 for ; Tue, 27 Oct 2015 04:44:19 -0700 (PDT) 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=nfDpuHx0AdbvaDdwYgrJZTkEJCmTpemQWMJGoVMM5Hg=; b=B/lfCqEShKvZJRYBTC2CPX/AcoEpkfHgOEYwsTDLG7VGeTAAoBbG7izSG0BrkwvyJl +3iS6vhZDzJfG3FJ8EFuXlcHHyoiBl9LTF+XHEJ1UDtpzY+1hNTfeFwa1WRVaQ4+oQRr G62tvuDdtutLgDLbAxT3J0PRouNR/Zr8OYgcyDhGzvkWlz7c7htIxkVpHDgoChQqylPY /3a/IQBUpffs2nARj82Dof4A3GZfl3wCRE52CJ84lcRBO4gaGj+2w1G7ztqdIQinEPqq W+EoNkrX3oCumXl6JHACGRrGeX7zm/05oxokl0juy33IZbmxlY0L+xvlV5QwnSsj2doR GYjQ== 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=nfDpuHx0AdbvaDdwYgrJZTkEJCmTpemQWMJGoVMM5Hg=; b=l1SyMIWNSRcFUk230PrrSxLmgmVfrydwfTntWQwJUkqcQVSBQNw3JjsaXjFPDdTiD1 m0jVeZ/feovjKb7jCo8sGimMCsEilTwOnpCXk5WxBA3rxRPVPgDo2srFM93XvV2zSyCD Zu/OFtcGgcTE3T2LbP5LMZJbmzPMJWS+EYKOCPEiHKlLaQXmPujs9Duqd5YuuSkfM087 vnGK4wVG9LXjhJCvi/ypboH0K8w8WfNRaMYvP+oMHiAwC4ponzgKWdYCBhJ3pcvnd5oZ tJD2O/FOEc2fCs65miuYvRI8cUPpoCg2JRPCMgHoAoZG2ncdiND/0kFzm3owyVjpTHhy l0og== X-Gm-Message-State: ALoCoQlA5csouDiLaEA+XZFoGQ5pXCfMv0n5wFxuVaghpaNE+QOWvYSdyR0QzDFTKPbsENxw5gw/ X-Received: by 10.194.61.13 with SMTP id l13mr32413136wjr.76.1445946259020; Tue, 27 Oct 2015 04:44:19 -0700 (PDT) Received: from localhost.localdomain (cag06-6-78-235-100-105.fbx.proxad.net. [78.235.100.105]) by smtp.gmail.com with ESMTPSA id gd11sm17451281wic.20.2015.10.27.04.44.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 04:44:18 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [PATCH v2 7/9] eeprom: at24: add the at24cs series to the list of supported devices Date: Tue, 27 Oct 2015 12:43:51 +0100 Message-Id: <1445946233-6071-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445946233-6071-1-git-send-email-bgolaszewski@baylibre.com> References: <1445946233-6071-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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-i2c" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index d13fd6b..387d134 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -116,16 +116,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) },