Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp147063ybj; Thu, 19 Sep 2019 12:03:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+SRdw5eEmEmBUIczwwkx3NFQR8jdBRo4zjWLvzcl2c7vHnSNZTOC2rHiBQo1VgJjnMDJb X-Received: by 2002:a50:95c1:: with SMTP id x1mr17432686eda.180.1568919837769; Thu, 19 Sep 2019 12:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568919837; cv=none; d=google.com; s=arc-20160816; b=vVzlgXCJSkS8YZ4Jkxw03kDG3Hqu60Woqen9Y3eNHdMgheaay6jVgwWfpQyDECkFdU 8aJrGX/kWK39h/wLZ1KHbXQ+nrL9vFJniqDRCoSNT2zI30LDpyK3fIYdT46vKNb7905i 3pvlm8WKRP4p1GcejIzleaNkJd0unhg0EG1iF5v6C9UQhIPBxQwrtnlNXDvC6cwPtOwp 0QGnLVsH9H5vA2VxoHgxcirmFcVaYJMHPm9zkmyqUIUh3zw83L0cIUqzO/ysiyZ6RFPK ARbhMG7RAfPCS+deUq4W+wBAB4tferBb3lMT3lnqmoECybZLJJElfvGGIVXqiO8IknyO mscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JtGG77kEJMSSQPeiaFdIpgTQyEQbuJL0N/q07sTLVYM=; b=Hj0abY8LNEdLsJ/jLVrvgwPdHn/WEkHCsypjOWYnm5kp57J53CW7RkhWUnr/0qVoai d6/mhmHW4FR+soFY46gevLvgQ+1cwcj5Q9s57GUbPavqh3mJ6+WSnIA5DmsIPCzb7hDO m2KQmwmczoc6qt2YZOkTP5QQStUYe9R7G+JrQODVwvm+GYKB3E71b6W2x3K/LrFmyby2 pzLaiQ/V8+kRUQkRoZoyzYBTpvGQJQJ6rnsvwTA0xjbpPQ7VJdDsgDFvlelmPEN5/i53 CEME+vUZTkJNuZCE24pXrCPK7yxiqApas3V8nhDXKTrp8+CHb8VFmeMcXlYC3EHBtJI4 mJqw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si6088701edb.394.2019.09.19.12.03.32; Thu, 19 Sep 2019 12:03:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390706AbfISRY6 (ORCPT + 99 others); Thu, 19 Sep 2019 13:24:58 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:40747 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388938AbfISRY6 (ORCPT ); Thu, 19 Sep 2019 13:24:58 -0400 X-Originating-IP: 90.65.161.137 Received: from localhost (lfbn-1-1545-137.w90-65.abo.wanadoo.fr [90.65.161.137]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 8870BC0003; Thu, 19 Sep 2019 17:24:55 +0000 (UTC) Date: Thu, 19 Sep 2019 19:24:53 +0200 From: Alexandre Belloni To: Gregory CLEMENT Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Ferre , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni Subject: Re: [PATCH] spi: atmel: Remove AVR32 leftover Message-ID: <20190919172453.GA21254@piout.net> References: <20190919154034.7489-1-gregory.clement@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190919154034.7489-1-gregory.clement@bootlin.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/09/2019 17:40:34+0200, Gregory CLEMENT wrote: > AV32 support has been from the kernel a few release ago, but there was AVR32 and missing word^ > still some specific macro for this architecture in this driver. Lets > remove it. > > Signed-off-by: Gregory CLEMENT > --- > drivers/spi/spi-atmel.c | 24 ------------------------ > 1 file changed, 24 deletions(-) > > diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c > index bb94f5927819..de1e1861a70c 100644 > --- a/drivers/spi/spi-atmel.c > +++ b/drivers/spi/spi-atmel.c > @@ -222,37 +222,13 @@ > | SPI_BF(name, value)) > > /* Register access macros */ > -#ifdef CONFIG_AVR32 > -#define spi_readl(port, reg) \ > - __raw_readl((port)->regs + SPI_##reg) > -#define spi_writel(port, reg, value) \ > - __raw_writel((value), (port)->regs + SPI_##reg) > - > -#define spi_readw(port, reg) \ > - __raw_readw((port)->regs + SPI_##reg) > -#define spi_writew(port, reg, value) \ > - __raw_writew((value), (port)->regs + SPI_##reg) > - > -#define spi_readb(port, reg) \ > - __raw_readb((port)->regs + SPI_##reg) > -#define spi_writeb(port, reg, value) \ > - __raw_writeb((value), (port)->regs + SPI_##reg) > -#else > #define spi_readl(port, reg) \ > readl_relaxed((port)->regs + SPI_##reg) > #define spi_writel(port, reg, value) \ > writel_relaxed((value), (port)->regs + SPI_##reg) > - > -#define spi_readw(port, reg) \ > - readw_relaxed((port)->regs + SPI_##reg) > #define spi_writew(port, reg, value) \ > writew_relaxed((value), (port)->regs + SPI_##reg) > > -#define spi_readb(port, reg) \ > - readb_relaxed((port)->regs + SPI_##reg) > -#define spi_writeb(port, reg, value) \ > - writeb_relaxed((value), (port)->regs + SPI_##reg) > -#endif > /* use PIO for small transfers, avoiding DMA setup/teardown overhead and > * cache operations; better heuristics consider wordsize and bitrate. > */ > -- > 2.23.0 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com