Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp156360ybg; Tue, 28 Jul 2020 02:31:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU88y/iibeyE2EZK385bcHbxO8o2lw+rGQH388kMZd/7wCjxral0fC6waagBJ3doXZBxzC X-Received: by 2002:a17:906:2e0a:: with SMTP id n10mr7584985eji.18.1595928694915; Tue, 28 Jul 2020 02:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595928694; cv=none; d=google.com; s=arc-20160816; b=aZyVPy7A/XkAf3BkArOzWEPaYWvAfTSR/zBROeocjPMDCrJ30jaykUslV4jaJZvWi0 293p5BVWhFTGbSTUv+3teanxNvQSEUcJyssbKyyWgKTAB7F/IP4tucMD8azZjTXDPvw5 2P2J28QDtlG8e5upMb8VM2XcImkGfsRfgGu5ab0sF/7qkWC5sFCDSZP/mXOT+lf071aq RWJ5oc/6exuYAMcxnhkiI/XovRz4hJwHJc/S61XGDi6GhVrgJyDSv/mWzl7X0d59Scn/ g7yz8UnO4ZqtglQTe4gsyp60X+lXdpZIiA/oD3wbnQSP+HfjkuzXz5Dr2SVFHp3GMnnE RDow== 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 :message-id:date:subject:cc:to:from; bh=dbXgxAQ+Uz9+KJot5484ZvgnVnINzZR0BPEQdEWg5NE=; b=uqEFEFwyppFg6UqgCdOVoC/D+6wbaREuS6Ux7aOl3GCpjBSJU8rGEiMG9DBvKKlaBa XDJ2o1mhKJdns5t5yRYKVAIBUOxtLRwJ/mEIEOlySGNiDpoq+ZzuakaKZ9G8+A8A+pjx d8j6cm0gL8pag7eBdt3IdjhmDpwGJj7rQ5T7dZKVwVKMEoSCRQk/8Y4dCU1UNr5VZS83 p26p4eG7OcB2f6+fEiQH/kcX4JXOg3FrNfxz1iWcvJahYGbgKIyBFzGLNuL+HOiHhK77 5zVWGj3lk/8eVF3+iH/Zko8TckVNgl6RR5W0W/t+tWKPXJmnR4PrC7N8Ep4zhYaitDdU V9wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si6750181ejk.642.2020.07.28.02.31.12; Tue, 28 Jul 2020 02:31:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728247AbgG1Jac (ORCPT + 99 others); Tue, 28 Jul 2020 05:30:32 -0400 Received: from mailout10.rmx.de ([94.199.88.75]:56279 "EHLO mailout10.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbgG1Jac (ORCPT ); Tue, 28 Jul 2020 05:30:32 -0400 Received: from kdin02.retarus.com (kdin02.dmz1.retloc [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout10.rmx.de (Postfix) with ESMTPS id 4BGBH86rDNz37nY; Tue, 28 Jul 2020 11:30:28 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 4BGBGw23Tfz2TTLd; Tue, 28 Jul 2020 11:30:16 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.116) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 28 Jul 2020 11:30:15 +0200 From: Christian Eggers To: Arnd Bergmann , Greg Kroah-Hartman CC: Christian Eggers , , Subject: [PATCH] eeprom: at25: set minimum read/write access stride to 1 Date: Tue, 28 Jul 2020 11:29:59 +0200 Message-ID: <20200728092959.24600-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.116] X-RMX-ID: 20200728-113016-4BGBGw23Tfz2TTLd-0@kdin02 X-RMX-SOURCE: 217.111.95.66 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SPI eeproms are addressed by byte. Signed-off-by: Christian Eggers Cc: stable@vger.kernel.org --- drivers/misc/eeprom/at25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 0e7c8dc01195..4e57eb145fcc 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -358,7 +358,7 @@ static int at25_probe(struct spi_device *spi) at25->nvmem_config.reg_read = at25_ee_read; at25->nvmem_config.reg_write = at25_ee_write; at25->nvmem_config.priv = at25; - at25->nvmem_config.stride = 4; + at25->nvmem_config.stride = 1; at25->nvmem_config.word_size = 1; at25->nvmem_config.size = chip.byte_len; -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler