Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1121625pxx; Tue, 27 Oct 2020 08:44:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIDD/kFQ8UJQWTcUDIS3YpQABM0ABFSCWauhg+5R142/ttHUC4HMpuSsX7Sn1Vu55++OMT X-Received: by 2002:a50:9b1d:: with SMTP id o29mr3016181edi.56.1603813482455; Tue, 27 Oct 2020 08:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813482; cv=none; d=google.com; s=arc-20160816; b=UBeOu2LJw//jeB1LVbCJC9bCP0BGcg3vcwavTaW2JoJjEpzS9dgbk2q7Nt0aEKi6to cLFrxGRHcSPKRJsNhsHr3saEunsIx9NJXioTRpABdVb7UOCSGkI7yVQ35KfWDKpB1OSU 3SXeu4e4cJzSX+eNZwtKAxVqRHU1knx9u7dZspfRckK25Apzp+0ArT6Wz0RVtIFPUptV BOHOtx4PVLCgekXQWMG0SpwzWhEnndCmra2EW8mN3PsBL8mmTiVjVEMFbC6s/zuzEgRm ZXmo7eZt7UETfUDCPnDZu+qIE36coPvQBnzfm5acZiDYhLie6sdATYXhtAt3zB/UH2GZ LBxg== 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=pkqv9jrkc0YvS/mln+yo4ULbx3duyuzbeIU5gy31+3cmbTViPaOxGv74REAk8IrLpQ nalsNyjqeeOl+gA5baDlVnhJPeZ6h1ccRZz1EEBeH3hsGh8xxr3IRsDDoWTB16oaHTYE BJKwJnq9HE7tsEZ2UnXpm/IV9gjncwe/lKGat2NIPGtod7OYM9Ln6nEDu2S1jTTgHEJO eRfeGKF7Go4JeNhNXoE/Da/GB9h8ahvuYrKww1ZOGQ35o+41pYFG1YWPR28c32YT08sa 4NA7/tUi/lPjiaFUAgGie5SEvauV6QhavXMPVJ3/KaHvxaCAYQdJrN5ej5Wd0Cn6k8y4 Wn2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tVBlcAq0; 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 bo6si1266613ejb.367.2020.10.27.08.44.20; Tue, 27 Oct 2020 08:44:42 -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=tVBlcAq0; 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 S1764871AbgJ0Or3 (ORCPT + 99 others); Tue, 27 Oct 2020 10:47:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:47106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764730AbgJ0OrT (ORCPT ); Tue, 27 Oct 2020 10:47:19 -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 58CB221D7B; Tue, 27 Oct 2020 14:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810037; bh=/UpGJSqZVZlNiVuhj4Mdx26q/M7kQMCbPS706LOA/yw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tVBlcAq0xegw8/w31P8kTZGSVVAN7tEOH/mhpBPXcHQe71kGSh2SdqWT4GjhpGDfZ 2XGLn2yNTTzR5m7SHLdSQm8Gto5HjaX4m/yjxoBhQD66X0YjY97T4WldUSLcT+FjHy TdI8Uf/hwN34WBrjB9CGL0dMAukKlgisin3aNBEE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Eggers Subject: [PATCH 5.4 407/408] eeprom: at25: set minimum read/write access stride to 1 Date: Tue, 27 Oct 2020 14:55:45 +0100 Message-Id: <20201027135513.892754128@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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;