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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Par-Gunnar Hjalmdahl
Date: Monday, December 6, 2010 - 5:01 am

Hi Vitaly,

2010/12/6 Vitaly Wool <vitalywool@gmail.com>:

There are no GPIOs or similar in the driver code; those are defined
and used in the board specific files under the /arch/ files. What
could be a problem with a future chip would be if for example the HCI
command to change baud rate would change. We have no indication that
this will change, but I cannot give a lifetime guarantee that nothing
will ever change with how the chip startup is handled.


Well, from what I can see LL is an extension of the H4, basically it
adds sleep mode handling in a vendor specific way to the normal H4
protocol. So it is also based on the hci_h4 just as our file is. But
our file has basically nothing in common with what has been for the LL
file. We don't support any of the LL sleep commands for example.
So if I would make a driver for a combo chip supporting LL, I would
either modify the existing hci_ll.c or I would make a new file based
on hci_ll.c. There is not much you could really reuse from our new
file. Basically it would be the handling of any common channels, so if
you would for example have the same specification of FM and GPS you
could maybe save around 20 lines of common code, but you would
probably have to add a lot of more code just to keep the solution
generic.
One major difference is also that hci_ll never changes baud rate or
other settings. I assume that is done from hciattach during startup
instead. But we cannot run with that since we have to shut down the
chip when no user is connected in order to save power. This means that
we have to add vendor specific commands in order to for example set
baud rate. And then you run into these vendor specific problems. If
there would be a standardized specification on how to set baud rate
and how to put chip in sleep I assume things could be solved
differently, but that is not the case.

As a quick answer to your question: that would depend on the
difference between the different controllers, I guess. But CG2900
doesn't support the LL protocol so it is not an issue for that.

/P-G
--
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 ..., Par-Gunnar Hjalmdahl, (Wed Dec 8, 5:21 am)