Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2468800pxj; Mon, 10 May 2021 03:51:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmFXxsodxU1oSlkXdDCXW6LPcV2AFLmGAKfUOVpX5MyQj8+d1qcwWpWZIyPYVzgjfcoYC2 X-Received: by 2002:a17:906:f742:: with SMTP id jp2mr25530737ejb.199.1620643881023; Mon, 10 May 2021 03:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620643881; cv=none; d=google.com; s=arc-20160816; b=OuCDQ/6Ln/gbqBjrqZaS2KHR64zejdkR5grkGApLFlaOaxIeTDvqG5LnCCvxBCgNlH ApI1LPuj1lGcg5kl7k8aW0Vj+/+nZJR+6aYJNl0GtBK+MEOWajrAgjVOvGtnqBPynXEa Hqf2e2VO2FkQVtWJ+pyi8Rmo0aEFQtYB2JAXKa7yxD+Oc29Ud4sPniDHYJG6AD8WMlSL W5JTuJZm9o2IOd7yEGFOE4+cax2PkZvp/52wToDUw6UQ4FdUiBMyvbMHL9UafH50XYpl JTRSiG7w1jSGNJgx58qmyhEpoZUH3/V+gxBcPAhE+GJu6iPNgZqNi1AiDLZmET9pb1Fg xCuQ== 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=tH0HirXl1IduBflyhGzSAhP80KjZKOlDeIhMrU0kAGk=; b=axWxUJCJewdIRKkw11Du4/Dq5qqaB3+EJ5H19QPYhSt3+0xFZO8StmH/wivAXHuGo8 MPga1wrlwEwfZNJXNO3FhpP2sQVIh1zLL8GO1o1GfDUxURZ9jLLDfigHQ5xo1MUboOxl YCzyHBZPHYRe/HmojoDhe54LWTR0EZl6KikeolgTsifo7Juae1KXsrMQCfGgqw4aCSvV LVNjheH2ldTEth336s1ueLWSLmt7SGtdXG9lt0F318LlY74cLsmaHXIg88aNrViL+wlO 0rWArp3fBrJxrSdDCKnZtEgMJBTlPLHm1gOMcyJvz8xcQj1gh+RaqibAe6Inr1Pn8nzf 3UZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UfYIJ2NK; 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=pass (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 v28si1882790edx.407.2021.05.10.03.50.57; Mon, 10 May 2021 03:51:21 -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=@linuxfoundation.org header.s=korg header.b=UfYIJ2NK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbhEJKu6 (ORCPT + 99 others); Mon, 10 May 2021 06:50:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:52048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233024AbhEJKlB (ORCPT ); Mon, 10 May 2021 06:41:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 539AA6101E; Mon, 10 May 2021 10:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642707; bh=hQcUcGgIXcYuIh6tlF9KlkyfZzEOTbA9/nIS2zC+DXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UfYIJ2NKDANsh2JhAlSVvwFJ3afqhl8V2cib8vRvQWoe9tXB8xvTDRzpd23fzh7Ry lGITvxRl7rAWz4VPdoNNAYD3R/L11m6WeLa0iqYYguJaVjK1BSURLBcpNUSY6PZFc1 qjPRwiaTGgmadNUsp4ZN36DVzxy+IapKz+EgN6OU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Pratyush Yadav Subject: [PATCH 5.10 019/299] Revert "mtd: spi-nor: macronix: Add support for mx25l51245g" Date: Mon, 10 May 2021 12:16:56 +0200 Message-Id: <20210510102005.482391425@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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: Tudor Ambarus commit 46094049a49be777f12a9589798f7c70b90cd03f upstream. This reverts commit 04b8edad262eec0d153005973dfbdd83423c0dcb. mx25l51245g and mx66l51235l have the same flash ID. The flash detection returns the first entry in the flash_info array that matches the flash ID that was read, thus for the 0xc2201a ID, mx25l51245g was always hit, introducing a regression for mx66l51235l. If one wants to differentiate the flash names, a better fix would be to differentiate between the two at run-time, depending on SFDP, and choose the correct name from a list of flash names, depending on the SFDP differentiator. Fixes: 04b8edad262e ("mtd: spi-nor: macronix: Add support for mx25l51245g") Signed-off-by: Tudor Ambarus Acked-by: Pratyush Yadav Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20210402082031.19055-2-tudor.ambarus@microchip.com Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/spi-nor/macronix.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -73,9 +73,6 @@ static const struct flash_info macronix_ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) }, - { "mx25l51245g", INFO(0xc2201a, 0, 64 * 1024, 1024, - SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | - SPI_NOR_4B_OPCODES) }, { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },