From patchwork Thu Mar 24 14:46:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 64387 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp699720lbc; Thu, 24 Mar 2016 07:52:10 -0700 (PDT) X-Received: by 10.66.233.131 with SMTP id tw3mr13596456pac.89.1458831130081; Thu, 24 Mar 2016 07:52:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gi2si12693209pac.105.2016.03.24.07.52.09; Thu, 24 Mar 2016 07:52:10 -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 S1752729AbcCXOwI (ORCPT + 1 other); Thu, 24 Mar 2016 10:52:08 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:33108 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752753AbcCXOqZ (ORCPT ); Thu, 24 Mar 2016 10:46:25 -0400 Received: by mail-wm0-f51.google.com with SMTP id l68so278051122wml.0 for ; Thu, 24 Mar 2016 07:46:25 -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=XVpzZ3CQhrozV7lqFkgPGNyj6DeRxAj7s57X8nfGvlE=; b=tDGl/7Giqs0zIf9fL/S79XAvnDpCOb/LOZ6VMK0Tg9amS1pUvsbaMmgM+AB6UBu8CL IRt7KrUrr/05bNKVCaMyxMPZElAfA2kNdDvhigXnXuup9F0lb4+mBJ+2YoTZr2GzR3UP natnx0GDvuunx0XaBpqGbIKeJP6YW/0h69enBCz9hXSfK7f5SFqqkvImjHh0S1fD2tvY 80Jkyw0aGGBmj54n/Sc+EDWPweqme5J1zh/AhQFX8rVHmFY2mXvdCohQoVNzzOBkk7XW HMl1cgbxhoTNyQ1LHFPi/z4yHPWCTp2pyWQCg5/1RJTIt5gSKtbNTntvAYa7+8prQ4dH NIqw== 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=XVpzZ3CQhrozV7lqFkgPGNyj6DeRxAj7s57X8nfGvlE=; b=dPx7DERPqedrYxRfbWjHiV+41lIQeiCgM3f+Ts2uNsda1xIwxm1e6oDuH9k8W2vrkg 92qUh6BPCZ+bRWwd7xPpUWVCa/77+Tn4hLgkXE/DTNFDuoXunW3E6sEqBGPvcfHFoTzk ieyz5rB7OMjrgtHmulH+M8aGOomm5Nn8VllnKFNIwiNkIMZYjvZHwV2QFxaThGke0B+m MII0O6ning9DfUZ6NeWIPo3HWErYNfmdSxzYXvWnpcmbRD6TegVJ7YmRP7fViYwvIPF0 A9d5CM6q8QvoeuaB6uUDEMlA6qwrShSPSRxOEWuzmlitZYoQP2nxVVnUvDmlTrUFXN7X AwJA== X-Gm-Message-State: AD7BkJKo78XB7Q5oDtLSrk9E3eU040uxkQpgzRuuVqD8azFDs0q2xrTpROuSIB2gGe/o2b1b X-Received: by 10.195.13.16 with SMTP id eu16mr11118856wjd.140.1458830783627; Thu, 24 Mar 2016 07:46:23 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k125sm27255752wmb.14.2016.03.24.07.46.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 07:46:22 -0700 (PDT) From: Bartosz Golaszewski To: Wolfram Sang , linux-i2c , LKML Cc: Andrew Lunn , Bartosz Golaszewski Subject: [PATCH 13/13] eeprom: at24: add at24mac chips to the list of supported devices Date: Thu, 24 Mar 2016 15:46:07 +0100 Message-Id: <1458830767-23816-14-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458830767-23816-1-git-send-email-bgolaszewski@baylibre.com> References: <1458830767-23816-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 26c28c2..f620d33 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -119,6 +119,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) },