Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F11FCECAAD1 for ; Thu, 1 Sep 2022 06:06:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E59C849CA; Thu, 1 Sep 2022 08:06:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GoujleQZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 39267849CA; Thu, 1 Sep 2022 08:06:10 +0200 (CEST) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27E30841AB for ; Thu, 1 Sep 2022 08:06:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tkuw584924@gmail.com Received: by mail-pg1-x52e.google.com with SMTP id b196so5750429pga.7 for ; Wed, 31 Aug 2022 23:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=wMp0J0YYmW3wl6LT954JUnrb/qEn+cBr5jFjLCXF1Rk=; b=GoujleQZ9Z/bp4Y5cBjRzbEcUOyTF2JEeUeltpWnk8aaEtlKD8wiU81W17EC5hlGE3 jJZZ1ExKdnm1zMh0yedZZ5uNJosp2fB+1cTAiVL++LjkRymprAdHToXlZEtluHdlgeyA eATxcv/pjT7Rldj7o/B6QfKxhcF1KLk+LPI1IUaer1B/FBeFSSsY70Eeeuc5UBALYQs8 UfHyKFv7ROjayuy5ocnVWlRD72kUykJXxln/XSrwJ70KbuOS4QhRTWy6wrD2IaQ3HcE6 ZiQbTRNZtmTt5CQCHj/0xSAxKs3KpiYkrc5sMCLEm1UgyMhCtlLmN0PitRka86wfOVCg qN5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=wMp0J0YYmW3wl6LT954JUnrb/qEn+cBr5jFjLCXF1Rk=; b=shlLF1NwaoxHISCrxeXMDnccyc8NFhYvtQApFffgnY95A9L12FoDLCdtv6kdEtf6R1 vtMptQBr/HZ6Fq172uti22bYXq9x3iTn5FTufkVl9llxqiLxc29uLcdKOSk2F+9/SIQC Yu1hQdrUBcxaKgErAKcWerW7UE5YOwwSZAYzIP5tKS/5Nmqz+hriVVDT2LVj7dKD44Bw lPf1yItYQeT+Rof4S/yWGLAUrS7TQDktmQifxRqN48sXKZ50eeHY4zvfKk3nUCeVY0Kc ddlmgsjG13wDWKX3QaHTtSDwfDiy1Az3QIDrvXJ5+5WlLHrp4UTaawzP4AXINvRfF1ND MPFw== X-Gm-Message-State: ACgBeo3GLl7WXWlF8PssRVwMeLk2Y4tdRgyetrgZC2M9JAqfkyCLJT9q eaemIQ5CbuYovH4A4o1i+a56FbLvrps= X-Google-Smtp-Source: AA6agR4m9F9E8Vwo4LarpC0cPNjtYea+hOPxrdgtx5jLeEQmAeVyKAwfTydAxfmwKqdFKjDLS6wSww== X-Received: by 2002:a05:6a00:16cb:b0:52b:cc59:9468 with SMTP id l11-20020a056a0016cb00b0052bcc599468mr29720977pfc.46.1662012365179; Wed, 31 Aug 2022 23:06:05 -0700 (PDT) Received: from ISCNPF1JZGWX.infineon.com (KD106168128197.ppp-bb.dion.ne.jp. [106.168.128.197]) by smtp.gmail.com with ESMTPSA id g194-20020a6252cb000000b00538505ff705sm6991522pfb.91.2022.08.31.23.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 23:06:04 -0700 (PDT) From: tkuw584924@gmail.com X-Google-Original-From: Takahiro.Kuwano@infineon.com To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, vigneshr@ti.com, pratyush@kernel.org, tudor.ambarus@microchip.com, tkuw584924@gmail.com, Bacem.Daassi@infineon.com, Takahiro Kuwano Subject: [PATCH 0/4] mtd: spi-nor-core: Track flash's internal address mode in s25hx-t Date: Thu, 1 Sep 2022 15:05:29 +0900 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Takahiro Kuwano For S25hx-T support in Linux (single die package only), flash's internal address mode is not changed and it is assumed as factory default. Current implementation of u-boot forces to 4-byte address mode while some parts are 3-byte address mode by default. That will cause a problem when we use u-boot to load the Linux kernel. This series tries to avoid the problem, by porting two changes from linux [0][1] and additional rework. [0] https://patchwork.ozlabs.org/project/linux-mtd/patch/20200525091544.17270-7-p.yadav@ti.com/ [1] https://patchwork.ozlabs.org/project/linux-mtd/patch/20220725092505.446315-6-tudor.ambarus@microchip.com/ Takahiro Kuwano (4): mtd: spi-nor-core: Default to addr_width of 3 for configurable widths mtd: spi-nor-core: Track flash's internal address mode mtd: spi-nor-core: Rework spansion_read/write_any_reg() to use addr_mode_nbytes mtd: spi-nor-core: Rework s25hx_t_post_bfpt_fixup() for flash's internal address mode drivers/mtd/spi/spi-nor-core.c | 42 ++++++++++++++++++++++++---------- include/linux/mtd/spi-nor.h | 5 ++++ 2 files changed, 35 insertions(+), 12 deletions(-) -- 2.25.1