Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1507873ybt; Mon, 15 Jun 2020 02:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7NIlicTqvIVhGhmo0Os4J4gFio0qXJLCTkvMQg9RJHQ9ze3XPwEaKDnkRQkV1Y+3ixsbc X-Received: by 2002:a50:e8c6:: with SMTP id l6mr22116864edn.276.1592211740419; Mon, 15 Jun 2020 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592211740; cv=none; d=google.com; s=arc-20160816; b=yZY2ifTmfVeKTC0vh5I71RJjXpQdAlJEfZITypC1mnZKQ+pd4V/xK2JcG5NOpDQBUM haCfFM0GHnsWyaikorK3WI4ec6Kh5UMniICXQmlMdQGPQE1ZWQI7OucUw/7xZn6buBu3 O4/pEARXBtj1vS7p4cq271RBD9AzJxSa9mYOC1eKEAy/wXLMkYv6fNL0duECI7zG+wZQ wYi7eTqlMosVJLCJromuCqCJuwy/65BkEX5Haxm7CD2Moab14zLPtjr0XvpU2Yu49aQZ lcbEqZOcmPV34hWDwO261JygcnZsZ4HdY+u/uBeooCYOpFY93heq3hx4DJTOpzayeltP /gHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=Om3X3WJ0Qn5Esotfroo9htuD0N5RzSC1ooHtXSUJvv0=; b=bZja8iZm5k8CE9VeqRqCHbRqcR0M1ZTww4Duvlqwfnw9qdFn5MFtMS93gTt8fj8x9G kFmfr6uJNih7t16xT/51abP8gdwP6z3SLIoFqxxrPdVjVpEKUaBAlQqrr5SGCdyukZX4 O7DcsYwh5EsQK9BO8yo6GNE9tE2vV2RdPK/FPxQSIF/JJzVCiXvpAM/iAaa4WuMNe7bZ 38KywUj6uVPRbMQThBwCJQ5Vt+y/OpxR1p1z0kbX6IXC94liRTyTZTj4/0F/V0QSLmWk Xpg2NYJLmKN+jA6REYlT1FfIwjGoxBpR+kneaA5qgGa7CVsF+Uy6F/DKcF3GAweDt6KD p8Ig== ARC-Authentication-Results: i=1; mx.google.com; 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 c14si2826189edl.273.2020.06.15.02.01.51; Mon, 15 Jun 2020 02:02:20 -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; 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 S1729181AbgFOI7u (ORCPT + 99 others); Mon, 15 Jun 2020 04:59:50 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:60859 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbgFOI7u (ORCPT ); Mon, 15 Jun 2020 04:59:50 -0400 X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 1B37720008; Mon, 15 Jun 2020 08:59:47 +0000 (UTC) From: Miquel Raynal To: Sivaprakash Murugesan , miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, peter.ujfalusi@ti.com, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V4 2/2] mtd: rawnand: qcom: set BAM mode only if not set already Date: Mon, 15 Jun 2020 10:59:46 +0200 Message-Id: <20200615085946.22390-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1591948696-16015-3-git-send-email-sivaprak@codeaurora.org> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: 7c9765940d6f1835a39bba2e77d80d26d64f5dd2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-06-12 at 07:58:16 UTC, Sivaprakash Murugesan wrote: > BAM is DMA controller on QCOM ipq platforms, BAM mode on NAND driver > is set by writing BAM_MODE_EN bit on NAND_CTRL register. > > NAND_CTRL is an operational register and in BAM mode operational > registers are read only. > > So, before enabling BAM mode by writing the NAND_CTRL register, check > if BAM mode was already enabled by the bootloader, and enable BAM mode > only if it is not enabled already. > > Signed-off-by: Sivaprakash Murugesan Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel