Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2010335imm; Tue, 10 Jul 2018 11:32:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyyfAWpW8KnALC+OvSafre7a6mBDj9IhpI1O1Nu6hiYABMx29yZZBfRG1GNjKmf/Ajm38O X-Received: by 2002:a63:a1a:: with SMTP id 26-v6mr23898247pgk.221.1531247552452; Tue, 10 Jul 2018 11:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247552; cv=none; d=google.com; s=arc-20160816; b=ThbujPGi/jB/tkNBXsOUif5KMm0nGmYwWCsuLg89pHhY4g1zHj1tZIvxulcHBEAdye U0N+Fr2rhnK4tSD26NxBF2mc88ke0nmRA6x1K9PBE2nA8kLuZBCX7/meMe8DqAoqka6q p2qTxIuPADTy0Aab9PSO9+Gufcq07TaAruyHbCpZxd/zoZxnboJAuZJex84VN9xt0b2W mAlDd0ZjGix+Rr9zf1rFnS3g0nmJGLYvd6ibPQMbXdduoH/ANQ4MtVsBIgw1/r48KhiZ pAOOSJrTiF1h3fZSKIbYzoBPH/Y9DfviCrJMDkGD8aPFXpXBzLElmgzC3lf9Cyvf/u0D DWrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=j4+zfdFGRhZF1vwFt6yUq56q4NYrIxJ6inYzp5gaX0k=; b=dWhouXH+WKLivYmnbIw5xWla+oQb5DhRw1sSd/BNvLeVty+GJn70RvupTSV3zdzHwu PDDXhDasRfzTnU3xMpXe4h0QaOihttN3bqUfBp2UhTs5A/BcEK9pCFvO1nB+CyFnk8aA /vlK1X5xPw7hsJeiWTq0SIzfReQj99akNGMURY5ojoVrLvmhmSg0gIChzarn5VX1nHtf ukStoE07WbjDl6HgGNsrfUR9li+KXrkqJOF/pnz9Io9YqMj+eoi1Fimo/AcVQVDizJDU SYQpe8pS9a+06BO+RPza+iBaTMsAt/q1i446wkTZw2gCLkNAQ+NfN0QerimKcl5DFq4D f64g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2-v6si15813180pga.141.2018.07.10.11.32.17; Tue, 10 Jul 2018 11:32:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388324AbeGJSbS (ORCPT + 99 others); Tue, 10 Jul 2018 14:31:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45770 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732920AbeGJSbS (ORCPT ); Tue, 10 Jul 2018 14:31:18 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EEDC1EC2; Tue, 10 Jul 2018 18:31:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tokunori Ikegami , Joakim Tjernlund , Chris Packham , Brian Norris , David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, Boris Brezillon Subject: [PATCH 4.9 48/52] mtd: cfi_cmdset_0002: Change definition naming to retry write operation Date: Tue, 10 Jul 2018 20:25:16 +0200 Message-Id: <20180710182453.875946710@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710182449.285532226@linuxfoundation.org> References: <20180710182449.285532226@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tokunori Ikegami commit 85a82e28b023de9b259a86824afbd6ba07bd6475 upstream. The definition can be used for other program and erase operations also. So change the naming to MAX_RETRIES from MAX_WORD_RETRIES. Signed-off-by: Tokunori Ikegami Reviewed-by: Joakim Tjernlund Cc: Chris Packham Cc: Brian Norris Cc: David Woodhouse Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-mtd@lists.infradead.org Cc: stable@vger.kernel.org Signed-off-by: Boris Brezillon Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/chips/cfi_cmdset_0002.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -42,7 +42,7 @@ #define AMD_BOOTLOC_BUG #define FORCE_WORD_WRITE 0 -#define MAX_WORD_RETRIES 3 +#define MAX_RETRIES 3 #define SST49LF004B 0x0060 #define SST49LF040B 0x0050 @@ -1643,7 +1643,7 @@ static int __xipram do_write_oneword(str map_write( map, CMD(0xF0), chip->start ); /* FIXME - should have reset delay before continuing */ - if (++retry_cnt <= MAX_WORD_RETRIES) + if (++retry_cnt <= MAX_RETRIES) goto retry; ret = -EIO; @@ -2102,7 +2102,7 @@ retry: map_write(map, CMD(0xF0), chip->start); /* FIXME - should have reset delay before continuing */ - if (++retry_cnt <= MAX_WORD_RETRIES) + if (++retry_cnt <= MAX_RETRIES) goto retry; ret = -EIO;