Re: Motorola did it again...

2009-05-03 Thread Ilya Petrov
> BTW, does anyone know which code names (Barbados, Hainan, Macau etc) match > to which phones? it`s described in wiki. iirc: HAINAN == A1200 SUMATRA == E2 MODEL == E6 Martinique == A910 -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@jabber.ru

Re: Motorola did it again...

2009-05-03 Thread Konstantin Svist
Jonathan Wilson wrote: > Daniel Ribeiro wrote: > > 1. E6 source code > > 2. Unrelease/unknown phones source code > > 3. A1600 source code > > 4. pcap_test.c with all that we ever wanted to know about pcap! > > 5. Probably more.. > Nice find. > And everything interesting has a GPL header attached wh

Re: Motorola did it again...

2009-05-03 Thread Jonathan Wilson
Daniel Ribeiro wrote: > 1. E6 source code > 2. Unrelease/unknown phones source code > 3. A1600 source code > 4. pcap_test.c with all that we ever wanted to know about pcap! > 5. Probably more.. Nice find. And everything interesting has a GPL header attached which means its hard for Moto to come b

Re: Motorola did it again...

2009-05-03 Thread Daniel Ribeiro
Em Dom, 2009-05-03 às 19:07 -0300, Daniel Ribeiro escreveu: > Hi all! > > Yes, they forgot to do the usual clean-up! And this time its really > great for us!!! > > The A1200E kernel source release on opensource.motorola.com contains a > lot of stuff they didnt really want to release, im just star

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Daniel Ribeiro
Em Dom, 2009-05-03 às 19:10 -0300, Daniel Ribeiro escreveu: > No. But ISR bits need to be cleared after each event. Not all, but the > ones that you want to monitor. Err, just to add on this, ISR bits are cleared by writing an 1 to it. -- Daniel Ribeiro

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Daniel Ribeiro
Em Seg, 2009-05-04 às 00:20 +0300, Ilya Petrov escreveu: > 2009/5/3 Daniel Ribeiro : > > Em Dom, 2009-05-03 às 22:41 +0300, Ilya Petrov escreveu: > >> 2009/5/3 Daniel Ribeiro : > >> > EOC will interrupt PXA when you connect the cable. > >> > >> ok. how can i catch this? > > > > Isnt it being caught

Motorola did it again...

2009-05-03 Thread Daniel Ribeiro
Hi all! Yes, they forgot to do the usual clean-up! And this time its really great for us!!! The A1200E kernel source release on opensource.motorola.com contains a lot of stuff they didnt really want to release, im just starting to look at it now, but so far i found: 1. E6 source code 2. Unreleas

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
> strange. i tried this first: it doesn`t execute on every plug/unplug of cable > maby this should be written after every event? ok. looks like we should write something like eoc_reg_write(EOC_REG_INT_STATUS, 0xff); at the end of eoc_work to make eoc_irq working more then once -- wbr, Ily

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
2009/5/3 Daniel Ribeiro : > Em Dom, 2009-05-03 às 22:41 +0300, Ilya Petrov escreveu: >> 2009/5/3 Daniel Ribeiro : >> > EOC will interrupt PXA when you connect the cable. >> >> ok. how can i catch this? > > Isnt it being caught already? Last time i checked this part of the code > it was working... >

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Daniel Ribeiro
Em Dom, 2009-05-03 às 22:47 +0300, Ilya Petrov escreveu: > I also have a problem with eoc_set_current_limit and other regulator > functions: > afaik, they are all called from interrupt context, so they cant work > as they written now. > > maby we should add write queue for this? Yes, if they are

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Daniel Ribeiro
Em Dom, 2009-05-03 às 22:41 +0300, Ilya Petrov escreveu: > 2009/5/3 Daniel Ribeiro : > > EOC will interrupt PXA when you connect the cable. > > ok. how can i catch this? Isnt it being caught already? Last time i checked this part of the code it was working... Its GPIO10, set to eoc_irq(), which

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
I also have a problem with eoc_set_current_limit and other regulator functions: afaik, they are all called from interrupt context, so they cant work as they written now. maby we should add write queue for this? -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@jabber.ru

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
2009/5/3 Daniel Ribeiro : > EOC will interrupt PXA when you connect the cable. ok. how can i catch this? -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@jabber.ru

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Daniel Ribeiro
Em Dom, 2009-05-03 às 20:53 +0300, Ilya Petrov escreveu: > Hi! > > Take a look at these two patches. > ezx-eoc patch adds functions to check usb/ac connected state > ezx.c patch adds pda-power platform device to use this functions to > control charge process and tell usb/ac connection state to use

Re: [patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
dammm.. i should set indent before testing :-\ -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@jabber.ru

[patch] ezx-eoc and pda-power

2009-05-03 Thread Ilya Petrov
Hi! Take a look at these two patches. ezx-eoc patch adds functions to check usb/ac connected state ezx.c patch adds pda-power platform device to use this functions to control charge process and tell usb/ac connection state to userspace via sysfs -- wbr, Ilya ICQ: none, Jabber: ilya.muro...@ja