From patchwork Sun May 29 21:53:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 68799 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1113234qge; Sun, 29 May 2016 14:54:45 -0700 (PDT) X-Received: by 10.98.17.140 with SMTP id 12mr41439164pfr.140.1464558883474; Sun, 29 May 2016 14:54:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o123si31805656pfb.55.2016.05.29.14.54.43; Sun, 29 May 2016 14:54:43 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932733AbcE2Vyf (ORCPT + 30 others); Sun, 29 May 2016 17:54:35 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38747 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932687AbcE2Vy3 (ORCPT ); Sun, 29 May 2016 17:54:29 -0400 Received: by mail-wm0-f43.google.com with SMTP id n129so50785357wmn.1 for ; Sun, 29 May 2016 14:54:29 -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=ufsjf+5QrgJNjK4pWrP4QucOis3z76VMJ7ccNTVunV0=; b=tn6UZUWV1ddgwoyomPEaN7wCXpVVWhzaLpENOpVRF6hv80uk9z/Rt+84KP0tJGziCS X/YNEp7mvYILeUwJQolPeH9tUJ+HLypU82x8Kckjt7k3IjVJCqGhP7FcA5r0KX6qbc6I /yyk3Ui1fenJIWT6FWpNvT1gq/w3sCEhHdCklBAiO55sy6WbexahhmzIrwZtpA61kzn5 oVYBOngP0zN2NI9Xol42laijbAWduG2DKHivyRutoMEAAkr7Jgxda3L38sLOY3VLT336 I1yeoI9+8CzRKLv7ljqkKh5M5PXXRxqbw9g6yDPf5Mr4Y7ErUIXqyDvh/oTW4bN4xDQg xGOw== 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=ufsjf+5QrgJNjK4pWrP4QucOis3z76VMJ7ccNTVunV0=; b=bIQ2Ny328KzDH51+Sw0VYMCQUCBnXOEfE1WQl5heiasiQzFv1ZP71Pz77jzaqJlCcn bAwopQGdnomD3rTyLx9S18n2aSWHttFKb2GTDRAC1vDmiCmVKkuWp2fsW2voryhp1BB4 aYpU9gJOthAAa1Tym18EDTPS6Qys8xBZmOsV4qZ0gwYc3A9fKkITccMSWVE4um0y/y3Y rodSxmKAsSf8WluwHhGnoo2WhSdgYVqLoysEg8RyffQYosDtYsmVZTkxV/Ncgn/TnueV nXVAx7lNhSSSiMYxam3t++oPOXg00Xm0/55idh6sixBfiGXeRqLOKfjNL0BbYeUQDNy6 T6KQ== X-Gm-Message-State: ALyK8tLPoDWblpZDPzFlxzFiQy8ybgCAIPUrvICKNCwl2O+9ZobVTji3uvrUgJilSBP3NRAr X-Received: by 10.194.75.197 with SMTP id e5mr27495943wjw.154.1464558868626; Sun, 29 May 2016 14:54:28 -0700 (PDT) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id a128sm20490367wme.16.2016.05.29.14.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 14:54:27 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [PATCH 14/14] eeprom: at24: add at24mac chips to the list of supported devices Date: Sun, 29 May 2016 23:53:52 +0200 Message-Id: <1464558832-2262-15-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464558832-2262-1-git-send-email-bgolaszewski@baylibre.com> References: <1464558832-2262-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 Now with the infrastructure 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 diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index b3afe15..0b8fafdb 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -139,6 +139,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) },