From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755612Ab0JGUhi (ORCPT ); Thu, 7 Oct 2010 16:37:38 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:58879 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721Ab0JGUhh (ORCPT ); Thu, 7 Oct 2010 16:37:37 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6129"; a="56986404" Subject: Re: [PATCH] serial: DCC(JTAG) serial and console emulation support From: Daniel Walker To: Alan Cox Cc: Mike Frysinger , linux-kernel@vger.kernel.org, "Hyok S. Choi" , Tony Lindgren , Jeff Ohlstein , Greg Kroah-Hartman , Ben Dooks , Alan Cox , Kukjin Kim , Feng Tang , Tobias Klauser , Jason Wessel , Philippe Langlais In-Reply-To: <20101007215202.65ffeace@lxorguk.ukuu.org.uk> References: <1286476616-3373-1-git-send-email-dwalker@codeaurora.org> <20101007215202.65ffeace@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset="UTF-8" Date: Thu, 07 Oct 2010 13:37:11 -0700 Message-ID: <1286483831.23836.40.camel@c-dwalke-linux.qualcomm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2010-10-07 at 21:52 +0100, Alan Cox wrote: > On Thu, 7 Oct 2010 15:25:34 -0400 > Mike Frysinger wrote: > > > On Thu, Oct 7, 2010 at 14:36, Daniel Walker wrote: > > > Many of JTAG debuggers for ARM support DCC protocol over JTAG > > > connection, which is very useful to debug hardwares which has no > > > serial port. This patch adds DCC serial emulation and the console > > > support. System timer based polling method is used for the > > > emulation of serial input interrupt handling. > > > > why use serial_core at all ? seems like you could just use the tty > > layer directly. i did that with drivers/char/bfin_jtag_comm.c. > > I would agree 100% with this for the driver in question. The tty_port > helpers now make it trivial to do so and it'll be small and clean as a > result. Can you give some example of other drivers which have done this? Daniel -- Sent by a consultant of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.