public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: pavan_savoy@ti.com
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/6] drivers:misc: sources for ST core
Date: Mon, 22 Mar 2010 14:34:58 -0700	[thread overview]
Message-ID: <20100322213458.GB420@suse.de> (raw)
In-Reply-To: <1269292756-7469-4-git-send-email-pavan_savoy@ti.com>

On Mon, Mar 22, 2010 at 04:19:13PM -0500, pavan_savoy@ti.com wrote:
> From: Pavan Savoy <pavan_savoy@ti.com>
> 
> Texas Instruments BT, FM and GPS combo chips/drivers
> make use of a single TTY to communicate with the chip.
> This module constitutes the core logic, TTY ldisc driver
> and the exported symbols for registering/unregistering of
> the protocol drivers such as BT/FM/GPS.
> 
> Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
> ---
>  drivers/misc/ti-st/st_core.c | 1057 ++++++++++++++++++++++++++++++++++++++++++
>  drivers/misc/ti-st/st_core.h |   92 ++++
>  2 files changed, 1149 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/misc/ti-st/st_core.c
>  create mode 100644 drivers/misc/ti-st/st_core.h
> 
> diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
> new file mode 100644
> index 0000000..1cb7c0a
> --- /dev/null
> +++ b/drivers/misc/ti-st/st_core.c
> @@ -0,0 +1,1057 @@
> +/*
> + *  Shared Transport Line discipline driver Core
> + *	This hooks up ST KIM driver and ST LL driver
> + *  Copyright (C) 2009 Texas Instruments
> + *
> + *  This program is free software; you can redistribute it and/or modify
> + *  it under the terms of the GNU General Public License version 2 as
> + *  published by the Free Software Foundation.
> + *
> + *  This program is distributed in the hope that it will be useful,
> + *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + *  GNU General Public License for more details.
> + *
> + *  You should have received a copy of the GNU General Public License
> + *  along with this program; if not, write to the Free Software
> + *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
> + *
> + */
> +
> +#include <linux/module.h>
> +#include <linux/kernel.h>
> +#include <linux/init.h>
> +#include <linux/tty.h>
> +
> +/* understand BT, FM and GPS for now */
> +#include <net/bluetooth/bluetooth.h>
> +#include <net/bluetooth/hci_core.h>
> +#include <net/bluetooth/hci.h>
> +#include "fm.h"
> +/*
> + * packet formats for fm and gps
> + * #include "gps.h"
> + */
> +#include "st_core.h"
> +#include "st_kim.h"
> +#include "st_ll.h"
> +#include "st.h"
> +
> +/* all debug macros go in here */
> +#define ST_DRV_ERR(fmt, arg...)  printk(KERN_ERR "(stc):"fmt"\n" , ## arg)
> +#if defined(DEBUG)		/* limited debug messages */
> +#define ST_DRV_DBG(fmt, arg...)  printk(KERN_INFO "(stc):"fmt"\n" , ## arg)
> +#define ST_DRV_VER(fmt, arg...)
> +#elif defined(VERBOSE)		/* very verbose */
> +#define ST_DRV_DBG(fmt, arg...)  printk(KERN_INFO "(stc):"fmt"\n" , ## arg)
> +#define ST_DRV_VER(fmt, arg...)  printk(KERN_INFO "(stc):"fmt"\n" , ## arg)
> +#else /* error msgs only */
> +#define ST_DRV_DBG(fmt, arg...)
> +#define ST_DRV_VER(fmt, arg...)
> +#endif

NO!

Please use the existing debug macros (dev_printk and friends) and do not
roll your own.

thanks,

greg k-h

  parent reply	other threads:[~2010-03-22 21:37 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22 21:19 [re-worked] New ldisc for WiLink7.0 pavan_savoy
2010-03-22 21:19 ` [PATCH 1/6] serial: TTY: new ldisc for TI BT/FM/GPS chips pavan_savoy
2010-03-22 21:19   ` [PATCH 2/6] drivers:misc: Kconfig, Makefile for TI's ST ldisc pavan_savoy
2010-03-22 21:19     ` [PATCH 3/6] drivers:misc: sources for ST core pavan_savoy
2010-03-22 21:19       ` [PATCH 4/6] drivers:misc: sources for Init manager module pavan_savoy
2010-03-22 21:19         ` [PATCH 5/6] drivers:misc: sources for HCI LL PM protocol pavan_savoy
2010-03-22 21:19           ` [PATCH 6/6] drivers:misc: sources for ST header file pavan_savoy
2010-03-22 21:36         ` [PATCH 4/6] drivers:misc: sources for Init manager module Greg KH
2010-03-22 22:03           ` Savoy, Pavan
2010-03-24  2:23             ` Greg KH
2010-03-24  8:04               ` Marcel Holtmann
2010-03-24 14:54                 ` Pavan Savoy
2010-03-24 15:52                   ` Greg KH
2010-03-24 16:11                   ` Marcel Holtmann
2010-03-24 16:22                     ` Pavan Savoy
2010-03-24 16:38                       ` Marcel Holtmann
2010-03-24 16:39                         ` Randy Dunlap
2010-03-24 16:54                         ` Pavan Savoy
2010-03-24 17:03                           ` Alan Cox
2010-03-24 17:09                             ` Pavan Savoy
2010-03-24 17:26                               ` Alan Cox
2010-03-24 17:32                                 ` Pavan Savoy
2010-03-24 17:39                                   ` Alan Cox
2010-03-24 18:46                                     ` Pavan Savoy
2010-03-24 20:54                                       ` Marcel Holtmann
2010-03-24 21:03                                         ` Pavan Savoy
2010-03-24 17:15                           ` Marcel Holtmann
2010-03-24 17:42                             ` Pavan Savoy
2010-03-24 20:59                               ` Marcel Holtmann
2010-03-24 16:58                       ` Alan Cox
2010-03-24 16:56                         ` Pavan Savoy
2010-03-24 16:26                     ` Greg KH
2010-03-24 16:35                       ` Pavan Savoy
2010-03-24 16:52                         ` Greg KH
2010-03-24 17:05                           ` Pavan Savoy
2010-03-24 17:20                             ` Alan Cox
2010-03-22 21:34       ` Greg KH [this message]
2010-03-23 15:24       ` [PATCH 3/6] drivers:misc: sources for ST core Alan Cox
2010-03-22 21:34     ` [PATCH 2/6] drivers:misc: Kconfig, Makefile for TI's ST ldisc Greg KH
2010-03-22 21:35     ` Greg KH
2010-03-23  0:07       ` Tilman Schmidt
2010-03-23 15:18       ` Alan Cox
2010-03-24  2:19         ` Greg KH
2010-03-22 21:45     ` Randy Dunlap
2010-03-22 22:37       ` Savoy, Pavan
2010-03-22 22:49         ` Randy Dunlap
2010-03-23 15:20   ` [PATCH 1/6] serial: TTY: new ldisc for TI BT/FM/GPS chips Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2010-03-23 15:42 [PATCH 3/6] drivers:misc: sources for ST core Pavan Savoy
2010-03-23 19:59 ` Pavan Savoy
2010-03-23 20:28   ` Alan Cox
2010-03-23 16:44 Pavan Savoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100322213458.GB420@suse.de \
    --to=gregkh@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavan_savoy@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox