Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson CG2900.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Monday, December 6, 2010 - 4:07 pm

On Monday 06 December 2010 22:24:34 Vitaly Wool wrote:

Ah, it had not occured to me to look in drivers/misc. Looking at the
code over there, it becomes much clearer what your point is. Evidently
the ti-st driver implements a line discipline similar to, but conflicting
with hci_ldisc, and it has its own copy of the hci_ll code.

I guess this is exactly what we're trying to avoid having with the
cg2900 code ;-).


Agreed.
 

The question is how it should be modeled in a better way than today.

I believe we already agree it should be something like

   bt   ti-radio    st-e-radio    ti-gps   st-e-gps  broadcom-radio ...
   |         |          |            |          |          |         |
   +---------+----------+---------+--+----------+----------+---------+
                                  |
                          common-hci-module
                                  |
                      +-----------+-----------+
                      |        |       |      |
                    serial    spi     i2c    ...


Any objections to this?

If you agree, I think we should discuss the alternatives for the common
module. I think you are saying we should make the common module a single
ldisc doing the multiplexing and have all transports register as ttys into
it, right?

What we discussed before was to split it into multiple modules, one for
the tty ldisc and one for the common code, and then have the spi/i2c/...
drivers feed into the common multiplexer without going through tty.

I don't currently see a significant advantage or disadvantage with either
approach.

	Arnd
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/9] mfd: Add UART support for the ST-Ericsson CG2900., Par-Gunnar Hjalmdahl, (Fri Oct 22, 3:38 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Oct 22, 7:54 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Thu Oct 28, 3:37 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Oct 29, 4:53 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Oct 29, 4:58 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Oct 29, 5:08 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Nov 5, 10:02 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Thu Nov 11, 7:28 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Thu Nov 11, 7:40 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Fri Dec 3, 2:16 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Mon Dec 6, 2:06 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Mon Dec 6, 5:01 am)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Arnd Bergmann, (Mon Dec 6, 4:07 pm)
Re: [PATCH 5/9] mfd: Add UART support for the ST-Ericsson ..., Par-Gunnar Hjalmdahl, (Wed Dec 8, 5:21 am)