From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95937646; Tue, 3 Dec 2024 15:30:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733239829; cv=none; b=myd7xEsowMb0pZcem4iMu8kJxncjjDBNO/1Q4llKnhCw7epOKbLg5VkMYLAp36NXwpXRxOJiPuexNrY7m+m8HbMe902wGBeEp2dbOIVPPSuB0u2dOI+quf1VTlyP2LtjHGOLYZlYWOTSyfxJAkE0sEZPB9yqQXokRpjNXKoRvmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733239829; c=relaxed/simple; bh=MefO2n8vGbMcmqP4RndGM+aKfnVh5LGfsiJbGiGcAGY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S4TWxtam9lit8FIdYxtu755mBXBeSVpEaWhVqQf3ElIYH637XSpS+B+0JcvyLz/SQreOZyDyAP/meQfmZn1M4qWOzno9yHuW0qDUHAysJRgujuSuFiEawiDmQkZjlF+m0ZfDB1hGJum4HYy83xO0NP1cKFhCLDEfeg39/AIlSVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nTCStuLY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nTCStuLY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CFA2C4CED8; Tue, 3 Dec 2024 15:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733239829; bh=MefO2n8vGbMcmqP4RndGM+aKfnVh5LGfsiJbGiGcAGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nTCStuLYA7zJm8H01Rayt0QUqRtDlIEvDH8XKqschZtFmSpB6yC8Brj7VIIafr4SG /aBoRxaFseDaH13aCowSy7fB82hOCdBSPLJfEVhWTca9W6zGqWmqZkSWrMVQv3plgV HMipIkmhE0C/Ezm8lvQMNmA9QbUZF6FbODr0koJg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , kernel test robot , Arnd Bergmann Subject: [PATCH 6.11 717/817] serial: amba-pl011: fix build regression Date: Tue, 3 Dec 2024 15:44:49 +0100 Message-ID: <20241203144023.980010671@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241203143955.605130076@linuxfoundation.org> References: <20241203143955.605130076@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit b5a23a60e8ab5711f4952912424347bf3864ce8d upstream. When CONFIG_DMA_ENGINE is disabled, the driver now fails to build: drivers/tty/serial/amba-pl011.c: In function 'pl011_unthrottle_rx': drivers/tty/serial/amba-pl011.c:1822:16: error: 'struct uart_amba_port' has no member named 'using_rx_dma' 1822 | if (uap->using_rx_dma) { | ^~ drivers/tty/serial/amba-pl011.c:1823:20: error: 'struct uart_amba_port' has no member named 'dmacr' 1823 | uap->dmacr |= UART011_RXDMAE; | ^~ drivers/tty/serial/amba-pl011.c:1824:32: error: 'struct uart_amba_port' has no member named 'dmacr' 1824 | pl011_write(uap->dmacr, uap, REG_DMACR); | ^~ Add the missing #ifdef check around these field accesses, matching what other parts of this driver do. Fixes: 2bcacc1c87ac ("serial: amba-pl011: Fix RX stall when DMA is used") Cc: stable Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202411140617.nkjeHhsK-lkp@intel.com/ Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20241115110021.744332-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/amba-pl011.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -1819,10 +1819,12 @@ static void pl011_unthrottle_rx(struct u pl011_write(uap->im, uap, REG_IMSC); +#ifdef CONFIG_DMA_ENGINE if (uap->using_rx_dma) { uap->dmacr |= UART011_RXDMAE; pl011_write(uap->dmacr, uap, REG_DMACR); } +#endif uart_port_unlock_irqrestore(&uap->port, flags); }