From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940176AbdAGO5W (ORCPT ); Sat, 7 Jan 2017 09:57:22 -0500 Received: from mail-oi0-f50.google.com ([209.85.218.50]:36487 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933268AbdAGO5L (ORCPT ); Sat, 7 Jan 2017 09:57:11 -0500 MIME-Version: 1.0 In-Reply-To: <20170107134557.GA12299@archie.localdomain> References: <20170104160024.GA13442@archie.localdomain> <20170106225026.GA3804@archie.localdomain> <20170107134557.GA12299@archie.localdomain> From: Fabio Estevam Date: Sat, 7 Jan 2017 12:57:10 -0200 Message-ID: Subject: Re: imx: RS-485 problems during TX, maybe DMA related To: Clemens Gruber Cc: "linux-serial@vger.kernel.org" , Greg Kroah-Hartman , Sascha Hauer , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Nandor Han , Lucas Stach , Fabio Estevam , "linux-arm-kernel@lists.infradead.org" , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Clemens, On Sat, Jan 7, 2017 at 11:45 AM, Clemens Gruber wrote: > It should work like this, I don't think using an extra GPIO is > necessary. The MX6QDL_PAD_CSI0_DAT16__UART4_CTS_B option is only valid in dte mode. If I pass 'fsl,dte-mode' then I can see this pin toggling. (rx, tx would not work as expected). In the default dce mode I can see UART4_CTS_B pin toggling when I monitor CSI0_DAT17 pin and configure it as: MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B ,but unfortunately this pin does not go to the TXEN pin of the RS485 transceiver. So this means that with the hardware I have access to my only alternative is to set MX6QDL_PAD_CSI0_DAT16__GPIO6_IO02. >> So I was never able to observe the DE pin toggling correctly. > > But did you set SER_RS485_RX_DURING_TX in your flags? This is counter > intuitive, but I observed that it would not work otherwise. Yes, I have also tried when I read your email, but did not help on my case. Thanks, Fabio Estevam