Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752052AbdGBUrg (ORCPT ); Sun, 2 Jul 2017 16:47:36 -0400 Received: from mail.pqgruber.com ([178.189.19.235]:12904 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876AbdGBUre (ORCPT ); Sun, 2 Jul 2017 16:47:34 -0400 Date: Sun, 2 Jul 2017 22:47:31 +0200 From: Clemens Gruber To: Fabio Estevam Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman , Fabio Estevam , u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, Fugang Duan Subject: Re: serial: imx: disable DMA for RS-485 on i.MX6 SMP Message-ID: <20170702204731.GA7174@archie.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1228 Lines: 37 Hi Fabio, On Tue, Jun 20, 2017 at 08:49:28PM -0300, Fabio Estevam wrote: > Hi Clemens, > > On Tue, Jun 20, 2017 at 1:13 PM, Fabio Estevam wrote: > > > The subject gives the impression that the DMA will only be disabled > > for RS485, but the impact of this change is wider. > > > > For example: if I have a mx6q system with a Bluetooth serial > > connection I can no longer use DMA with your change applied. > > > > Ideally we should fix the RS485 DMA bug. If that is not possible, then > > at least we need to restrict this change to the RS485 case. > > > > Maybe we need to pass "linux,rs485-enabled-at-boot-time" in device > > tree and then use this property to deceide if DMA will be enabled or > > not: > > > > if (!uart_console(port) && !sport->dma_is_inited && !sport->rs485_enabled) > > Could you please test the two attached patches and see if it solves the issue? > > Unfortunately I no longer have access to the RS485 half-duplex board. > > Just make sure to pass 'linux,rs485-enabled-at-boot-time' in your > device tree, thanks. The two patches work for me! You can add my Tested-by tag if/when you submit them. Tested-by: Clemens Gruber Regards, Clemens