From patchwork Sun May 26 20:55:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2616851 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DC25F3FD2B for ; Sun, 26 May 2013 20:56:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755161Ab3EZU4D (ORCPT ); Sun, 26 May 2013 16:56:03 -0400 Received: from mail-bk0-f47.google.com ([209.85.214.47]:54751 "EHLO mail-bk0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755119Ab3EZU4C (ORCPT ); Sun, 26 May 2013 16:56:02 -0400 Received: by mail-bk0-f47.google.com with SMTP id jg1so3292678bkc.20 for ; Sun, 26 May 2013 13:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=5YxR1wCdByhSvgTuEJ//l1qQJ94Jk3LVrPiDyAKou70=; b=h3pxMAaID1oyh3lNhIHfYbV9Ri06qPxldrp3VUGY0hUcPITbnywhu8D4CJvwUesqSc ZAaN7tK0yoLq6tzGlQDx08g5kJrhDd/CITjgFxsvvVWjaGeP0dhEz9HEU5IQ9pG5T/Ka MkfXvW1dKjpf56Rz6HC2j4STQqHT7pLR2LxggCwOd8CXwCp3gvBtHhwZfDhUq/G+QC19 O1TC/1TLqw8L6EZKC1O2cdw6kln6v/jeeb0d+tQgHOBtma6cMSYtYPu/ISmZOszmeo6T Vr52fJSi/cnL+jlBpBAqQfRpgKUykST6j/f1V2b5+Nm1c4xcBciIeQ+1458Rew9H2u0k 6Hgw== X-Received: by 10.204.76.205 with SMTP id d13mr2151708bkk.147.1369601760629; Sun, 26 May 2013 13:56:00 -0700 (PDT) Received: from localhost.localdomain (stgt-5f71b863.pool.mediaWays.net. [95.113.184.99]) by mx.google.com with ESMTPSA id og1sm3531965bkb.16.2013.05.26.13.55.58 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 May 2013 13:55:59 -0700 (PDT) From: David Herrmann To: linux-input@vger.kernel.org Cc: Jiri Kosina , David Herrmann Subject: [PATCH 27/26] HID: wiimote: init EXT/MP during device detection Date: Sun, 26 May 2013 22:55:02 +0200 Message-Id: <1369601704-2311-1-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1367788390-29835-1-git-send-email-dh.herrmann@gmail.com> References: <1367788390-29835-1-git-send-email-dh.herrmann@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org We normally get EXT hotplug events or poll for MP hotplugging so we don't need to force extension port initialization during device setup. But for gen20 devices, we disable MP polling because MP is always present. However, this prevents MP initialization during device setup and users need to plug another extension to trigger EXT/MP detection. Therefore, we now trigger EXT/MP detection during device setup automatically. This also avoids slightly delayed extension detection and provides sysfs child-devices prior to the "changed"-uevent during device setup. Signed-off-by: David Herrmann --- Hi Jiri Three trivial fixes for the pending series. If there are any issues, please let me know. And thanks for reviewing them! Cheers David drivers/hid/hid-wiimote-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index 89118e9..f54595c 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c @@ -1247,7 +1247,7 @@ static void wiimote_init_worker(struct work_struct *work) changed = true; } - if (!wiimote_init_check(wdata)) + if (changed || !wiimote_init_check(wdata)) wiimote_init_hotplug(wdata); if (changed)