From patchwork Wed Jan 13 14:40:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Moreau X-Patchwork-Id: 8026111 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EF2E6BEEED for ; Wed, 13 Jan 2016 14:40:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 312F820515 for ; Wed, 13 Jan 2016 14:40:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 525D820513 for ; Wed, 13 Jan 2016 14:40:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755410AbcAMOkt (ORCPT ); Wed, 13 Jan 2016 09:40:49 -0500 Received: from mail-ob0-f194.google.com ([209.85.214.194]:34931 "EHLO mail-ob0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932157AbcAMOks (ORCPT ); Wed, 13 Jan 2016 09:40:48 -0500 Received: by mail-ob0-f194.google.com with SMTP id tr5so31389995obc.2 for ; Wed, 13 Jan 2016 06:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/jkbSsFSR3s5Rbzw9tZywLFxESXpCdwR/mpxH392prE=; b=FpIV66wWyaT8NImc6HCHioaIbmvNJ/sLxMYsd1UOvwi7ENzrRSr1McDGDim8VVLM/Z /KGLcLRv2BhS5bu6w20Ao2itHRFZwmi84Pc3KsllEqKovxj1/YcEs5KRF7c0/8JBc61f TO/Z/4rMep3kCUcTVJGeIrogxmPmQzi9y87tylrY1QA4rpQoltmMaPisiNHJp3IKRqxk CtyMlCo0ZmEX2F60FKj7NBybDdP9tOSS73mTkMSshbafM2eZvsXUB7kRr9BXNI71ifjq zxBdlbHojuDjI310rxj59/Fy52jVpOekzOtb8TJqoy51lx560BS7l5MnncbbQl0j+UmG q6uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/jkbSsFSR3s5Rbzw9tZywLFxESXpCdwR/mpxH392prE=; b=SjlGgRycObQklGhSOv03nyQW5toj11h9CrcvX2fWglajp24ZWP9vqLSR28yfUdRUHY 4qad5aOFbLhIKuL7zN8NKQs9qc/6MuDWR17mhaeGxc0OBWMuLbWO0mjv4fX70IM2i6Hl dI2kbeEE/9F+j1osBy46WHF0ZvbP99b821scYHp7gsR1ByVnc1nwVTVuoZ1AsUD1rCuG 1uZhVqlFPvVzEI0VeiDr1rFah2AEASkVozkBdpR4cV7lN4r9p045BIhWRc9UfQw9tD59 mrXiqH2SgVgu84SYzir7R4KHa2I9DJU6a6KjszSECYm9wOOAwfRemvhZNl0Lz3+qRc5z d/AQ== X-Gm-Message-State: ALoCoQmIbXVnQMp8Z1xf92VxZYNsGAQn3w6zHRj/X5LemqpKEG94hlkxu0x0qMcjTOppHtcWK0rsunVDpfNXZnDxwYCz6EOM8w== X-Received: by 10.60.227.104 with SMTP id rz8mr29315569oec.45.1452696047404; Wed, 13 Jan 2016 06:40:47 -0800 (PST) Received: from desktop.localdomain (c-76-120-6-42.hsd1.co.comcast.net. [76.120.6.42]) by smtp.gmail.com with ESMTPSA id u8sm664185obf.5.2016.01.13.06.40.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 06:40:47 -0800 (PST) From: Scott Moreau To: linux-input@vger.kernel.org Cc: ao2@ao2.it, jkosina@suse.cz, frank.praznik@oh.rr.com, Scott Moreau Subject: [PATCH 2/2] HID: sony: Fixup output reports for the nyko core controller Date: Wed, 13 Jan 2016 07:40:43 -0700 Message-Id: <1452696043-18362-2-git-send-email-oreaus@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452696043-18362-1-git-send-email-oreaus@gmail.com> References: <1452696043-18362-1-git-send-email-oreaus@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The nyko core controller uses the same output report format as the sixaxis controllers, but it expects the report id at offset 1. This does not interfere with the official controllers as this byte is considered a padding byte by the current code. Signed-off-by: Scott Moreau --- drivers/hid/hid-sony.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index ea13de0..fdd92a1 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -1798,7 +1798,7 @@ static void sixaxis_state_worker(struct work_struct *work) static const union sixaxis_output_report_01 default_report = { .buf = { 0x01, - 0x00, 0xff, 0x00, 0xff, 0x00, + 0x01, 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x27, 0x10, 0x00, 0x32, 0xff, 0x27, 0x10, 0x00, 0x32,