From patchwork Mon Oct 12 14:31:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 54770 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 5D1C122DB6 for ; Mon, 12 Oct 2015 14:32:39 +0000 (UTC) Received: by lbcao8 with SMTP id ao8sf70406803lbc.1 for ; Mon, 12 Oct 2015 07:32:38 -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=XjLTCdptcyfOH8/dPe2UtOBpx4b3grtocQpKyeogJMpxmGWsFD+3aZA2/yDou2hSjp QoeQTs9oXzPW/TaCq0P4mYOtoJQMq4J+XS6Bz2de3Enp0g46vlPxgHoNP9D+QGlqLJis sWcnN/ypIDON93QQoHR76z/FJuEUWJ8bvk9rsUNjSD2MmOxP9ceG+7hrN3h7OXTKIPtb COVGNYMDcTSF4sxg+iDmX8fP09E2Ni7LItpjOLW25wwIm48c3bvFbJufVUTubZmmipVv 2mCUSs2D1+TB85S8q6uJkxBOhco5gf7zUPxGls3T/mLdk303rV10u2g9xCBunIuhdRmR fhmw== X-Gm-Message-State: ALoCoQlVrupiKkiM/R99ePX3VeKt36T49C0JQo/sKQUv3/EI0LciMnHtUARy3wUfWBO0Fu9/4em7 X-Received: by 10.112.158.202 with SMTP id ww10mr5783349lbb.13.1444660358333; Mon, 12 Oct 2015 07:32:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.158.146 with SMTP id h140ls556410lfe.108.gmail; Mon, 12 Oct 2015 07:32:38 -0700 (PDT) X-Received: by 10.112.205.69 with SMTP id le5mr12753628lbc.89.1444660358101; Mon, 12 Oct 2015 07:32:38 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id a197si11423567lfe.97.2015.10.12.07.32.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 07:32:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbwr8 with SMTP id r8so143417389lbw.2 for ; Mon, 12 Oct 2015 07:32:38 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr12879433lbb.35.1444660357978; Mon, 12 Oct 2015 07:32:37 -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 w3csp1583214lbq; Mon, 12 Oct 2015 07:32:37 -0700 (PDT) X-Received: by 10.68.131.68 with SMTP id ok4mr34445174pbb.149.1444660356954; Mon, 12 Oct 2015 07:32:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si26491302pbq.81.2015.10.12.07.32.35; Mon, 12 Oct 2015 07:32:36 -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 S1752098AbbJLOc2 (ORCPT + 30 others); Mon, 12 Oct 2015 10:32:28 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38046 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbbJLOcY (ORCPT ); Mon, 12 Oct 2015 10:32:24 -0400 Received: by wieq12 with SMTP id q12so23290994wie.1 for ; Mon, 12 Oct 2015 07:32:22 -0700 (PDT) X-Received: by 10.194.24.68 with SMTP id s4mr33391525wjf.12.1444660342584; Mon, 12 Oct 2015 07:32:22 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-62-228.w90-63.abo.wanadoo.fr. [90.63.143.228]) by smtp.gmail.com with ESMTPSA id az6sm11102907wib.12.2015.10.12.07.32.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 07:32:22 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang Cc: linux-i2c , LKML , Patrick Titiano , Bartosz Golaszewski Subject: [PATCH 7/9] eeprom: at24: add the at24cs series to the list of supported devices Date: Mon, 12 Oct 2015 16:31:19 +0200 Message-Id: <1444660281-19150-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444660281-19150-1-git-send-email-bgolaszewski@baylibre.com> References: <1444660281-19150-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.177 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) },