From: Felipe Balbi <me@felipebalbi.com>
To: andrzej zaborowski <balrogg@gmail.com>
Cc: me@felipebalbi.com, linux-omap@vger.kernel.org,
Felipe Balbi <felipe.balbi@nokia.com>,
Ville Tervo <ville.tervo@nokia.com>
Subject: Re: [PATCH 00/34] omap drivers going upstream
Date: Mon, 1 Sep 2008 11:04:21 +0300 [thread overview]
Message-ID: <20080901080419.GW9887@frodo> (raw)
In-Reply-To: <fb249edb0808311822wa97279ale0e11bfcafc609dc@mail.gmail.com>
On Mon, Sep 01, 2008 at 03:22:23AM +0200, andrzej zaborowski wrote:
> 2008/9/1 Felipe Balbi <me@felipebalbi.com>:
> > On Sat, Aug 30, 2008 at 08:16:00PM +0300, Felipe Balbi wrote:
> >> From: Felipe Balbi <felipe.balbi@nokia.com>
> >>
> >> The following drivers are going upstream for integration.
> >> They have been sitting on linux-omap for quite a while just
> >> increasing the diff against mainline and probability of
> >> merge conflicts.
> >
> > Just one comment to this. I had to left bluetooth driver out of the
> > series because it's using omap2_block/allow_sleep in the driver code.
> > That should be fixed and the set_clock function should come via
> > platform_data to the driver.
> >
> > 53 static void hci_h4p_set_clk(struct hci_h4p_info *info, int *clock, int enable)
> > 54 {
> > 55 unsigned long flags;
> > 56
> > 57 spin_lock_irqsave(&info->clocks_lock, flags);
> > 58 if (enable && !*clock) {
> > 59 NBT_DBG_POWER("Enabling %p\n", clock);
> > 60 clk_enable(info->uart_fclk);
> > 61 #ifdef CONFIG_ARCH_OMAP2
> > 62 if (cpu_is_omap24xx()) {
> > 63 clk_enable(info->uart_iclk);
> > 64 omap2_block_sleep();
> > 65 }
> > 66 #endif
> > 67 }
> > 68 if (!enable && *clock) {
> > 69 NBT_DBG_POWER("Disabling %p\n", clock);
> > 70 clk_disable(info->uart_fclk);
> > 71 #ifdef CONFIG_ARCH_OMAP2
> > 72 if (cpu_is_omap24xx()) {
> > 73 clk_disable(info->uart_iclk);
> > 74 omap2_allow_sleep();
> > 75 }
> > 76 #endif
> > 77 }
> > 78
> > 79 *clock = enable;
> > 80 spin_unlock_irqrestore(&info->clocks_lock, flags);
> > 81 }
> >
> > That driver is full of arch specific code and should be cleaned up ASAP.
> >
> > A few things I could get by briefly looking at the driver (actualy only
> > drivers/bluetooth/hci_h4p/core.c):
>
> There's also a curious issue in hci_h4p_interrupt I hit recently but
> after looking at the rest of the driver thought it was beating a dead
> horse..., but just in case it isn't:
> the driver assumes the OMAP UART, but then it uses UART_IIR_ID which
> is only valid for standard UARTs, causing OMAP-specific Rx errors to
> be ignored silently. Turns out that on my N810 there are actually Rx
> errors reported during firmware upload, but I didn't find a better way
> to handle them than to ignore them:
>
> --- a/drivers/bluetooth/hci_h4p/core.c
> +++ b/drivers/bluetooth/hci_h4p/core.c
> @@ -482,7 +491,14 @@ static irqreturn_t hci_h4p_interrupt(int irq, void *data)
>
> NBT_DBG("In interrupt handler iir 0x%.2x\n", iir);
>
> - iir &= UART_IIR_ID;
> + iir &= 0x1e; /* OMAP UART has wider INT than UART_IIR_ID */
> +
> + /*
> + * Often Rx errors are reported but reading the receive buffer
> + * gives the correct data, so treat it as an Rx interrupt.
> + */
> + if (iir == 0xc)
> + iir = 0x4;
>
> if (iir == UART_IIR_MSI) {
> msr = hci_h4p_inb(info, UART_MSR);
>
> The tsc210x drivers should be upstreamable with the exception of ALSA
> code which needs to be converted to ASoC. Maruk Vasut found a leak in
> one error path, but I can't charge the device that has the tsc2102
> that I used for testing.
>
> I have some improvements to drivers/net/irda/omap-ir.c (clean-up and
> removing OMAP16xx specific bits to support OMAP1) but again, have no
> charger for the device.
Let's put Ville on the loop as he might be interested in it. Ville, any
comments ?
--
balbi
next prev parent reply other threads:[~2008-09-01 8:06 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 17:16 [PATCH 00/34] omap drivers going upstream Felipe Balbi
2008-08-30 17:16 ` [PATCH 01/33] add lp5521 driver Felipe Balbi
[not found] ` <1220116593-862-3-git-send-email-me@felipebalbi.com>
2008-08-30 17:16 ` [PATCH 03/33] add omap-sha1 driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 04/33] add omap gpio expander driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 05/33] add tlv320aic23 driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 06/33] add tsl2563 driver Felipe Balbi
[not found] ` <1220116593-862-8-git-send-email-me@felipebalbi.com>
2008-08-30 17:16 ` [PATCH 08/33] add innovator ps2 keypad driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 09/33] add lm8323 " Felipe Balbi
2008-08-30 17:16 ` [PATCH 10/33] Add twl4030 " Felipe Balbi
2008-08-30 17:16 ` [PATCH 11/33] add tsc2301 " Felipe Balbi
2008-08-30 17:16 ` [PATCH 12/33] Add tsc2005 touchscreen driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 13/33] Add omap " Felipe Balbi
2008-08-30 17:16 ` [PATCH 14/33] add tsc210x " Felipe Balbi
2008-08-30 17:16 ` [PATCH 15/33] add tsc2301 " Felipe Balbi
2008-08-30 17:16 ` [PATCH 16/33] add omap led drivers Felipe Balbi
2008-08-30 17:16 ` [PATCH 17/33] add tea5761 radio driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 18/33] add ov9640 sensor driver Felipe Balbi
[not found] ` <1220116593-862-20-git-send-email-me@felipebalbi.com>
2008-08-30 17:16 ` [PATCH 20/33] add omap Serial Trace Interface driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 21/33] add OMAP HighSpeed mmc controller driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 22/33] add omap nand drivers Felipe Balbi
2008-08-30 17:16 ` [PATCH 23/33] add omap irda driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 24/33] add bq27x00 battery driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 25/33] add TWL4030 Battery Charger Interface driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 26/33] add TWL4030 RealTime Clock driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 27/33] add tsc210x driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 28/33] add tsc2301 driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 29/33] add omap ehci bus glue Felipe Balbi
2008-08-30 17:16 ` [PATCH 30/33] add omap backlight support Felipe Balbi
2008-08-30 17:16 ` [PATCH 31/33] add several omap lcd drivers Felipe Balbi
2008-08-30 17:16 ` [PATCH 32/33] add omap 1-wire interface driver Felipe Balbi
2008-08-30 17:16 ` [PATCH 33/33] add bq27000 1-wire slave driver Felipe Balbi
2008-09-01 13:16 ` [PATCH 32/33] add omap 1-wire interface driver Madhusudhan Chikkature
2008-09-05 17:59 ` Tony Lindgren
2008-09-08 12:15 ` Madhusudhan Chikkature
2008-09-08 18:05 ` Tony Lindgren
2008-09-08 20:07 ` Russell King - ARM Linux
2008-09-09 13:38 ` Madhusudhan Chikkature
2008-08-31 21:12 ` [PATCH 30/33] add omap backlight support David Brownell
2008-08-31 21:23 ` Felipe Balbi
2008-08-31 21:44 ` Felipe Balbi
2008-08-31 21:09 ` [PATCH 29/33] add omap ehci bus glue David Brownell
2008-08-31 21:25 ` Felipe Balbi
2008-09-01 5:55 ` Gadiyar, Anand
2008-09-01 7:56 ` Felipe Balbi
2008-09-01 8:29 ` Gadiyar, Anand
2008-09-01 7:35 ` [PATCH 28/33] add tsc2301 driver Jarkko Nikula
2008-09-01 7:58 ` Felipe Balbi
2008-09-01 8:11 ` Jarkko Nikula
2008-09-01 8:37 ` Felipe Balbi
2008-08-31 21:08 ` [PATCH 22/33] add omap nand drivers David Brownell
2008-08-31 21:28 ` Felipe Balbi
2008-09-05 18:07 ` Tony Lindgren
2008-08-31 21:06 ` [PATCH 21/33] add OMAP HighSpeed mmc controller driver David Brownell
2008-08-31 21:31 ` Felipe Balbi
2008-08-31 21:51 ` David Brownell
2008-08-31 22:02 ` Felipe Balbi
2008-09-04 1:02 ` Tony Lindgren
2008-09-04 13:26 ` Madhusudhan Chikkature
2008-09-05 8:16 ` David Brownell
2008-09-02 22:05 ` Russell King - ARM Linux
2008-09-01 7:24 ` [PATCH 17/33] add tea5761 radio driver Jarkko Nikula
2008-09-01 7:59 ` Felipe Balbi
2008-09-03 15:01 ` Eduardo Valentin
2008-08-31 21:01 ` [PATCH 16/33] add omap led drivers David Brownell
2008-08-31 21:33 ` Felipe Balbi
2008-08-31 20:53 ` [PATCH 12/33] Add tsc2005 touchscreen driver David Brownell
2008-08-31 21:35 ` Felipe Balbi
2008-09-01 1:01 ` andrzej zaborowski
2008-09-01 7:34 ` Daniel Stone
2008-09-02 21:33 ` Russell King - ARM Linux
2008-09-07 18:47 ` David Brownell
2008-09-01 7:22 ` [PATCH 05/33] add tlv320aic23 driver Jarkko Nikula
2008-09-01 8:01 ` Felipe Balbi
2008-09-01 8:13 ` Jarkko Nikula
[not found] ` <65e025470809010802m4c12a6eeh9cf5d3a3643ff5b8@mail.gmail.com>
2008-09-01 15:03 ` Yuri Jaeger Monti
2008-09-01 15:19 ` Felipe Balbi
2008-09-04 1:40 ` Tony Lindgren
2008-08-31 20:51 ` [PATCH 04/33] add omap gpio expander driver David Brownell
2008-08-31 21:36 ` Felipe Balbi
2008-08-31 20:39 ` [PATCH 01/33] add lp5521 driver David Brownell
2008-08-31 21:41 ` Felipe Balbi
2008-08-31 22:37 ` [PATCH 00/34] omap drivers going upstream Felipe Balbi
2008-08-31 22:40 ` Felipe Balbi
2008-09-01 1:22 ` andrzej zaborowski
2008-09-01 8:04 ` Felipe Balbi [this message]
2008-09-01 1:46 ` andrzej zaborowski
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=20080901080419.GW9887@frodo \
--to=me@felipebalbi.com \
--cc=balrogg@gmail.com \
--cc=felipe.balbi@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=ville.tervo@nokia.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