Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2210148yba; Thu, 25 Apr 2019 12:27:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqywsJZ+kSiyWFoIBtuB7iiWdV8moGTDT5RTtK/L6+Ki9b4Yr+n6wPH4g9fJ11UOsrk3KsfN X-Received: by 2002:a65:6149:: with SMTP id o9mr39445459pgv.254.1556220451737; Thu, 25 Apr 2019 12:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556220451; cv=none; d=google.com; s=arc-20160816; b=WIV7CbvY4FZSMJRwCYvxYLjWiWnxgXn2m6uYxkdLPKDBdrqWf2Itzhae5m8CBl8um8 V0rglAa9h9CWeBTJ4MOqWtHxzbfM6Rm75fpayGBGkcB1q0jzUDwXMkA95d/PyDD3OfwV S/1NAbNcz31Pt/T5lZNZfhjYaGnS6bGCitbKRllMUrwqvBCZgTRhYATmEBGt7arbPiJT Mwycbe8qhF/pgyANGC5aGWYCSV1OFjrNgWJlyFvjithsU1x+qgvHh2rKdb7NuEkjZQXM +75r7B8SNr9NKPw/Y3R51EOB8z3LcGbiB6DOrkB+zS6mozefbDM+eib7NPKv2ucOrZE+ VPag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=Ujin8fPqiBYO8fG0iJPxqJkdDmUEfnPunS2eRUnJRt4=; b=mnwc0/iCIe1M26LgSLCvy7zEcult3ZCd5Q9A5O9Kfw1EFcOx3Z+jGWv1v8l2w0QI3N bC9RUV1imeQ+msxIWgxaO0w80LbpvVo8lBBANF8fixOaZIKBHZZQPVyU5CT/I3CBT+ak FNmNMTRBrygf5NmT/PFNwIJYRwJ8kui27MqKIUQCo1XY3vgDeS93oyhvG/JRm/1CQNpZ Z4+8Fpw9Vq4MSyVlT2+e18Nyzfo7jRrb+xxmEWLAsjjOhRhWnIo8DgHtQ1cm2FhEovvY SqaDxg2XYrnrTQhYgdHY4XJBYtCARzQapT1AkI2bgBmP6C7wTcwYYASJBx0dJreip3J3 /yQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=s1ihMDtq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si21403751pgs.215.2019.04.25.12.27.16; Thu, 25 Apr 2019 12:27: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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=s1ihMDtq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729716AbfDYTZE (ORCPT + 99 others); Thu, 25 Apr 2019 15:25:04 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49654 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729272AbfDYTZA (ORCPT ); Thu, 25 Apr 2019 15:25:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=Ujin8fPqiBYO8fG0iJPxqJkdDmUEfnPunS2eRUnJRt4=; b=s1ihMDtquzaX y5REDM3DR8EnLtSD6RvB2HPa5BNhuneeTvCe5hWKSKKZSsl5627yGxE5VZsGOrFiV0/ldoRyZd5kI Ta29g9lg8BKdXGR+kC+/Od7QyWNDAV88b5jBU+qfDomtfceCO3bnoB86VB0x9K6Lis2s2Y3dG0rK+ rEhK4=; Received: from 188.29.164.24.threembb.co.uk ([188.29.164.24] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hJjzA-0004a5-9b; Thu, 25 Apr 2019 19:24:44 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 11C2E441D3E; Thu, 25 Apr 2019 20:24:43 +0100 (BST) From: Mark Brown To: Naga Sureshkumar Relli Cc: bbrezillon@kernel.org, broonie@kernel.org, dwmw2@infradead.org, kbuild test robot , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, marek.vasut@gmail.com, Mark Brown , michals@xilinx.com, nagasuresh12@gmail.com, richard@nod.at, vigneshr@ti.com Subject: Applied "spi: spi-mem: zynq-qspi: Fix build error on architectures missing readsl/writesl" to the spi tree In-Reply-To: <1555918009-13172-1-git-send-email-naga.sureshkumar.relli@xilinx.com> X-Patchwork-Hint: ignore Message-Id: <20190425192443.11C2E441D3E@finisterre.ee.mobilebroadband> Date: Thu, 25 Apr 2019 20:24:43 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: spi-mem: zynq-qspi: Fix build error on architectures missing readsl/writesl has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 2a2dd8cafc06d72a6ad12d9726c9e514839a82bf Mon Sep 17 00:00:00 2001 From: Naga Sureshkumar Relli Date: Mon, 22 Apr 2019 12:56:49 +0530 Subject: [PATCH] spi: spi-mem: zynq-qspi: Fix build error on architectures missing readsl/writesl Alpha and some of the architectures are missing readsl/writesl functions. so the zynq-qspi driver won't be able to build on these arches. hence use ioread32_rep()/iowrite32_rep() instead of readsl()/writesl(). Signed-off-by: Naga Sureshkumar Relli Reported-by: kbuild test robot Signed-off-by: Mark Brown --- drivers/spi/spi-zynq-qspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-zynq-qspi.c b/drivers/spi/spi-zynq-qspi.c index 8079d0062d03..c6bee67decb5 100644 --- a/drivers/spi/spi-zynq-qspi.c +++ b/drivers/spi/spi-zynq-qspi.c @@ -407,8 +407,8 @@ static void zynq_qspi_write_op(struct zynq_qspi *xqspi, int txcount, count = txcount; if (xqspi->txbuf) { - writesl(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET, - xqspi->txbuf, count); + iowrite32_rep(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET, + xqspi->txbuf, count); xqspi->txbuf += count * 4; } else { for (k = 0; k < count; k++) @@ -433,8 +433,8 @@ static void zynq_qspi_read_op(struct zynq_qspi *xqspi, int rxcount) if (count > rxcount) count = rxcount; if (xqspi->rxbuf) { - readsl(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET, - xqspi->rxbuf, count); + ioread32_rep(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET, + xqspi->rxbuf, count); xqspi->rxbuf += count * 4; } else { for (k = 0; k < count; k++) -- 2.20.1