From patchwork Mon Jun 6 08:48:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 69371 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1375440qgf; Mon, 6 Jun 2016 01:49:41 -0700 (PDT) X-Received: by 10.66.248.169 with SMTP id yn9mr23073552pac.13.1465202981505; Mon, 06 Jun 2016 01:49:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq9si25395843pab.228.2016.06.06.01.49.41; Mon, 06 Jun 2016 01:49:41 -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 S1752524AbcFFItc (ORCPT + 31 others); Mon, 6 Jun 2016 04:49:32 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36813 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456AbcFFItW (ORCPT ); Mon, 6 Jun 2016 04:49:22 -0400 Received: by mail-wm0-f50.google.com with SMTP id n184so81010462wmn.1 for ; Mon, 06 Jun 2016 01:49:22 -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=xwcAnYO9oM3SBD96Znxk2KvDrcGpaotsupDBc4r09OUkCjm4FIefXqhm8J/0ZWDwjX Fgp9+bRJyZHP8T2UWEwIJjGc5WSRl0FwFTu2C6Av4E9Bjhs5n5fsLlL7EoXy8cuuDgn0 FbaPETss24V1ug2es8KJT0N666QXwusEVny3cnLQlSEd/ucSD7mSL0fJzZFojboVTzsp RTqYVcw0fm0KzPhj28LGiPeYE0EKJds2QdGlq08V21sGhmJ50ppH454matUSnEqrlrq6 RJOanX4Mq8/MGOa69hwlcPXmd1ve94/ET2FnC4vjTPSVXBoigi71onbqPEqoRqqfu0Cp XwRA== 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=H4inub4zGHSYgVdCYTx4pj4G11INYEsnh1oepoMLI5pz+t2wIF13MayOBhVfn8HyA9 XDNi4SQwBLs8/Paz3DutEO7knRy59FyoZkG+u85+TpYbqr3Ahaqpj5Z7M1SWlqe/Gq1w L5V7TLsJDibwBs+lLINT+isziXR88HYnOjSeXraEFpbGzrU4boXMPo3kMq01npP/ZW2O 0jVZR03No1ujlTY5B9KacOTlLUUWqwDau4ALs4q8XjuwqeodyMoG/g7lIDzXaa1DECvy nwTjnruBzOsxd/a1VOZmuUQruXBGbIkrxv3L11W59izfnPimZNJjVqDI34X7Q90k6RIC HEMw== X-Gm-Message-State: ALyK8tI5UzSJxWQ204ApIiWu7eUVlXMhwCPAXP5mfjxq+d8ERssuYMmWLNo1xgjcu27DH3n7 X-Received: by 10.28.169.2 with SMTP id s2mr10799392wme.78.1465202961400; Mon, 06 Jun 2016 01:49:21 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id dd7sm19090384wjb.22.2016.06.06.01.49.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jun 2016 01:49:20 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML , Andrew Lunn , Srinivas Kandagatla , Maxime Ripard , GregKH Cc: Bartosz Golaszewski Subject: [RESEND PATCH 14/14] eeprom: at24: add at24mac chips to the list of supported devices Date: Mon, 6 Jun 2016 10:48:56 +0200 Message-Id: <1465202936-16832-15-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465202936-16832-1-git-send-email-bgolaszewski@baylibre.com> References: <1465202936-16832-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) },