Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5056452pxj; Wed, 9 Jun 2021 08:11:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5HwDw2LmPlbvwuO3ncpGrbeBMAlxbMN3Dkns+F3+7UPY6qysjzkdCoxUEy614hy7feWBP X-Received: by 2002:a05:6402:4316:: with SMTP id m22mr31357415edc.316.1623251503695; Wed, 09 Jun 2021 08:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623251503; cv=none; d=google.com; s=arc-20160816; b=FREmptg3z1x3nhM3v4Pla1lNMgYDRRiK++xX8wOaO/o4sU8pF1bJJgwD24RWrbPoY0 /T2KQmWJ8NkNzNtp8hlybfONlbQX3tKZBb8+5TM3r6veP8WVQrHU914IO0JyvHWJE8aj +qCyggWd+056SRtEHwCjlQJ0EybhADNyHJkjGMS3QAkZTIu9/mxvw5MpxWXSmu5+yoBu EQ66hbtZvv9KYSQUTIF8eCfemv0tP2iI3CF7+DN14/DSLNyN/iVr0BXfts+ppwGHHAE5 IygKXtQ/uUYVI8rjhNtIoOecLkqg4QoQsa3k/l/0sJkSTxpDT3/GY4J0xRzKJdDTu68J NR5A== 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=qs/Q24564lHNBP2ZJUCUee0RLEC6OuDzdISYeq2kb/s=; b=JFhExtWf8VAh23ECfd5LpNqwL3E8bV5cLr4/94j5srq/Ua7MDFSR8pI7JjTAzMh+G8 LODq/Mejez7dneu/P51VNkCXxPlScjsBCmujP+ScWt55tDmqPi8XeKnD/yJIJXnFCAKw Ks2nUWWmenyW4IyxzPkZQFHVlI92cGlj2/zRpuitLZ0dWtYLuQ33YJCg01MvCZgXbNGJ anAzCvGbHx/g9uXZTPXK538eYzBoiHAKsNGMmlKqd4FVG0G7RetJyTnfEDtvNDwc4UXT O40lpRw5pzeNspdlhyZ2WSHxzpKydASRXFwRdWEjbSAf0RVY+60loU7LCJ05X9Ux60yA Hi6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NqiYr1+Q; 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 dz10si693edb.266.2021.06.09.08.11.19; Wed, 09 Jun 2021 08:11:43 -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=NqiYr1+Q; 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 S232932AbhFIMk5 (ORCPT + 99 others); Wed, 9 Jun 2021 08:40:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:50644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233488AbhFIMk4 (ORCPT ); Wed, 9 Jun 2021 08:40:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C1AD6139A; Wed, 9 Jun 2021 12:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623242341; bh=jYtHpQjLmGyTZrGhKiPMLFg/1ejaPgAby5FBxFuQN/E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NqiYr1+Q99rzvfeU+9N452qceuc0Z42+bwWDUBVU8BHfb0ernrhh6lJ9hBqD4+ic5 KNuNsZS2Yc4dZsCJx+t2OS2aw3WT3zSqhMpZi0N/PeWOwZasnRsNSnoQRK9Ey5oP+1 alIClrYAhGBVNK3ec8MSDBMKT7jqQ/S/GLmAuKh0= Date: Wed, 9 Jun 2021 14:38:59 +0200 From: Greg Kroah-Hartman To: Erwan Le Ray Cc: Jiri Slaby , Maxime Coquelin , Alexandre Torgue , linux-serial@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabrice Gasnier , Valentin Caron , Amelie Delaunay Subject: Re: [PATCH 1/2] serial: stm32: reset dma buffers during probe Message-ID: References: <20210527091537.8997-1-erwan.leray@foss.st.com> <20210527091537.8997-2-erwan.leray@foss.st.com> 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 Thu, May 27, 2021 at 11:49:01AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 27, 2021 at 11:15:36AM +0200, Erwan Le Ray wrote: > > Reset Rx and Tx dma buffers during probe to avoid freeing > > invalid buffer in no dma mode. > > > > Signed-off-by: Erwan Le Ray > > > > diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c > > index c2ae7b392b86..2ac3b30477a7 100644 > > --- a/drivers/tty/serial/stm32-usart.c > > +++ b/drivers/tty/serial/stm32-usart.c > > @@ -1168,6 +1168,8 @@ static struct stm32_port *stm32_usart_of_get_port(struct platform_device *pdev) > > stm32_ports[id].cr1_irq = USART_CR1_RXNEIE; > > stm32_ports[id].cr3_irq = 0; > > stm32_ports[id].last_res = RX_BUF_L; > > + stm32_ports[id].rx_dma_buf = 0; > > + stm32_ports[id].tx_dma_buf = 0; > > return &stm32_ports[id]; > > } > > > > -- > > 2.17.1 > > > > Is this a bugfix? if so, what commit does this fix and does it need to > be backported anywhere? Due to lack of a response, I've dropped this from my queue. Please add the needed information to the patch when you get the chance to resend this. thanks, greg k-h