Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp796384yba; Thu, 16 May 2019 09:03:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWanGvC+RbxTtDwE/O8MOdGGZuYIQ9qvE/NEDEPgKVhzPPWTUL11VJw29URSLDOh+Pto1w X-Received: by 2002:a17:902:a988:: with SMTP id bh8mr50971270plb.243.1558022611043; Thu, 16 May 2019 09:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558022611; cv=none; d=google.com; s=arc-20160816; b=sQMTimnAkkHTXqEm2/ALNfOFu230kX/hLf2+rvPAxQTxSv5fThg3tGu5NWFFJ7dRx2 AZAAPHeqx5JGPTPPVF3Tlu1kfKYydXmv4+ytRK2JW0GHvKg42z5/VLHXs+ECYtxM1zNU 3YhZYi6cTmVKKpbqaycKFDM7Edf6nIRDHJdsZqrh1PjYG2pinJ4aurepaY7PnUIC6Dvc vlYXmZEEu7vxjWBYyhzBXf5dnqLk9o+7vcI2JUlOqUo3YfpJmJPFwUEdMGwEVc2nDebQ sdJsu4NO2q6RYOaW1OEgsIgnRihUSijNHIcW+cwdpnIK430rWFndDfDR4xuF9zPFumnX Z3PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8WgMWkot3W6frdZDEhuKoWGYZZnnA8ggjmWUdQkxVUg=; b=X22OXEm3Dk4D59ABbhyycnTIoVbMEQOq3m6uwCbEK6nVl6cLtAixkSpdPcb9K+yhf6 FTa2vAi9YPj9PpEddxIdn43PS6KuPqMGOwxAmeJeMAYEdfmIwhsFyGK7l2BOkTEcg9Rt SrvkNfmtBA25dShwDitZjFF64WhiZTCss+N8RBGMB9edPdt0BMsQWbS3AWxxjhtJofaP 7FYTUrEpGVv+G+gUoaefi7xeDZ7CJi9cIC+k5O+7m0Q8yw9gtW62jbOTmY9i3ndlXZqa qybG+xUaXguVDAyNBy5LR09QdY4DGCZkSnfHLWPAXbP1gq8GMn9ZE2lS/LYGpjB8V+/o FOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VQ1lreXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si5174318pgs.402.2019.05.16.09.03.04; Thu, 16 May 2019 09:03:31 -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=@gmail.com header.s=20161025 header.b=VQ1lreXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727972AbfEPQBB (ORCPT + 99 others); Thu, 16 May 2019 12:01:01 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:38597 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbfEPQA7 (ORCPT ); Thu, 16 May 2019 12:00:59 -0400 Received: by mail-ed1-f68.google.com with SMTP id w11so5980239edl.5 for ; Thu, 16 May 2019 09:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8WgMWkot3W6frdZDEhuKoWGYZZnnA8ggjmWUdQkxVUg=; b=VQ1lreXFzVPz7qMf6CbZsyHyEK8BaUPzViIbtM9m26OmLDc9tKQb+Ww5BzyPFxvKVr MJrT5hYOZFr1qqbinjNi0tc9Y7K9TrxawuH+WidxXbg7JTXsX7z3gzTQWohuiByopt7m 4ryVrr07Qa7xoWkcqKuFRHHW6UpEbZSNoCQ5aRG612xPXgDlckr7b6De7pLUdaxjaiQV hcsybkXuOdvGi1Mxsfms0QU4V/9nnmPkZ/AeYezrL2lSFkfpmZ8cwUfcwzQnmC99Or34 ynutTND6GIF1CpSUzaGCAKL/ehYJFRu0Vyi2/xwYYLD0u/S4b3IEcTBNrrSgbmRaMxxB JCPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8WgMWkot3W6frdZDEhuKoWGYZZnnA8ggjmWUdQkxVUg=; b=IX6GABiKxuROH9E20h/Q1q7ItcwcHOB/1Zsz1xQYwjUnAa7atmCtJPEWxoInudqsaR phcyh4po8fAEL0U3oHEh4isAqq7WOHGn9xVtUtm6aBHMp9NGyDGEH0cUjsnjw7NT6lLm MRoJ+dx7pfP42XtA9tDkdw155YWC/ppXlyoN6h/Sx3zku+l3iPumwZG54YGpPxTJyNwE WLx66lm1r+GSwBLXw9uWz0rFkGBikYQUWkr9ghY0+ggkfKYOxIJLZ8Mf9R+UL6KhnE/R Oyv+qfookCom1Q/QixLhVj4rWlgFLR3rVIRvDXUbULpeqgc2NluKet5KjHdJ7LXPfejS COfQ== X-Gm-Message-State: APjAAAUXD7eIKbT+kzL3pb/lchVpcXBPLBxKtSgxe2nniHLPyAcQT2DX Cqe6aDAYTHQfbITXBMOnoyA= X-Received: by 2002:a17:906:8398:: with SMTP id p24mr25198362ejx.8.1558022458538; Thu, 16 May 2019 09:00:58 -0700 (PDT) Received: from mail.broadcom.com ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id n8sm348307ejk.45.2019.05.16.09.00.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 09:00:57 -0700 (PDT) From: Kamal Dasu To: linux-mtd@lists.infradead.org Cc: bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, Kamal Dasu , Brian Norris , Miquel Raynal , Richard Weinberger , David Woodhouse , Marek Vasut , Vignesh Raghavendra Subject: [PATCH v2 2/2] mtd: nand: raw: brcmnand: When oops in progress use pio and interrupt polling Date: Thu, 16 May 2019 11:45:40 -0400 Message-Id: <1558022399-24863-2-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 1.9.0.138.g2de3478 In-Reply-To: <1558022399-24863-1-git-send-email-kdasu.kdev@gmail.com> References: <1558022399-24863-1-git-send-email-kdasu.kdev@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If mtd_oops is in progress switch to polling for nand command completion interrupts and use PIO mode wihtout DMA so that the mtd_oops buffer can be completely written in the assinged nand partition. Signed-off-by: Kamal Dasu --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index a30a7f0..dca8eb8 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -835,7 +835,6 @@ static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl) } disable_irq(ctrl->irq); - ctrl->pio_poll_mode = true; } -- 1.9.0.138.g2de3478