Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1841500yba; Thu, 25 Apr 2019 06:37:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqn3Muo2yn+ZQEprQINZYnfphiFWjDfz+tSv2NsCSQCaU2tkgs7aM3tLSvQYhGBqpRTxoM X-Received: by 2002:a17:902:b10a:: with SMTP id q10mr5957536plr.303.1556199465355; Thu, 25 Apr 2019 06:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556199465; cv=none; d=google.com; s=arc-20160816; b=c6KAZHDA2RUQylVX37CO7ZtUOAZHtkQGtz9d8xH7ELCWIiEjBg6O2zS4t2Eq5/RDln MqUkjSp0lamyh7q0pHB/wp55Xx2/XLgOE69uhRkli9EyGOn2VAejX0yy6S+lxn+bD+yI kRDd5bQgk1BhprRbShuOep034Jcg4/MnPvb9jXMOf8COJYrbFlkRCMFiGz1ySMn9gXD8 jW9K1FhF+hYKs8Lzy9wMPmmiiLUbaCt6bW0IQ0veUO2GUV7jE5HcjwPledp5rLA55LHA mv/x89QQApj5Szfs8qiBrXrCQ2G16MSwIvjC7+PJvTsmdV+73kAcx3Myn6s4jBbCqaWp pFTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=labrIMZHzxpCaXBdQod/UvvCoeBNd9NwvtHV6HFSVmE=; b=dhdRnpfAnCyEIKFcwQ/bTidfJebNsWLoqRe21guZSVd2ibTsGKl44F8bRajg+nG8UE 62+3kLTr6Rdq2t3on/eGp5O5O2zdUC431+XIMcJHTV30VhXZ13+w0iLsa0uj1PVydiFS qgRbT6HpSgo+qFXvqz6xNg5r3AcjEW75+MDNUbXhZmO29AgR6+XkZvzEx68xUeGSgEyP V0bQKdQ32sz9PwtTGrVLkqqlhtQk3qSI4Gn6lONwKeoMQ4Li4EbiVE3+9HJm1/FxYdG0 uewE9Leqk0Qg5LxWNumR3h9/J1k+kVuXSYsT5OfdXXejz6I7HXmMtailmix+JrxBg4k+ hlJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=VBn1SO2y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si23247760pla.153.2019.04.25.06.37.30; Thu, 25 Apr 2019 06:37:45 -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; dkim=pass header.i=@intenta.de header.s=dkim1 header.b=VBn1SO2y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intenta.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728276AbfDYLbI (ORCPT + 99 others); Thu, 25 Apr 2019 07:31:08 -0400 Received: from mail.intenta.de ([178.249.25.132]:43877 "EHLO mail.intenta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727218AbfDYLbH (ORCPT ); Thu, 25 Apr 2019 07:31:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=intenta.de; s=dkim1; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:CC:To:From:Date; bh=labrIMZHzxpCaXBdQod/UvvCoeBNd9NwvtHV6HFSVmE=; b=VBn1SO2y2FEbHYIKuYVAxx+DoY03KP7oppl+FnpouCcgEASlYE+Z6xY1lctjW9TVn9JHgM6U2LbrpBMClp9wD41DElDvnYITaardTGdW3WoB3QvBbdkpuymZ5/BUnPjLnRA5fdwFQiMbCSG8B/C+rDwPH9q/RFEj7zgYt9LRq4fKYt6AJyMAJGQ6LP8yvrHFJiLUpndf58HJRRsO+idhwofLbDNIQUPN6hsOGB/M4sD0yuyKLRnQTQGuWsUYxohwuTpKKcAzq7ukFpfjD1C5jY12RxqJJJYMzfHpMTOp6v5dBNL4sGqK7inaMH+liR+FVMrzqGVMH8dG7vVz9JCupw==; X-CTCH-RefID: str=0001.0A0C0208.5CC198BA.0014,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Date: Thu, 25 Apr 2019 13:23:37 +0200 From: Helmut Grohne To: Naga Sureshkumar Relli CC: "bbrezillon@kernel.org" , "miquel.raynal@bootlin.com" , "richard@nod.at" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "marek.vasut@gmail.com" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Michal Simek , "nagasureshkumarrelli@gmail.com" Subject: Re: [LINUX PATCH v14] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface Message-ID: <20190425112337.wno2a6dccptffldz@laureti-dev> References: <1555326613-26739-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <20190423124525.axaprwy4qofbqfhj@laureti-dev> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-ClientProxiedBy: ICSMA002.intenta.de (10.10.16.48) To ICSMA002.intenta.de (10.10.16.48) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 05:04:38AM +0000, Naga Sureshkumar Relli wrote: > > You previously used cond_resched (via nand_wait_ready) here. Why did you change it to > > cpu_relax()? > I just replicated the pl353_wait_for_ecc_done() API definition. > But did you see any issue with this? > Anyway I will replace it with cond_resched(), instead of cpu_releax() This was an observation and it made me ask for reasons. I did not have any practical issues here. > Did you follow the same thing that you tried earlier? > i.e. updated "nand-bus-width" property and "nand-ecc-mode" ? Yes, I used the same device tree that made v13 partially work here. > > After trying the driver, the flash chip was bricked. Neither the old driver nor the uboot-xlnx > > driver nor the Xilinx fsbl are able to talk to the chip afterwards. This behaviour persists even > > after a full power cycle. I'll try reinitializing the flash chip next. I've only seen this behaviour > > once, so there is a slight chance that the cause is something else. > Sometimes I also faced the same problem during driver development. > What I did is, in standalone nandps driver example, I forcibly created BBT in the init and once > it is done. I just reloaded the actual example. Then after wards u-boot and Linux are able to scan > the BBT. I confirm. It was just the BBT being bad. It can also be recreated using u-boot with "nand scrib.chip". I also spent some time reviewing the code and will send another mail about that. Helmut