Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp750536pxj; Thu, 20 May 2021 21:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9PHNozY4KzR0bB4qGeX10ObHN5jRLjbGQ+z5H2evIomTZuTEKpaLjbzokBsdbNHSIBufs X-Received: by 2002:a02:6d6c:: with SMTP id e44mr1540687jaf.81.1621572701611; Thu, 20 May 2021 21:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621572701; cv=none; d=google.com; s=arc-20160816; b=xdG5x6LaxEYzYDJoMuBoLfDAxJIjlDLYs2P45IMendiSx9wVXTvb79jd0vkfWJ9ody VzfiJiOZ4oRBXxwAMuJmnLRH2ffUMmJfuuGjQ1qewayiXohdtklabXU7c3U5P+vRMazL e0+uUazeaEYPPmolxsk6W8strjYr4VDzkWLhRT/IsnVlKj2wAC33QugsS6iMycsM1oVo BwRAG3d2O05MVhd8RDa/WOYhaYPLxzVfMNLiBR39AryBmViiEIrBtTeqm062pmLNvbWF Bqn8DQDzH3kqgXlomXD3TMvFbeLTx1k66zheKzZ5j2YJmVbjmzGkd+MBcf8mLcrj8DMI jRXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RujbwDaYHFW5IRTsBmUkuqcLlODQklcnrNzBpulfars=; b=ZX4wuOf1cxrfdVn36vA8w2khJZ7s9CNostpij25OuPM2+D6rIDmA0nzLCSDwOA2bWp ttLXl9wM0w5XhrGc3Zonlud2yMPzwgWFg8GpLCmdEr5E9gspjwmOSOL+Fr6U7YbJlm+Y xXUpm4P56PlukxUks049gvMsE8h1dtz9GoDWzPdjPFOGBL9CrA1vEtJ+jrFQ7UTQ0wDm ngo5FB1cIA+qhFTR/392u9eOP6THoLSwmthXVZgOkEG4f7/rEbJUjrMlKXlZDRqwOfxj YileBkG7itVsb3W5QqiqUgadsp1dGaJmCt1Msdxex813jBRJx6fYPoR3vxfv7mPSu4Bi pO5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Hez+1QvK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si4394796ilg.130.2021.05.20.21.51.04; Thu, 20 May 2021 21:51:41 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Hez+1QvK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243363AbhETNJ5 (ORCPT + 99 others); Thu, 20 May 2021 09:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243603AbhETNJ1 (ORCPT ); Thu, 20 May 2021 09:09:27 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174A5C061265 for ; Thu, 20 May 2021 06:03:00 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d11so17564139wrw.8 for ; Thu, 20 May 2021 06:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=RujbwDaYHFW5IRTsBmUkuqcLlODQklcnrNzBpulfars=; b=Hez+1QvK3f6pRKDh5FTV2p7JSR2zoExN4Cl3/Dx2cllg9rc5e79U3aAIccTzfU8ZRu 2c+QRasDl48g2C4Q2+oMxxYXmZOZ+RiBi0DqdUrpHYIXR3ZNaAszYihACj3KRGupUaAk /YgdpPOB8KeLk/rd9SqzBZtTgtVGXz7sI/k8Ucwoh0at5mSCzTp1gwYLYDj4vXkVzSp1 rZoDsrHEB97HWq7fFGd/JZN1L3Vidu9aKKWsutkCux7LfQbcNw5UwUqo6G6yXwVvffMW zqzhkTFwuEvlsGPTPO5LJCAvl/qle/ZcsnPyuYYOY6UaGi+C7Hi9zdZMDRih2surH53f ypjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=RujbwDaYHFW5IRTsBmUkuqcLlODQklcnrNzBpulfars=; b=XXmJ6K8VrxUP1IUyKWNnpf+IkKUSqdRbimtCDjopNcd0NJyJ8OO0I536t8gzybPGzB hd8APM3SVGqD99X/q269/mZ+hjKoA9vvzqKPBSG4HvJju4btGXm151DOlnvfUSUpRFRr MUIPdlLuoXWiIkoLGUKsGIOWYwImfNMJWl8YbT38m7FAqvsd2gV7eF+KplRjaVmObI+F Bs5eCltIyyIg8zENpuQ29rsbHIrJGT2dIEviXc6tMegxGzlDNsQ3MtYBXAQxb5/tDxSQ /8Be6ryjTbBxxp+FHOWWb84AH/xqRJR2JspXgEe6U1ZLytQ9Ogst51liqvwD59pVecJp Z4Ew== X-Gm-Message-State: AOAM532PezWZfJkcJwS6yltbkDb/ZOKlZczMGh7H1eMxot1zLXEODwTd Ivu4w4/2EBp9z/JfKwH9hPCbLLSjDCd/CA== X-Received: by 2002:adf:f10c:: with SMTP id r12mr4281511wro.26.1621515778718; Thu, 20 May 2021 06:02:58 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id o21sm2949976wrf.91.2021.05.20.06.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 06:02:57 -0700 (PDT) Date: Thu, 20 May 2021 15:02:55 +0200 From: LABBE Corentin To: Linus Walleij Cc: Arnd Bergmann , Olof Johansson , Rob Herring , SoC Team , Hans Ulli Kroll , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , linux-kernel Subject: Re: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502 Message-ID: References: <20210517193205.691147-1-clabbe@baylibre.com> <20210517193205.691147-5-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Wed, May 19, 2021 at 01:17:59AM +0200, Linus Walleij a ?crit : > On Tue, May 18, 2021 at 11:55 AM LABBE Corentin wrote: > > Le Tue, May 18, 2021 at 01:46:20AM +0200, Linus Walleij a ?crit : > > > > Is the FIS broken since you hardcode the partitions? > > > > > > Doesn't this work: > > > > > > partitions { > > > compatible = "redboot-fis"; > > > /* Eraseblock at 0x7e0000 */ > > > fis-index-block = <0xfc>; > > > }; > > > > > > (Needs CONFIG_MTD_REDBOOT_PARTS) > > > > No it does not. > > > > physmap-flash 30000000.flash: no enabled pin control state > > physmap-flash 30000000.flash: no disabled pin control state > > physmap-flash 30000000.flash: initialized Gemini-specific physmap control > > physmap-flash 30000000.flash: physmap platform flash device: [mem 0x30000000-0x331fffff] > > 30000000.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002201 > > number of CFI chips: 1 > > Searching for RedBoot partition table in 30000000.flash at offset 0x1fe0000 > > No RedBoot partition table detected in 30000000.flash > > Searching for RedBoot partition table in 30000000.flash at offset 0x1fe0000 > > No RedBoot partition table detected in 30000000.flash > > Hm since it searches at 0x1fe0000 that's where it thinks the last > eraseblock is so the erase blocks are 0x20000 (128KB). > > FIS at 0x7e0000 should be erase block > 0x7e0000/0x20000 = 0x3f > > Can you test fis-index-block = <0x3f> and see what happens? > With 0x7F it works. When testing, I found that fis-index-block was ignored. I just sent a patch fixing this. Regards