Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp386644pxx; Wed, 28 Oct 2020 07:14:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhn7X5DZUJx9WVA5rf5uhzr42mfeBBFjltsgR9llqm/r+A6egeFFhM+zjfuTGCxld9LtaZ X-Received: by 2002:a05:6402:195:: with SMTP id r21mr7851158edv.164.1603894444509; Wed, 28 Oct 2020 07:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603894444; cv=none; d=google.com; s=arc-20160816; b=gYPHuc6tRHFI0jbmB3gQdqhkLvegHP/1gvzypKzP560Ez66OH3rbx+nXR64d0auw/o AbVxnqqGvoFuGLdTKiDZ/74ZL7U9VAlX6NadbDVCHyFB48xaWPa8+VPK/awWiXL2ort/ bLBc9d+TtMrupudmHYgKJ0TapGe3A5gIq9Vsb68omIGswju9DdHmGo5nCU79J6gIu7eh 7zl8yT6Q0aRGwCG1lfziR+6/SAmHHO4v4lDT/KatKSevVtUjF1qLPdmSIogm7UZC5Ap9 d3Zecobens5Xr0/hLBTSjOfrC9gTPFFsDGhjNv8X3d9QW72G1x2ECyQNWZVmdxnmVr1l Q7hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XClHqxUqnkHl14Z1Kzhwng56VOd4bnCA3jKmz5fnZVg=; b=j7G16HCdmtgXY8vq9VkPlLq1cjIiwhdKq7FUga41o+8xy0OZVWAUmSgKpimxhqqfBw ZiRJHgVOMU5sWBCAIKmeklhm7kgmh/Gxwsr/yRSPc4wCLK1Vs/4iFeLMUb3JXfuSaleX ElARou3yrjpfHbiyMTb8RHu5EIwc9/v1eswGTdgEq7QIbL57dBvHz77GWSZ4wtyxdt7F ooKvt9zoQWiLLDiavFtBvD8KmVBTnsBtcgvhnoEeH+tRNy2loGz3DxVFBzG3rkm3BbUJ W9Kd8/0B5/pj4JSUTHd+8f1fLQpMB/rPxkKDPz890z5I7d4jneE4n5pDUZMv3EA6YB75 uWUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EOOmZabi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si2879649ejg.48.2020.10.28.07.13.40; Wed, 28 Oct 2020 07:14:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=EOOmZabi; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S368967AbgJ0P7N (ORCPT + 99 others); Tue, 27 Oct 2020 11:59:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:54472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1796285AbgJ0PRK (ORCPT ); Tue, 27 Oct 2020 11:17:10 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 8E68420657; Tue, 27 Oct 2020 15:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811830; bh=/UpGJSqZVZlNiVuhj4Mdx26q/M7kQMCbPS706LOA/yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EOOmZabiHIqizlPuRrIZ8pvLPPz2KGZwYMhqCu30vrJy6vJjfH5918iFw8XH1ZaSn fP90ycHijWv+Zybq8nF4BxO+yedRjeUGp9ZMbc5GXL0hsna1yjpi327iYGwh7+dJWR HlzxGTsVU/I7/5jA3ZBKfXbV/b87CBT8DPMlpRaE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Eggers Subject: [PATCH 5.8 632/633] eeprom: at25: set minimum read/write access stride to 1 Date: Tue, 27 Oct 2020 14:56:15 +0100 Message-Id: <20201027135552.465392022@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Eggers commit 284f52ac1c6cfa1b2e5c11b84653dd90e4e91de7 upstream. SPI eeproms are addressed by byte. Signed-off-by: Christian Eggers Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200728092959.24600-1-ceggers@arri.de Signed-off-by: Greg Kroah-Hartman --- drivers/misc/eeprom/at25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -358,7 +358,7 @@ static int at25_probe(struct spi_device 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;