All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Yanovich <ynvich@gmail.com>
To: linux-acpi@vger.kernel.org
Cc: malattia@linux.it
Subject: Re: [PATCH 3/3] Synchronize wireless power state with hardware for Sony laptops
Date: Sat, 19 Apr 2008 02:45:05 +0300	[thread overview]
Message-ID: <48093281.8030405@gmail.com> (raw)
In-Reply-To: <1208558495-22792-3-git-send-email-ynvich@gmail.com>

Sergey Yanovich wrote:
> The drivers stores own representation of wireless power states. Since
> hardware switch takes presedence over software controls, internal
> data goes out of sync with device state, after the hardware switch
> is toggled.
> 
> This patch safeguards itself against possible conflicts with earlier
> models, and will only have any effect on the latest Type 4 devices.
> ---


> @@ -1833,11 +1846,15 @@ static ssize_t sony_pic_wifipower_show(struct device *dev,
>  static void __sony_pic_set_bluetoothpower(u8 state)
>  {
>  	state = !!state;
> -	if (spic_dev.bluetooth_power == state)
> +	mutex_lock(&spic_dev.lock);

This is redundant and causing a deadlock :) Correction follows.


-- 
Sergey Yanovich

  reply	other threads:[~2008-04-18 23:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 22:41 [PATCH 1/3] Correctly detect Sony TX770P PIC device type Sergey Yanovich
2008-04-18 22:41 ` [PATCH 2/3] Add control over wifi power in Sony laptops Sergey Yanovich
2008-04-18 22:41   ` [PATCH 3/3] Synchronize wireless power state with hardware for " Sergey Yanovich
2008-04-18 23:45     ` Sergey Yanovich [this message]
2008-04-18 23:51       ` Sergey Yanovich
2008-04-29 13:38         ` [PATCH] acpi: synchronize wireless power state " Sergey Yanovich
2008-04-18 23:59     ` [PATCH 3/3] Synchronize wireless power state with hardware " Sergey Yanovich
2008-04-29 13:36   ` [PATCH] acpi: add control over wifi power in " Sergey Yanovich
2008-04-27  6:15 ` [PATCH 1/3] Correctly detect Sony TX770P PIC device type Mattia Dongili
2008-04-29  8:52   ` Sergey Yanovich
2008-04-29 11:45     ` Mattia Dongili

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=48093281.8030405@gmail.com \
    --to=ynvich@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=malattia@linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.