Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1CD4C433FE for ; Wed, 15 Dec 2021 23:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbhLOXhj (ORCPT ); Wed, 15 Dec 2021 18:37:39 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:44695 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232096AbhLOXhi (ORCPT ); Wed, 15 Dec 2021 18:37:38 -0500 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 9BA64100003; Wed, 15 Dec 2021 23:37:36 +0000 (UTC) Date: Thu, 16 Dec 2021 00:37:36 +0100 From: Alexandre Belloni To: Rob Herring Cc: Richard Genoud , Greg Kroah-Hartman , Jiri Slaby , Nicolas Ferre , Ludovic Desroches , Lad Prabhakar , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: atmel: Use platform_get_irq() to get the interrupt Message-ID: References: <20211215224832.1985402-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211215224832.1985402-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Rob, On 15/12/2021 16:48:31-0600, Rob Herring wrote: > Accessing platform device resources directly has long been deprecated for > DT as IRQ resources may not be available at device creation time. Drivers > continuing to use static IRQ resources is blocking removing the static setup > from the DT core code. > > Signed-off-by: Rob Herring > --- > drivers/tty/serial/atmel_serial.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c > index 2c99a47a2535..9e57bfe523cf 100644 > --- a/drivers/tty/serial/atmel_serial.c > +++ b/drivers/tty/serial/atmel_serial.c > @@ -2479,7 +2479,7 @@ static int atmel_init_port(struct atmel_uart_port *atmel_port, > port->fifosize = 1; > port->dev = &pdev->dev; > port->mapbase = mpdev->resource[0].start; Shouldn't you fix that one at the same time? > - port->irq = mpdev->resource[1].start; > + port->irq = platform_get_irq(mpdev, 0); > port->rs485_config = atmel_config_rs485; > port->iso7816_config = atmel_config_iso7816; > port->membase = NULL; > -- > 2.32.0 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com