Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3321621pxv; Mon, 28 Jun 2021 01:49:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxphN59kiXiMipplFMIujmOYZi6/CK117RA7ZPK2qYXXasmUR0CZDGP81hHfM1o4I8apaCl X-Received: by 2002:a5d:858b:: with SMTP id f11mr20445733ioj.156.1624870177370; Mon, 28 Jun 2021 01:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624870177; cv=none; d=google.com; s=arc-20160816; b=wFYvQ8/jXE8CTYUDd0nxNtkOCOxEeGX76H9X6jEBcn0twdpeDZab4UKdzjgEB85gqc ws1IM6MBVjxFKHmikw0zTCVRVo6LBVGGBzgpwwdYBX+mQpRMZ9VlrA0JXje9N45anqht CVECotuXozloR40iRf4uGqql3TQWgD9t/uRrvJq/X0S5X7XwjzrLYkb6yzJ1dHBx77h9 VyDI003PlZjxFmwJgijrOeriD5kVdi8VIfQnXldunUHw/JShrrq1Gyw56dxPYOJ5Ncxn /0OyGlMzKiGxtSRWR1+tfByr0yvfHrXXQFg4xepltmd8+8cSpY7qx4NlK5eQQZZiCV5s IzNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GC253RPdApmPvw7iS2Rb7iYxFMnjN4R4YqDNHNByK6w=; b=U2N5vu5i2Rt12DVEnOV6vdfkfhJLQ4RS03WrqJ1xtDCUq5aEDKUBst2szevm8iZHQk Ho837Rhtb5sIjHwS/J/uKv6HjDJ7EQWz6ye73vRfG1mDIecQ7PP3BybmrJFH6+0RJOYD bgzXx02DpU5VhGL6/AciZjh9VidKoE6tt/MdE80SKZd73ZxsgXF99i8byqvLOqWUB87h Wtys4FwrEQ5t9ZRernCwhAwJzPvb3yJS4vhf8wVmWt06LzM0xAQrbd7rFGYTxAWo0Tlv 1tuBwexBO52Zuv3HpflXrLpK93V2rbNomQ06I4xKBXUIn/T9RaDVZIfZo0ZqNrQR8Bsz SRSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BrJzt5xI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si13124836ilm.91.2021.06.28.01.49.25; Mon, 28 Jun 2021 01:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BrJzt5xI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232315AbhF1IvI (ORCPT + 99 others); Mon, 28 Jun 2021 04:51:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:35388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbhF1IvH (ORCPT ); Mon, 28 Jun 2021 04:51:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4DD026108B; Mon, 28 Jun 2021 08:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624870121; bh=8A0dJggrHgLUXVOsaEGaAZv0/ji2VPqrS/XWZsuMxXI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrJzt5xIBjMEQUtgjX81Gef4fBD3HxfzeB/7PQ8Vyb+0e+b5REpD68bspiYDau2Bk lvzn3L8aQnn9iVhICcZ9391LNkwkzzVriwM5UwNs/1zka9aEQ6HpR4o4yQr3Sx/2Tj fXKcD02qYr7NcM9/hBh6buLVpmll4J7lM7VE/UV8= Date: Mon, 28 Jun 2021 10:48:39 +0200 From: Greg Kroah-Hartman To: bing fan Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm pl011 serial: support multi-irq request Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 28, 2021 at 03:19:13PM +0800, bing fan wrote: > From: Bing Fan > > In order to make pl011 work better, multiple interrupts are > required, such as TXIM, RXIM, RTIM, error interrupt(FE/PE/BE/OE); > at the same time, pl011 to GIC does not merge the interrupt > lines(each serial-interrupt corresponding to different GIC hardware > interrupt), so need to enable and request multiple gic interrupt > numbers in the driver. > > Signed-off-by: Bing Fan > --- > drivers/tty/serial/amba-pl011.c | 23 ++++++++++++++++++++++- > 1 file changed, 22 insertions(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c > index 78682c12156a..2b6f43c27dea 100644 > --- a/drivers/tty/serial/amba-pl011.c > +++ b/drivers/tty/serial/amba-pl011.c > @@ -1703,9 +1703,30 @@ static void pl011_write_lcr_h(struct > uart_amba_port *uap, unsigned int lcr_h) > > static int pl011_allocate_irq(struct uart_amba_port *uap) > { > + int ret = -1; > + int i = 0; > + unsigned int virq = 0; > + struct amba_device *amba_dev = (struct amba_device *)uap->port.dev; > + > + if (!amba_dev) > + return -1; > + > pl011_write(uap->im, uap, REG_IMSC); > > - return request_irq(uap->port.irq, pl011_int, IRQF_SHARED, > "uart-pl011", uap); > + for (i = 0; i < AMBA_NR_IRQS; i++) { > + virq = amba_dev->irq[i]; > + if (virq == 0) // request irq until virq is 0 > + break; > + > + ret = request_irq(virq, pl011_int, IRQF_SHARED, > "uart-pl011-*", uap); > + if (ret < 0) { > + dev_info(uap->port.dev, "%s %d request %u > interrupt failed\n", > + __func__, __LINE__, virq); > + break; > + } > + } > + > + return ret; > } > > /* > -- > 2.17.1 Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch is malformed (tabs converted to spaces, linewrapped, etc.) and can not be applied. Please read the file, Documentation/email-clients.txt in order to fix this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot