Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp277945pxx; Wed, 28 Oct 2020 04:50:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCvFAGe1Iin7cTJJP3xseGRkU4ZiJBLnaKC8TNAqjMbhs7ZGC/5ryMxaLJgQ9wlCdvpdYI X-Received: by 2002:a05:6402:207c:: with SMTP id bd28mr7026250edb.316.1603885824397; Wed, 28 Oct 2020 04:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603885824; cv=none; d=google.com; s=arc-20160816; b=bRt+aGR3dxt/KTclGnFe7JVHl2p2pCXGOffnOnpGVKmIphOoaeHqXggMelrvejuSiJ Et/I6+FCNEIt74lS1bc1BJQIwc0DGXQuOwnnpQHSCM5rWORNtooMeY0gFacsDMSDRjxt KnnUMOESFpNrhw56h9g1N19TFPFWvqmf7ghDA6jYMtafXpiqkBaSaT9AfV71fPFGN8j0 GqpEv95RNi058Nypj+leADku4i3Ie+HKnRclXki9HLJEIWgb4DfY4HvfrSCIVmHwWEzV 9jTEBDwMBWy8IwsUw9ljpBbm24O9t8kLm6omsGVuFAnOzqTBItquDYOKZTv9yQ7+Fw3k H7LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tWl1w2MqgJhYyMAkULDcIwUkHcBVED2ude8UJiaQkGY=; b=C85tRrkANtOBd4AYnXG/DaC8bJgk75NAtvsY2BaK6xall5pzqIMMarR6y90MHEMqHz XmqE5cBrGy8szRYfiI/OjiJQkcy0xAuVIgdpKBL7JuQXUwTbDn6LQYXKUSBHwa1IpydQ tudGavaapeg5IUfpBk7LJ86BKRgSg2doKW6U9RfF6O7UEf23rRMtj1BcRHL9br2C/soR VMMajmte2iFQPtyTWLOLSL4CwqvpkJ1RbYvw4J6FQBOzJxESd5wVEskT7CwQHJw1yEv0 StnXr15AB4CkRSTcReMgHq5wAJfIZw18lH+YwpU3WHytUP+NO6Yue1tv9eHLxIArCbTe yo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xgzAbVKb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt10si1135660edb.503.2020.10.28.04.50.02; Wed, 28 Oct 2020 04:50:24 -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=@kernel.org header.s=default header.b=xgzAbVKb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1794599AbgJ0PMg (ORCPT + 99 others); Tue, 27 Oct 2020 11:12:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1790990AbgJ0PFl (ORCPT ); Tue, 27 Oct 2020 11:05:41 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4347521D24; Tue, 27 Oct 2020 15:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811140; bh=bvfBFRDNthHschglZKGPr7aDzYEuc31YlegaI5qE6hs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xgzAbVKbKBbE2zigPd8ytZj/3duD8Fh3qh7UEbv1RqP7UnENr6+Gaoiz5WhvZmi54 yrWqZF70GOtRB3vq08mU681DwNxSaSm1rfWHWkrolhhedf7ACIQ2fNpOeylRmYcCle QbHzd3uHEXmCgE4r+s5sET9RRStKQ3nZhVHxx0x8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vignesh Raghavendra , Sasha Levin Subject: [PATCH 5.8 388/633] mtd: hyperbus: hbmc-am654: Fix direct mapping setup flash access Date: Tue, 27 Oct 2020 14:52:11 +0100 Message-Id: <20201027135540.908623141@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vignesh Raghavendra [ Upstream commit aca31ce96814c84d1a41aaa109c15abe61005af7 ] Setting up of direct mapping should be done with flash node's IO address space and not with controller's IO region. Fixes: b6fe8bc67d2d3 ("mtd: hyperbus: move direct mapping setup to AM654 HBMC driver") Signed-off-by: Vignesh Raghavendra Link: https://lore.kernel.org/r/20200924081214.16934-3-vigneshr@ti.com Signed-off-by: Sasha Levin --- drivers/mtd/hyperbus/hbmc-am654.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/hyperbus/hbmc-am654.c b/drivers/mtd/hyperbus/hbmc-am654.c index f350a0809f880..a808fa28cd9a1 100644 --- a/drivers/mtd/hyperbus/hbmc-am654.c +++ b/drivers/mtd/hyperbus/hbmc-am654.c @@ -70,7 +70,8 @@ static int am654_hbmc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, priv); - ret = of_address_to_resource(np, 0, &res); + priv->hbdev.np = of_get_next_child(np, NULL); + ret = of_address_to_resource(priv->hbdev.np, 0, &res); if (ret) return ret; @@ -103,7 +104,6 @@ static int am654_hbmc_probe(struct platform_device *pdev) priv->ctlr.dev = dev; priv->ctlr.ops = &am654_hbmc_ops; priv->hbdev.ctlr = &priv->ctlr; - priv->hbdev.np = of_get_next_child(dev->of_node, NULL); ret = hyperbus_register_device(&priv->hbdev); if (ret) { dev_err(dev, "failed to register controller\n"); -- 2.25.1