Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2210763yba; Thu, 25 Apr 2019 12:28:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqytJ01gZiEquhXfo1Hd7JgPoWZM0oDqI4j+RibNNLoMXIR14nZXpe0tKrDcEWLwcM5i0zRZ X-Received: by 2002:a65:424a:: with SMTP id d10mr38534639pgq.335.1556220502758; Thu, 25 Apr 2019 12:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556220502; cv=none; d=google.com; s=arc-20160816; b=IUN19rMtjnUrWV8NscY4m4dXegykVyvD7pAbvsBUJ/Pqmj++iE5qituriQtu8UGmUl hJE9eSN42Dgwil2XaUdRUhNgBm2te9QKGTbgmGRRkg7Ntzm+xchm2+enVF24OkJAmH9k nW3ZBMYQ/uEvg8PS0aMX8la4BaqiU/R/9JABd3SZdAy3pwDgUUSwf9TPyP9sp9rVIF3j KKGJPcd9sObzPeulo37TsdIn/uBch7YmPB23cEB4BAcoHjy0YT9mKPirNLnp18DUMwJ4 jOk82UmJigjK6fP0NsJhT8KYFtx1TFkjiLWu3CNIgwy8ArNl+BjSvUFciboec/ciyZ6H Ryjw== 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=ml+Mrl/oNmnzzqeWs03kppRjsvImA4Nk3OA4Ur01VgCes++Yg2vdFjhZFcatsYy0RG TM+TToCK+6Jfpzm/up4nrk3TUajX589uEvEPv/BIkXmi41DQkUZ7dp7TQ8Jc9Zj6hdgn 2Wowgar5N8tC9OspD/6+RwRyxkonFPam7oIKtp+25/H7PgmFPiEqa8nrojpi8FgxKGEg R724veWWWF0Ew3BdTPIO/VDD4lpKSnrXRWxYVpyLGj3yoJg55YPIqsV0NPYRwElCMVss +NB2kJqJOix4r5oGpoebqmmYWutIE00UGqS9eJvlZv9dE3iTZgug/ccESt1U60Z0IfO+ ICjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=l00VfSMJ; 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 v2si22100002plp.191.2019.04.25.12.28.07; Thu, 25 Apr 2019 12:28:22 -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=l00VfSMJ; 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 S1730710AbfDYT04 (ORCPT + 99 others); Thu, 25 Apr 2019 15:26:56 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53174 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730113AbfDYT0z (ORCPT ); Thu, 25 Apr 2019 15:26:55 -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=l00VfSMJdDnb EtPO8GNXvA8wh7CiU48RLYEOAFUDxWRAflWZqa/2ndHcUPSrcNcmJ3ENqYj2nKFOeRLoN/EPQwSvP GTEnuY7QLOHNP6OuASEBrZ5KM8YWtfBbqUjHGr9EjCevzxQDkHvXhsMpbg5pDoHwxMWWV/4ulx18x xxguU=; 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 1hJk11-0004es-4v; Thu, 25 Apr 2019 19:26:39 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 36C8E441D3D; Thu, 25 Apr 2019 20:26:38 +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: <20190425192638.36C8E441D3D@finisterre.ee.mobilebroadband> Date: Thu, 25 Apr 2019 20:26:38 +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