public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: dmitry pervushin <dpervushin@gmail.com>
To: Zik Saleeba <zik@zikzak.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to structure an SPI UART driver?
Date: Thu, 19 Apr 2007 15:33:11 +0400	[thread overview]
Message-ID: <1176982391.4906.4.camel@diimka.dev.rtsoft.ru> (raw)
In-Reply-To: <33e9dd1c0704190045v62cd1b4fm8ded434086108dd5@mail.gmail.com>

On Чтв, 2007-04-19 at 17:45 +1000, Zik Saleeba wrote:
> I'm looking for a little advice on writing a driver for the Phillips
> sc16is752 SPI UART chip. I've written drivers before but I'm having a
> problem with this one. Since this driver is both an SPI driver and a
> UART driver I'm unclear on whether it should register with
> spi_register_driver() or uart_register_driver(), or both, or do
> something completely different. I'm not clear on how to play nicely
> with both subsystems.
It should call both. Think about your driver as the middleware -- bottom
half is SPI driver (and uses spi_xxx calls to interact with hardware),
and upper half is UART (and uses uart_xxx calls to provide inerface). 
> Any hints?
...and welcome to spi-devel mailing list, spi-devel-general@lists.sourceforge.net
> Cheers,
> Zik
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml


      reply	other threads:[~2007-04-19 11:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19  7:45 How to structure an SPI UART driver? Zik Saleeba
2007-04-19 11:33 ` dmitry pervushin [this message]

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=1176982391.4906.4.camel@diimka.dev.rtsoft.ru \
    --to=dpervushin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zik@zikzak.net \
    /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