From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77358C433FF for ; Mon, 5 Aug 2019 05:19:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DA672086D for ; Mon, 5 Aug 2019 05:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564982365; bh=66tYTJETfRcsuAvzorun8MVQgjF4GtiQ0wqlWTaZGAE=; h=Subject:To:Cc:From:Date:List-ID:From; b=NRDXdKZHfw7jZu2qIBL7n/UE5qXXXPfHvHeu1yleYh1yuVIxWhcVyQq6wONTdfjAk KBjbsbhpXxB5igayRRzt944lta0Tzg8nE2gsTFZvaVcrJkOYHuw38R8Oyy9f2wsLlP DEygrf5cY/Lh7WwFMGRatM3KT9l1hilQ3IAHPFN0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbfHEFTZ (ORCPT ); Mon, 5 Aug 2019 01:19:25 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57961 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfHEFTY (ORCPT ); Mon, 5 Aug 2019 01:19:24 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9E1062026A; Mon, 5 Aug 2019 01:19:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 05 Aug 2019 01:19:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=j6qgmj Y/veA3+GqnvLJ8s5UF7A08dN+PnDGXpJIyF6M=; b=OSZ2Buj6xry2Tz4uEbjgQV vR2RnlNfF9I4ApUdJXsoQ1hR9ErTadCWTQWNdQQotKlq8tJkrw49/XsxwLFkE1v3 WXhXQdpiPXjOJ8GB1j1hmpoq4bo5IzRkjRuIM01X01uKLc7fkm4fXs3NKg8OuHsE XQ19yxGOImCw+3uYs72hPxCuCJSfjl2KAcwH0ClVvIv68tMA1g/Ahe+uBPIuWKm8 25aLboOF/8SqT+WtZVe48gKnANs8oQDydck4i6vtOKHojPOS4eXjJF26N9t5Lq1t zODa8NC0uTSaqx8yyOCvQzoH9fT4DF2yII5aGFlHPjz6rmsV3fxSpzxtB5v03GOA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddtiedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucfrrghrrghmpehmrghilhhfrhhomh epghhrvghgsehkrhhorghhrdgtohhmnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 1778180061; Mon, 5 Aug 2019 01:19:22 -0400 (EDT) Subject: FAILED: patch "[PATCH] eeprom: at24: make spd world-readable again" failed to apply to 4.9-stable tree To: jdelvare@suse.de, andrew@lunn.ch, arnd@arndb.de, bgolaszewski@baylibre.com, brgl@bgdev.pl, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org Cc: From: Date: Mon, 05 Aug 2019 07:19:13 +0200 Message-ID: <156498235374229@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 25e5ef302c24a6fead369c0cfe88c073d7b97ca8 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 28 Jul 2019 18:41:38 +0200 Subject: [PATCH] eeprom: at24: make spd world-readable again The integration of the at24 driver into the nvmem framework broke the world-readability of spd EEPROMs. Fix it. Signed-off-by: Jean Delvare Cc: stable@vger.kernel.org Fixes: 57d155506dd5 ("eeprom: at24: extend driver to plug into the NVMEM framework") Cc: Andrew Lunn Cc: Srinivas Kandagatla Cc: Greg Kroah-Hartman Cc: Bartosz Golaszewski Cc: Arnd Bergmann Signed-off-by: Bartosz Golaszewski diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 35bf2477693d..518945b2f737 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -685,7 +685,7 @@ static int at24_probe(struct i2c_client *client) nvmem_config.name = dev_name(dev); nvmem_config.dev = dev; nvmem_config.read_only = !writable; - nvmem_config.root_only = true; + nvmem_config.root_only = !(flags & AT24_FLAG_IRUGO); nvmem_config.owner = THIS_MODULE; nvmem_config.compat = true; nvmem_config.base_dev = dev;