Re: [PATCH 0/8] [Resend] ideapad: using EC command to control rf/camera power

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mario 'BitKoenig' Holbe
Date: Monday, August 30, 2010 - 11:19 am

Hello Ike,

On Wed, Aug 25, 2010 at 07:59:30PM +0800, Ike Panhc wrote:

Well, the pattern looks like I/O - mmapped I/O.
        Store (Arg1, \_SB.INF0)
        Store (Arg0, \_SB.BCMD)
        Store (Zero, \_SB.SMIC)
        Store (\_SB.INF0, Local0)

Note that INF0 is written before and read after writing SMIC. Hence,
for this to be useful, something must have happened inbetween, i.e.
I/O :)


What exactly do you mean with "there are some sync failed"? I don't see
anything like that in the logs.


Hmmm, I don't know if I got you right. I didn't find any new drivers to
test, so I tried to add some more debug code myself. Hope this helps.
I added some code to show_ideapad_cam() to be able to asynchronously
trigger reading of BTST, BTEN, and BTPS. As before: the patch attached
is not for inclusion but to show what I did. I'm usually not a kernel
hacker, so please take a serious look at what I did before trusting the
results :)

I attached a full protocol of actions I performed including kernel
dmesges. Typed commands are prepended by #, manual actions and comments
are enclosed in <>, kernel messages are timestamped, the rest is output
of the commands.
Basically I did the following:
0. I started with a fresh powered up system, all RF devices powered on.
1. I hw-switched RF off and back on, which went okay.
2. I sw-switched BT off and back on, which resulted in erroneous
initialization.
3. I again sw-switched BT off and back on, which resulted in BT being
completely gone.
4. I hw-switched RF off and back on, which brought BT back and
operational.

...

Hmmm, I don't understand your reasoning here.
I said the device disappears and re-appears when using the hw rf switch,
this doesn't look like it would turn off PHY only.


best regards
   Mario
-- 
We know that communication is a problem, but the company is not going to
discuss it with the employees.
                       -- Switching supervisor, AT&T Long Lines Division
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/8] ideapad: add ACPI helpers, Ike Panhc, (Wed Aug 18, 1:36 am)
[PATCH 6/8] ideapad: rewrite the hw rfkill notify, Ike Panhc, (Wed Aug 18, 1:38 am)
[PATCH 7/8] ideapad: rewrite the sw rfkill set, Ike Panhc, (Wed Aug 18, 1:38 am)
Re: [PATCH 5/8] ideapad: use EC command to control camera, Oliver Neukum, (Wed Aug 18, 1:42 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Wed Aug 18, 8:51 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Thu Aug 19, 12:31 pm)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Fri Aug 20, 2:08 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Mon Aug 30, 11:19 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Wed Sep 1, 12:56 pm)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Thu Sep 9, 11:17 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Fri Sep 10, 12:11 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Wed Sep 15, 4:48 am)
Re: [PATCH 0/8] [Resend] ideapad: using EC command to cont ..., Mario 'BitKoenig' Holbe, (Tue Sep 21, 6:47 am)