Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6734300yba; Wed, 1 May 2019 19:20:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYnlGMvyWsL2bEKr7ghqhPQLL6agboygTwIOU+djw62/Jd6MrpTcX+UXl1ZdAl+2haZiT0 X-Received: by 2002:a63:8f49:: with SMTP id r9mr1259660pgn.306.1556763654753; Wed, 01 May 2019 19:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763654; cv=none; d=google.com; s=arc-20160816; b=LoK5shvmsX0OOsnmhWH9nrXL0dlOsX6EV2zPCIgnU0i1ln2skznXsUzqhAtT+38rpn QSiRFdr39JmvmrT4l3jPW6TaKT3VrtyMNBfkaUvcnit1EsntfQDeMXjl6RbqPrm8SVrW d/3Rc4n/vBYKrnaI/zgsYg1rPvNx1zl/b30ZMJAqurVCkzHdS/OGR/3/oG87e3CW5ZMz yML93NLNMqkKuwke5H6Fzq0GZJjtaRh7tEvs15OS3j8fD8czEDvU9QWgxNM/9COvzQqs 1L9C23qf0ZKAiQoiQRHF/bo5A+Vtv5e0AuqxoncaREMLE3FI9aU5QAaj59RX/6jhmj0B xixw== 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=C9XRTvvku7YohEoOselFNompaVQM73w7LtDDtIUkluY=; b=wKiBkh3K4OD/hEVSDyTD05kAkkLFJoxrydeMZiSKvyunizon6nmnSwEdg9gmyzt/V4 Fg85QaKgcw+mfRzPMOWm51Nmz6/onDf3Ii2pWCr6n2GOos68h/TCLuouRWGpCnsT5Cm9 RjuLs0X7vWwjoo6SpGGPnFdeKWJxoSqLiEiUPM0NOF/qQSvXmy9N3PmXU4VU8S4PqFY6 lgAaol+Hqw0MES2sfygg3KVkniEyh2xnw11sSNCUQGoVekg0dvbgFHg06fto8lWZFUWL qlHBatpDHQuOzu/ziTQSHi91LStqhaDmWPSrU8OLywUIISnxUVDF5Yme9jCyt/FzXLQm dPrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=wJ3NgXse; 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 d31si7443003pla.89.2019.05.01.19.20.39; Wed, 01 May 2019 19:20:54 -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=wJ3NgXse; 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 S1726718AbfEBCTX (ORCPT + 99 others); Wed, 1 May 2019 22:19:23 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57114 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbfEBCTV (ORCPT ); Wed, 1 May 2019 22:19:21 -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=C9XRTvvku7YohEoOselFNompaVQM73w7LtDDtIUkluY=; b=wJ3NgXseGvrx iT+1+Lz86m37j/B8N7zsETj6gF1yNMJPOnMGLyfYsa0eyGk26tu1pgcPCFFkSOYQ6bg0RoKSwh6SK 5lF7hwsuu7fMpSqi3tl1Ro6DiXr4bqSkQfPXdxeD8wMuGFxIf4w+mRPBeoDAXNsDnqF9CGu5cPCI5 GJ2RE=; Received: from [211.55.52.15] (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 1hM1JQ-0005vW-3J; Thu, 02 May 2019 02:19:04 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id EAF91441D41; Thu, 2 May 2019 03:19:00 +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: <20190502021900.EAF91441D41@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:19:00 +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 ba3ce8cb3808cad0f9b8303fad4bd1c887834c82 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