Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp340457pxj; Thu, 10 Jun 2021 01:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqYcZsYpoILAZLYnSjLI6KHdFJ11TZe2uhdHM07ITexVvkSQRe7XNJQszQPgRkuj+Ux7CR X-Received: by 2002:a05:6402:1111:: with SMTP id u17mr3668850edv.87.1623315491036; Thu, 10 Jun 2021 01:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623315491; cv=none; d=google.com; s=arc-20160816; b=WbrZxhhpNMSWAYCnFvbbc8p8ISWRR0ELLBMRdxaH93Tr6dYogORxDWsClGPAotiVPl uxyy6DWoaLdyPBOCkaJEtnXMxpfqYZVJGMgXs5gW1Wi2OTT/+UjIpci2ZOFQKsmpTQ3n /+b5Q20tkMAiDXhiwzRHaBc7kXnfXct4RmHTeL+SrjFcFenl92wtZD8cWz+7TPnXl82H cpLMz4NT+8uQp0IgQDpEgLbXF0/FxvBDyGPjshXIMgsXPCJ6fEN/nS5lEYu9xiHjLSUn nTHsFOGtPWp0VK3geS8YJBs4eTTTdCCZ1LEjfd1sh5Ddpi9D6WZxEPpKXiKbShWpXSew aNdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=US13dRyJ4ae/LubuDFGUyWZmKyQMuMTjP+dI9w7XKGg=; b=GxZf5UR2PGvyR21/frNXlPAw08n+XQZmtuOg+THes3GjNHRnNWvq7XWeA5mTKHdszP 4sFNDX2+gHUY776VE2atK5O4cAY9FNE99S9Rob/VxT6L80g23/TOExhQv1ApEnNgyA0i rowz126gDrCqtM9VO4VnHysrGTOici5Mdx8p70O2DTcOSsZiazEK6J3DiSKk8W/4nbAy mHSh0DVEjotwkogZGjn762ZS3kk5M9vXwy6Ij78WrtaV3GrWgTHMG/V/OyjtlKutGBD1 SF58pjl+KklTIVOgMbN5Cg5TlYKd2W+sCSzgMZxBc5eXTQHe7vWYkys3RQh4EsEqVB8x /zqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Ixm+qHel; 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=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si1737440edw.438.2021.06.10.01.57.47; Thu, 10 Jun 2021 01:58:11 -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=@foss.st.com header.s=selector1 header.b=Ixm+qHel; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbhFJI4f (ORCPT + 99 others); Thu, 10 Jun 2021 04:56:35 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:37164 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230029AbhFJI4f (ORCPT ); Thu, 10 Jun 2021 04:56:35 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15A8praJ018129; Thu, 10 Jun 2021 10:54:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=US13dRyJ4ae/LubuDFGUyWZmKyQMuMTjP+dI9w7XKGg=; b=Ixm+qHel0qawwtKyV2HGqzY68LEnPZtupg9TiPFFR4YGeyQK6ZF4QvMm53ctI7qvOYfV Uyinf0wlYgrlPcbfd1RmnijdVXG1eapGxbQbmpk420cW3ZzU+4PmNxIo0zES8hEJuPIW EJWbgHKxwdlZGKDXr5mcyNzlGJJucNkVXzwk9p8iif5nh4aUgQwLpT2uU0gzhBksJT4R 3tO1Zr+HfZ596OQSvzswlE+/QYWJxVNSpgkZ9UQPVz1/HfAMX4KIKfWxhtSvK/uVgUhi Y7bFXxrRkvnjowt6smzAMtSX7z3m6iTsV+Dtc3E3EeTTe1QtRwocbdAB78Z45i/gKyU2 kg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 39350hb8u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Jun 2021 10:54:23 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AEA8A10002A; Thu, 10 Jun 2021 10:54:21 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 91302219DA9; Thu, 10 Jun 2021 10:54:21 +0200 (CEST) Received: from lmecxl0566.lme.st.com (10.75.127.44) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 10 Jun 2021 10:54:20 +0200 Subject: Re: [PATCH 1/2] serial: stm32: reset dma buffers during probe To: Greg Kroah-Hartman CC: Jiri Slaby , Maxime Coquelin , Alexandre Torgue , , , , , Fabrice Gasnier , Valentin Caron , Amelie Delaunay References: <20210527091537.8997-1-erwan.leray@foss.st.com> <20210527091537.8997-2-erwan.leray@foss.st.com> From: Erwan LE RAY Message-ID: Date: Thu, 10 Jun 2021 10:54:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-06-10_03:2021-06-10,2021-06-10 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Thanks for your question. This old patch is finally not necessary any more. You can cancel this series, I will resend the second patch. Best regards, Erwan. On 5/27/21 11:49 AM, 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? > > thanks, > > greg k-h >