From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932080AbdAGU7n (ORCPT ); Sat, 7 Jan 2017 15:59:43 -0500 Received: from mail.pqgruber.com ([178.189.19.235]:50931 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbdAGU7e (ORCPT ); Sat, 7 Jan 2017 15:59:34 -0500 Date: Sat, 7 Jan 2017 21:59:30 +0100 From: Clemens Gruber To: Fabio Estevam Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman , Sascha Hauer , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Nandor Han , Lucas Stach , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: imx: RS-485 problems during TX, maybe DMA related Message-ID: <20170107205930.GA12367@archie.localdomain> References: <20170104160024.GA13442@archie.localdomain> <20170106225026.GA3804@archie.localdomain> <20170107134557.GA12299@archie.localdomain> <20170107153434.GA13307@archie.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 07, 2017 at 02:48:03PM -0200, Fabio Estevam wrote: > On Sat, Jan 7, 2017 at 1:34 PM, Clemens Gruber > wrote: > > Hi Fabio, > > > > On Sat, Jan 07, 2017 at 12:57:10PM -0200, Fabio Estevam wrote: > >> The MX6QDL_PAD_CSI0_DAT16__UART4_CTS_B option is only valid in dte mode. > > > > Ah, the input select is limited in that way, I see. > > > > You wrote that you tried rts-gpios. > > What about setting cts-gpios to gpio6 2 in the DT? > > > > Or can you remux RX and TX to be switched to work in dte mode? > > I managed to get RS485 in half-duplex working with rts-gios. Will send > a patch shortly. Great! Did you observe the same effect I described, with the doubling of characters in the front and the leftovers from previous transmissions at the end? Thanks, Clemens