Received: by 10.223.164.202 with SMTP id h10csp630154wrb; Thu, 9 Nov 2017 00:25:26 -0800 (PST) X-Google-Smtp-Source: ABhQp+QdHKghUxnmDH4HQMqJGakkyW9pGAgenC0NBcUu6/1eSwAv06hCKdWcE/ch7oizhJzmtH3C X-Received: by 10.98.65.218 with SMTP id g87mr3344010pfd.105.1510215926472; Thu, 09 Nov 2017 00:25:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510215926; cv=none; d=google.com; s=arc-20160816; b=GXC50eMoq1Yw6vuEHBeI/RRwcv1hB1xxIuDeOnp32NMXIPzxTL2DTtKE40wZolXXgX DIHE3NyyR2snVnu0Sprgd0EkwX6YTBxZtIFkU6IfxsVrzyVCtAiuowBgr2bysl0ptaQH Aj1dcV5fOSjR5MhetVumxbUXXk0Z9W4DgGFNfqkioz7BWDDi7B51OHFVdwR3dJMN1Ye2 BSfaDgNnhVUIaYw9N8pkUbagd/YyczWGoJX4b4hUFN+lJ2EjTtT5dpZ7MraP3gJ1m7yF 7Oe6rABv9YuAiOXOT3oeeGLRCIqSTNfYtuTGyuCnbO/tn5knjdBamjURkicwY9S1NOdJ PkbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=AYhjokvbZ7fWdvab0x12PED9Fe8uVMCJNBAzUD5t+BQ=; b=DBiVEUxY6Z8rv06J5Xr7gEwBPTudLDqYnAlEJ9BPj+NQySQfSkCl5JfBNHicJHN30d dR8lmg5v3AJHuQOj+HTNLOOrJQVvts+7epBffsgRhGmjyiWnDMYdaENxgdcrfW8b9Fx1 aicDdMJNz0SWHBvhajfohSalD2WemrdY06nCfUkLvGgV0p4tnX8WAy3VifcpQObdKSBG NzbpwN4P/geaFXeU6n86d9KAkZuMsaCTpQj+SP8Foul1c0uY/9aXkYNq5ahd31PmyOZD nM1evRSLIMs1i8N9yyKX1qUF1EQJxRsCZ2jBAg770zvyvAGONAQVuDfTTnoJYarqGy/n sFEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=Gbjk2kvv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si5629823plb.661.2017.11.09.00.25.15; Thu, 09 Nov 2017 00:25:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=Gbjk2kvv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753411AbdKIIY0 (ORCPT + 82 others); Thu, 9 Nov 2017 03:24:26 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:52150 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753269AbdKIIYY (ORCPT ); Thu, 9 Nov 2017 03:24:24 -0500 Received: by mail-wr0-f195.google.com with SMTP id j15so4783212wre.8 for ; Thu, 09 Nov 2017 00:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=AYhjokvbZ7fWdvab0x12PED9Fe8uVMCJNBAzUD5t+BQ=; b=Gbjk2kvvrENen29Bh0nQd9NJ9g3rGKNetZv3CHU3mlUPOP+Td6LvdXQzV8b4IzNEGo +Oy4twbCwyDI0epcR0Jc4kx9WHW5o+yQ0RXVHF7v0rwY7CiMygHT+aqJk97vQhusYzxR EyBwywBLSRGOrMVnptyGoNaSeradstU8STgcPRDkGVligWBEi9olmhkxhun88DMXGQU3 ptRM9rueAbrkG4/95Q7ioHO/Mxu8P3yFHlZngaPL9b9Mm1f1ldUU9PFxcBNz1rUyEYPz W1BsnkodWLYIpOOMUwpsl+j+GB7i7p4KpJRzsqnnEvDiaHMGSBkJ74IG569mzHNaGCsU W2aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=AYhjokvbZ7fWdvab0x12PED9Fe8uVMCJNBAzUD5t+BQ=; b=XMFShRkug3WWjITiXwp7lbXWW+f+7Euk+ieXJmoVAKVRaZVh2rbHH0fIi/BC+dGzva 28I0CNagX5Itpbc+A5Ny40GLysYYnHCs6CAZw7nnNf6eWPL0O9gG2vdC6K+O/bfkEK80 5Ejd/hK9vV/HFhGsw0C9cVDsCCb8+5vjeY3dDGYroPxd+vJbkbDZxkQZjsGzowEc/ZZT BZqDwpFxXZPcePSfblFCdCoAEGy1cfoOh2Ay8tCkrx3SER0t226LGnWSBsYHvmZvJEVZ uJbiqbdv8vgny5hxHRnNIZfYogsOtdxa2/6phaO+k4GPADSIA8cVbT+oS1GaqYEQ2I1J gTwA== X-Gm-Message-State: AJaThX7wmAoPX/RWMk/yWUdhd/EoNk1BcsoLVTSx7As00UoUHMSEhev/ mezN2vz+I615GjN8+dBtNICbvQ== X-Received: by 10.223.167.65 with SMTP id e1mr2849125wrd.280.1510215863694; Thu, 09 Nov 2017 00:24:23 -0800 (PST) Received: from ix.localnet ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id y145sm6210064wmd.40.2017.11.09.00.24.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2017 00:24:23 -0800 (PST) From: Szymon Janc To: Bastien Nocera Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina Subject: Re: [PATCH] HID: sony: Fix SHANWAN pad rumbling on USB Date: Thu, 09 Nov 2017 09:24:21 +0100 Message-ID: <2042668.WNNEdIESQl@ix> Organization: CODECOUP In-Reply-To: <20171107142447.11810-1-hadess@hadess.net> References: <20171107142447.11810-1-hadess@hadess.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tuesday, 7 November 2017 15:24:47 CET Bastien Nocera wrote: > The SHANWAN PS3 clone joypad will start its rumble motors as soon as > it is plugged in via USB. As the additional USB interrupt does nothing on > the original PS3 Sixaxis joypads, and makes a number of other > clone joypads actually start sending data, disable that call for > the SHANWAN so the rumble motors aren't started on plug. > > Signed-off-by: Bastien Nocera > --- > drivers/hid/hid-sony.c | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c > index d03203a82e8f..b9dc3ac4d4aa 100644 > --- a/drivers/hid/hid-sony.c > +++ b/drivers/hid/hid-sony.c > @@ -1439,10 +1439,16 @@ static int sixaxis_set_operational_usb(struct > hid_device *hdev) goto out; > } > > - ret = hid_hw_output_report(hdev, buf, 1); > - if (ret < 0) { > - hid_info(hdev, "can't set operational mode: step 3, ignoring\n"); > - ret = 0; > + /* > + * But the USB interrupt would cause SHANWAN controllers to > + * start rumbling non-stop. > + */ > + if (strcmp(hdev->name, "SHANWAN PS3 GamePad")) { > + ret = hid_hw_output_report(hdev, buf, 1); > + if (ret < 0) { > + hid_info(hdev, "can't set operational mode: step 3, ignoring\n"); > + ret = 0; > + } > } > > out: Works for me! Tested-by: Szymon Janc -- pozdrawiam Szymon Janc From 1583418373772934922@xxx Tue Nov 07 14:37:15 +0000 2017 X-GM-THRID: 1583418373772934922 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread