From patchwork Thu Mar 24 16:19:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64401 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp756677lbc; Thu, 24 Mar 2016 09:20:47 -0700 (PDT) X-Received: by 10.98.16.71 with SMTP id y68mr6292238pfi.106.1458836447832; Thu, 24 Mar 2016 09:20:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c90si13091107pfd.233.2016.03.24.09.20.47; Thu, 24 Mar 2016 09:20:47 -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; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757530AbcCXQUq (ORCPT + 1 other); Thu, 24 Mar 2016 12:20:46 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38104 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757017AbcCXQUA (ORCPT ); Thu, 24 Mar 2016 12:20:00 -0400 Received: by mail-wm0-f43.google.com with SMTP id l68so73708054wml.1 for ; Thu, 24 Mar 2016 09:19:59 -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=uDKXhHJb9QysbKAJmnJ1sFPWBcQjUzOfxW3VE+Ff3lg=; b=rEx/HDSpLN0I+gitXk2337ZrE/ZeyxYwDgRTM3jVbXGR2aotCUY6H//u1l/rN5kBJR IrsYcg46NsH/xVXbfSrGo97BDfp0ImDiska/gM+JQRKfP0yOOZbn0Kqb4AeNY/TE3rTs snmlOaSG1v4uTsMY565dh016wHQagpzkpTY9g6Ot75oZoEL94bjYpnEyrh92wnYB5v/R VSSzoLbwokTijC3vQtUKjL6OK4YAnkfvpRhGEstq/lmMyFHOC+OlEoM8dK2z07Lh2rO+ aqWEHGV24ygXH04vRN9vti9D9CauODuELgEDn+v+h70BLXHEhbF2eHYMC+pHEn4IL5f4 pYgg== 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=uDKXhHJb9QysbKAJmnJ1sFPWBcQjUzOfxW3VE+Ff3lg=; b=ejuxEyCMwGVDahcZq2JFzeMgdFugMb4r06PykldvbQ9K9402CR88qI1WvPqR2l6NEx RL1lWqriX63r716S+qAzcrTMMkAilhTvkNDR4d47/VmclT3N/MEMXjaey6ES5LuFb954 qPGMzr5d+Eprq0MsZJ2VVpJK+jVSvZBi09ter+R8FTdrw2hhAmzbTXSKxmugtqkTj0B8 tJqKrG/0+5rkx55ucCwEK+MROJi1uSuif2a3nrf8Hv3Ji39zQ4K0sUHP4xbXFIoaE1zJ c3QX5vlzZo8nm472qPY6XcA+SUifd3thOQQw22mr6BZ68MVD0dQiKTBdp04h8cO3Cfcx PEAg== X-Gm-Message-State: AD7BkJJ+QOgGCq9/ynoHiaParKkqV2m6PvzSN7iFRsIq1ASvQoKq9ukF25pp4vLMyQnyGLZL X-Received: by 10.194.112.34 with SMTP id in2mr11841697wjb.160.1458836398982; Thu, 24 Mar 2016 09:19:58 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k124sm8370718wmb.11.2016.03.24.09.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 09:19:58 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH v2 13/13] eeprom: at24: add at24mac chips to the list of supported devices Date: Thu, 24 Mar 2016 17:19:43 +0100 Message-Id: <1458836383-6668-14-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458836383-6668-1-git-send-email-bgolaszewski@baylibre.com> References: <1458836383-6668-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 Now with the infrastructue for reading the factory-programmed mac address in place, add the two available chips from the at24mac family: at24mac402 and at24mac602 to the device ID list. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.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 edec236..558b498 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -120,6 +120,10 @@ static const struct i2c_device_id at24_ids[] = { { "24c02", AT24_DEVICE_MAGIC(2048 / 8, 0) }, { "24cs02", AT24_DEVICE_MAGIC(128 / 8, AT24_FLAG_SERIAL | AT24_FLAG_READONLY) }, + { "24mac402", AT24_DEVICE_MAGIC(48 / 8, + AT24_FLAG_MAC | AT24_FLAG_READONLY) }, + { "24mac602", AT24_DEVICE_MAGIC(64 / 8, + AT24_FLAG_MAC | AT24_FLAG_READONLY) }, /* spd is a 24c02 in memory DIMMs */ { "spd", AT24_DEVICE_MAGIC(2048 / 8, AT24_FLAG_READONLY | AT24_FLAG_IRUGO) },