Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp436573pxj; Fri, 28 May 2021 07:22:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSd+m9M04HlayM1u9dce4kbLkgby+4wRjG+5rUMv731crlOhig7i7zHqsO1F1GS9tZMgCD X-Received: by 2002:a92:c790:: with SMTP id c16mr7459123ilk.272.1622211745463; Fri, 28 May 2021 07:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622211745; cv=none; d=google.com; s=arc-20160816; b=wRkE2I8FB4RoCVA0dZ6p4FxM1lcoMAkkaf7L3KKei1f615Mzn0rDGetiHH1P4KtcVB 7BtKtDHVjS7ae6FTu6Bfkx8OndWCKo3ocRFQfFOwf5OJewwQM4Hzi+zIYBFqimtnXSbp O5cHgbmwWArPaGo8dazpE2pIXE3N+ORUmTq46K9Ei9PGl1JtR3lYEc4QRQfxL7hgesxr gur4EUKtT1qoaJA2rBr1JWgvHgjuiNAFSdAKdoEjEBf+GwGDvxo0SiIUHf0qSfFYgSof CKIQI4XYHt6ZREMl/8ADo14dKz21AVwaSXv1ztdV6VZmFfwz3YUXNykluzPDIg7h/jq0 d41A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bu3MQ6DgF0fcfplCjXBBOAim/Uo1qYJNmd9RnH8e+ks=; b=ChiRrixTp+gKMoLG9JSRgbvPLuzSyYR23QdUU5kuHiubz03x4Ujmd/bFElZlanAD5A ctvy+rKvfx4jAxVYOr0nqznqHXGDhwOFSYvmvF9b7ez0GlaU5alD91T/1INvlVroEcAy 6FdC0L3xsfTHo+jeJecVu9ao3eX0frVSe0lda53a3+498Lnf6ZvISY5OxCwtG0bZXwNR hMb2BSIpd09WFh0jsG0b6BbQJ4DNrlS9HLC9vOoE9j7W4kCJh75h88Xn9z5BPHIuoFyG 0YApOM5slbDDCjSmHQaQdu6BGEPzpYJ0eqZIjpxn0uUzK7vA1UmG2LlrGfUD1dxQ+91J GHUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tVF+0kOa; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si5434332jak.112.2021.05.28.07.22.11; Fri, 28 May 2021 07:22:25 -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=@gmail.com header.s=20161025 header.b=tVF+0kOa; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236103AbhE1N5l (ORCPT + 99 others); Fri, 28 May 2021 09:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235379AbhE1N5j (ORCPT ); Fri, 28 May 2021 09:57:39 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB71CC061574; Fri, 28 May 2021 06:56:04 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id c15so5363415ljr.7; Fri, 28 May 2021 06:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bu3MQ6DgF0fcfplCjXBBOAim/Uo1qYJNmd9RnH8e+ks=; b=tVF+0kOaRRXhQna7qmOYKGJIdz3n8LS488iOoSBLmTiEfRpf0rxZ5GDdWAw97Amj5b N6XUEXQog0DDfJyMoez4vePANL3E893LsEQIfNfeCneI+hjM0GLI5KoM9FMFwl+INMUq MTFMoDr6e1gx6swr8vrpKxdhFH9oGaoPLVcBcyC7x/z7GPtnKfgfRfOv0zzdfNHADg+m N4IeDRSwBbtS1/iHe+GOa+/hkpWBrPdWGSrLQSONcRFNs2/TeQBK6KolPn1RWeIq+PX9 DNu4KSv4smF14u2ueH1JT1pUfTKQRjMtclV9aY1dCqPNXAdhZ3Fqv/Dp5MkJW4/ZlL4n vQyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bu3MQ6DgF0fcfplCjXBBOAim/Uo1qYJNmd9RnH8e+ks=; b=jTc9qa1W7sLJJKcGfMJeOipe/v9zlLi3aTHVgkcEiQsL+1GQh6n4PUL5lUicWiozay swwQNfFWzJ9W+x+KDo6FZnKc7Y+F+NedVemqG4GPXJnVrOcMxKWv8WbvvIaUOiRqnM8X 3AK20CeUUS6aqpXDqBGk2IcE1gC1qsGQwbWyZUFqRuGPCne2dEqAWfz5i+9m/Unwr2FL qNWX+DhQzNbNinCnqe2c9RtgTfzxyl51xseUJ3OpxKZbVdVCojuIXs759kPhSqDtRJ5Q MgRep0IsHimr/8bcx+FRA5ERv8nRMzFJJuqmBEN4lWNv/KHJ24b+cOy+tj5Ki+HiO1mo DRRw== X-Gm-Message-State: AOAM53192MBFx65Wq6HtLz6TqkpK0NZbxglbtTOJU20zrx7xOPpiUeTH pZrEyQpc6bbp1zsLfUxYvh9H3N40rTRVdjAeDSpTDusxWAM= X-Received: by 2002:a2e:824c:: with SMTP id j12mr6650994ljh.490.1622210163006; Fri, 28 May 2021 06:56:03 -0700 (PDT) MIME-Version: 1.0 References: <20210528072351.1639575-1-hs@denx.de> <20210528072351.1639575-3-hs@denx.de> In-Reply-To: <20210528072351.1639575-3-hs@denx.de> From: Fabio Estevam Date: Fri, 28 May 2021 10:55:51 -0300 Message-ID: Subject: Re: [PATCH v1 2/2] mtd: devices: add support for microchip 48l640 EERAM To: Heiko Schocher Cc: linux-mtd , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, On Fri, May 28, 2021 at 4:26 AM Heiko Schocher wrote: > > The Microchip 48l640 is a 8KByte EERAM connected via SPI. > > Signed-off-by: Heiko Schocher > --- > I tried to use drivers/mtd/devices/mchp23k256.c but this > driver does not use any status register and there seems > slight differences in registers (no write enable register > for example), so I decided to make a new driver. > > This driver sets the continuous mode bit in Status register, > which states you can write continuous ... but after writting > 32 bytes the chip goes into an undefined state, so driver now > writes data in 32 byte chunks. > > I also tried to use regmap, but it leads in a lot of more code, > and as this chip has only spi interface it makes no sense, or? > > Tested this driver on board imx8mp-phyboard-pollux-rdk > board, which is already in mainline. > > Made some tbot tests, which write at random offset random > length bytes with dd and and random content. Reread the data > after a reboot and compare with the written data. Works fine. Works for me too on an imx7d based board, thanks: Tested-by: Fabio Estevam