Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp180227pxx; Wed, 28 Oct 2020 01:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKwSJjeo7rVG2EIdgb/KI8NH9e3PaxWajitnMJkEVnby0eNwW3e8lisL7HDQnMm6Dsvjjd X-Received: by 2002:a17:906:110b:: with SMTP id h11mr6843157eja.156.1603875074074; Wed, 28 Oct 2020 01:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875074; cv=none; d=google.com; s=arc-20160816; b=HMfEj4n3WqXJqKVDAixIdCpioS0GVS9M+dS4sLtl59diRGiDq6t1DwN1ubxB2/exSq nDjH+HQkCiqAQeKICh1A2Ct7Iy2CGBLNmFoCpuQlFB2V9I0P1AqZ5ZmDuupW9EeskEMY /mt46/+JssPE3qRWQrdhpuCO/6OTajTbQOou+L/2Rp+7Z49zs4lyDVHU2DPvZ61khuI8 ZOyJT7alRsRzcbFbEWzNEYszmOiSyuxVuS6OElrr9BsDdPBhDjKM+7Q/ksbXsDMAJLAR FpSWm290SRBLqOPPdn3WaM+3L7TSVlKrM7OTYoNvF215pcLtU+aR2+J3Y5vb4VDDnkTr 3iow== 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=FmPMsE+nA4sX8hu8L/+jn6H6iJdfEnusKuhPXYjLXiw=; b=zXmhASWtFWcFrLD6xBHpG7J1YyuhBvJ2R6UeMGMR5C3ffayyCABhAOEz9AAXfghihU QL9CWdFcoNVnuWbPUX0m7/oLzfRQ4ikANy1IbGGzUg/uRe2/6pPPQSGhGm4ddgOm5LP7 AZWbGiNjO98dcnlROAFqi/C6w+Vvor94cAkJSfsU833qUsvAKusQgMCmTi7Rx89h/cML hQW21RRhSnzdfXki3g+/wRAjeI1QD6OmKTQq9X9ErsMdwVeJ6ovHIhhgBXWVKq29b9Pp dGmVv9T8jYGwfYmMqS7i15BG7d64z/c7AGsWIdrixcF3ySpmGXrMlU/5djulzmu0udh4 ueuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ifzgtQjJ; 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 s18si2795558ejd.147.2020.10.28.01.50.51; Wed, 28 Oct 2020 01:51:14 -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=ifzgtQjJ; 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 S1756398AbgJ0ONC (ORCPT + 99 others); Tue, 27 Oct 2020 10:13:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755063AbgJ0OIL (ORCPT ); Tue, 27 Oct 2020 10:08:11 -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 55E402072D; Tue, 27 Oct 2020 14:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807691; bh=LBnUMiWJHWRV4YeY+H4Jo2sueEeXj3vrLl2lM4eVAEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ifzgtQjJ30wR5mEI3eydW9eFn3TFzOlL7EgFeuHia/15bdsL7jbTGmjXojLtcXMdH dxO5KCkog06PSqkLefKLY7xd3FOvSAAB7nIVXF/R0UHIbZnklRjBnlM5Cl4s1yXotL vENgL3GbtueYj9UTi6FFOcE5Uof5AWkgjDw+tNWI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Eggers Subject: [PATCH 4.9 138/139] eeprom: at25: set minimum read/write access stride to 1 Date: Tue, 27 Oct 2020 14:50:32 +0100 Message-Id: <20201027134908.717034403@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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 @@ -355,7 +355,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;