From patchwork Tue Oct 20 08:43:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 55286 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f70.google.com (mail-lf0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 2BB8623024 for ; Tue, 20 Oct 2015 08:45:33 +0000 (UTC) Received: by lffz202 with SMTP id z202sf1888085lff.3 for ; Tue, 20 Oct 2015 01:45:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=T190pMNXHhmPG4Y/1B27kvWDXHPbkIWR8ncsSp8lpaA=; b=FfEDI2Z+WCN8yw6k2ECB25YGHKc0kM58FCILrmxuMr/3pJ6uWORX1Wttr7ns8X0Cyv 2jcoKhJwN9lzMspz6U59N0P4JssbY+GrqcafiMIiiBeKD7rxU5UJWTeuN7UKn4WXOpA5 qc50kgRFSfkcoDRSM0bEdIEWaI0y8qkEYm0vn+b0YAmLHqa7kXBwq/vUzJxlwFwgLdcI SsdXD6Y7MAtiepOXBs5EgsfJ2Z1fshRgCBz4DRkiB61a1YGaSgkS8qpHRLMipVlAom66 ApElB1Tc8OrbJFI9gVyyFdShpQw60iPIqlwfnqO6EYgzLtmvRpCz5+EjuIVjja8kctIL 6VUQ== X-Gm-Message-State: ALoCoQm9aOBtMXa8fv3c/KwmZcmK0+BUinzuW8oCn04ACFUuuyp7OKlTL+k0Jhic2iI1FbNs359u X-Received: by 10.112.151.9 with SMTP id um9mr371031lbb.19.1445330731945; Tue, 20 Oct 2015 01:45:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.81.208 with SMTP id f199ls44410lfb.101.gmail; Tue, 20 Oct 2015 01:45:31 -0700 (PDT) X-Received: by 10.25.38.9 with SMTP id m9mr669221lfm.112.1445330731777; Tue, 20 Oct 2015 01:45:31 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ew1si1440336lbc.98.2015.10.20.01.45.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 01:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbwb3 with SMTP id wb3so9803904lbb.1 for ; Tue, 20 Oct 2015 01:45:31 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr1058745lbb.35.1445330731324; Tue, 20 Oct 2015 01:45:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1942398lbq; Tue, 20 Oct 2015 01:45:30 -0700 (PDT) X-Received: by 10.107.30.143 with SMTP id e137mr961214ioe.36.1445330730378; Tue, 20 Oct 2015 01:45:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si1930721iod.139.2015.10.20.01.45.29; Tue, 20 Oct 2015 01:45:30 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932272AbbJTIp0 (ORCPT + 28 others); Tue, 20 Oct 2015 04:45:26 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:36607 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932164AbbJTInx (ORCPT ); Tue, 20 Oct 2015 04:43:53 -0400 Received: by wicfx6 with SMTP id fx6so34464178wic.1 for ; Tue, 20 Oct 2015 01:43:52 -0700 (PDT) X-Received: by 10.180.210.234 with SMTP id mx10mr3076785wic.31.1445330631919; Tue, 20 Oct 2015 01:43:51 -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 kr10sm2390754wjc.25.2015.10.20.01.43.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 01:43:51 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Bartosz Golaszewski Subject: [RESEND PATCH 7/9] eeprom: at24: add the at24cs series to the list of supported devices Date: Tue, 20 Oct 2015 10:43:25 +0200 Message-Id: <1445330607-12470-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445330607-12470-1-git-send-email-bgolaszewski@baylibre.com> References: <1445330607-12470-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bgolaszewski@baylibre.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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(+) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 0d34b94..b5181a3 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) },