Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2475491imj; Mon, 18 Feb 2019 06:40:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IaOaeDraQ4NZhzvJsVUixY+AHKmgMJBEq+zhqyrD79T7js+6jkaU/dhiuLQbfa+8u8E6Gif X-Received: by 2002:aa7:8281:: with SMTP id s1mr24325277pfm.120.1550500818546; Mon, 18 Feb 2019 06:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500818; cv=none; d=google.com; s=arc-20160816; b=TBms7tqDqlPdr+wjQ29+dT3k/lRXYWhHIrWr5UK9Is+LFmckoOLfPT5hy6vkcusRPL TK72ztWfRP4a59bbpJDDEqmzFyak5ZguZS9wXTMaCtaBRNQpO0OyJIZgBn32jR+kR/bM 7KPxrZ5Scu849nzOau2dZ2/EJlKp6dlRQefPHivUSya1ibsi+ZOAMm29FOtJE/+XVYAa U0kwUx46wQ49CWBGjhgcgUWeQawhYXuEWFED5YnQTgK5+xw/QlMtNaZW/4w5OI2FmEgi 9pxXku+4lWq3U9IyHf3OPNZMqvXWt1jfynGdnMlvbV6MrzIkrihVs5hhleqbvUzUlu4O Aijw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bjC1x8cuRal5AFlMbVJYKJYA53GAI3dxtf1vAn04XuY=; b=NONPqSfsFYBx9JQ+k9IWj3p7m75+9964EQcpuEynV/0NuDmf2AHctSJ/u3Q8q12d3r aQqTTILnx6xDHtXgbNHwxCkjMn+xA1Velhlmhr/x5djMwtgAAipQfhy8HW3pXjL1Tn+j QGpB1cU+MulkPkIEB4XkbDUEDrCbL2X47NkkDtCtC2ZGleSTfUZ1OfILN2cd+gCNhvp2 0TdbI4dvIe6hO5Cn/ntDpo1Ks39yBtssR1Nu1Ir8XUfwRMhlerrzLz+xLVfx/jVapgmy oO+yvw6hTma5OohAYoNpiLvOm8n1znPStx4p0fvk5Y1HB+ZIbv3ZmxjUaTRAl+XQIrlT 6EPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AHesVHQ1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si2811728pgv.293.2019.02.18.06.40.02; Mon, 18 Feb 2019 06:40:18 -0800 (PST) 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=@kernel.org header.s=default header.b=AHesVHQ1; 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 S2387639AbfBROiB (ORCPT + 99 others); Mon, 18 Feb 2019 09:38:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:34768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733288AbfBRNyu (ORCPT ); Mon, 18 Feb 2019 08:54:50 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00DBA2077B; Mon, 18 Feb 2019 13:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498089; bh=Yzw5b912Y6czzP3hX9x8RssitF/RzGwOtwlqrN9fEb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AHesVHQ13Xk5UoE4is+G76snRg4iO2WA2MhPcIgIlS0pHYM01aQJjUHSA+UXU9S/H cOoHogZSuAkIU4Vc/ZKZfYKh6tfs5iPpMqioLjDnNPXEOp4F9F2sCC0YMM5mynID9o 5jKAu0Nq7Ipes1e72EFDrP2lxdNStgzey6uP+ApA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Bunk , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 4.14 02/62] eeprom: at24: add support for 24c2048 Date: Mon, 18 Feb 2019 14:43:08 +0100 Message-Id: <20190218133506.003435422@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ commit 37cf28d3b5bca1b532a0b6aac722e7f2788a9294 upstream. Works with ST M24M02. Signed-off-by: Adrian Bunk Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/misc/eeprom/Kconfig | 2 +- drivers/misc/eeprom/at24.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig index de58762097c4..3f93e4564cab 100644 --- a/drivers/misc/eeprom/Kconfig +++ b/drivers/misc/eeprom/Kconfig @@ -12,7 +12,7 @@ config EEPROM_AT24 ones like at24c64, 24lc02 or fm24c04: 24c00, 24c01, 24c02, spd (readonly 24c02), 24c04, 24c08, - 24c16, 24c32, 24c64, 24c128, 24c256, 24c512, 24c1024 + 24c16, 24c32, 24c64, 24c128, 24c256, 24c512, 24c1024, 24c2048 Unless you like data loss puzzles, always be sure that any chip you configure as a 24c32 (32 kbit) or larger is NOT really a diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index ded48a0c77ee..59dcd97ee3de 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -170,6 +170,7 @@ static const struct i2c_device_id at24_ids[] = { { "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) }, { "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) }, { "24c1024", AT24_DEVICE_MAGIC(1048576 / 8, AT24_FLAG_ADDR16) }, + { "24c2048", AT24_DEVICE_MAGIC(2097152 / 8, AT24_FLAG_ADDR16) }, { "at24", 0 }, { /* END OF LIST */ } }; -- 2.19.1