Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1876908rdb; Tue, 20 Feb 2024 09:29:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVqBl7gCWFpdmbFHYGSTHe8JOPhySQu0x21ajW/uh+yxfgFfRTT+T1H94qJuvjyncYBddgS3+GefGqEIbcY8EuArnp/a8Z18h/kVUrtg== X-Google-Smtp-Source: AGHT+IHnqwPNSh5lt1aUx03t2nV1Ru5To/gd2LNXSaqmtO9+5U3+8MW07+oxr1jnPejh4WgOv13S X-Received: by 2002:a17:906:f1d1:b0:a3e:eefe:f07c with SMTP id gx17-20020a170906f1d100b00a3eeefef07cmr2202990ejb.27.1708450141936; Tue, 20 Feb 2024 09:29:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708450141; cv=pass; d=google.com; s=arc-20160816; b=TLzp4IydIsu1iRKdcDXCp3GuakHqoLHWo/QOBq2vMngnue0c4l08mk8A3Ixr2lNjln BnJSJzYBuqDzhtYU4z2jFISI0463tNTQOtwKzl3GYoZ6MfBsMIFK+AZNlGuy/a6QiL8O 37ATtdz7/SWRKLVnJjF5RjTlJQeEe2KSSWj/P4zPLKoXstSE/WugBXs+bJSkiCVViTxs fneCQRHv1WkVE1gYZ0h5CpWVwJb2x8C8E705fBbQ6Kq5In4lPJH8mUBH9RRbEdx/XkSV /ygulaGWJJQxKT/M/ZSvOt6tYNDzWo2cmngPFRWv6eza0ZoAlcptSA2Pcd4oDFnMD3KH dkcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=AdWC4W+/LjsOhSvWDNRIMPQa6C8Zeh9rwM/5JqbsVfw=; fh=9cPn02R0mpa1lFDB8ou80oj7qou8EdGO6rzFk7nBogs=; b=tO0BfEwkS2L7UHijeqL2+dKhTiOrKwkDz7WDVdQFcBewMyyGIMwYFqPpQddqd76eQQ XLneTNI2RBPjxKB6wJRnvVIkfSeY/Ypb4jSBLBHT7PKfAlmrDv8EoOtLCiV2pt1eSD0r ufYSQ7qmIl2S/NngwvpLyA/4PGbYNPTA4yayyREdf/Na0rbJaY6jKbCXLhFf/PwTK/lF RcaxBS8OgR4wIUst0ZxQc+d1B96zgjxKaULV91ccCpa8eDfPOMV7JLtxJThmrbxXcWqN zMIoa8hxpeTzi8Mn69Y7uKzF+8nhLupuqLT739cUQg+/DAHct5Sv0rszzK6o0BnVSAfY rPAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-73442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73442-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e20-20020a170906045400b00a3eee310b2fsi920659eja.1025.2024.02.20.09.29.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 09:29:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-73442-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73442-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AC6F91F21541 for ; Tue, 20 Feb 2024 17:29:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F3476C9B; Tue, 20 Feb 2024 17:28:53 +0000 (UTC) Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C9406BB3C; Tue, 20 Feb 2024 17:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.38.239.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708450132; cv=none; b=D9zIjlEJQipfjU3KHJk6JTO6dCUt9a5trvr4IoofzLWm0f6MmETRXGyO5s8nf1cRfzWvKhlZAPv5mBIncacXOY4srM9ma8RC+tbQYKS9O6X7pMd/dIwiyNHzkUyC0IB0NMh59s76J5IkG3CqGnqDMD/u02QQO9fZHVc8Zb/EBvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708450132; c=relaxed/simple; bh=oKDLccZyHEGW2g0OCb7bDldgHeaDewYT0IdMlFRFtLc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QvAEGgkxhChCEVEVDxFjRV9Y97oU5EXk5gD8Pay5KY+BRvg6/hQokoHzbMYFlMd+/nRNA+p4JZ4BuQjIU7OwFQMutKbjCcHEO+X2U6tY6oUhOy/0HykD9NciYxVIqPHbbF44Y2TvnQKc0tf4CUnpMH+OdZ56+AK1ZGpAIy6tuC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=enpas.org; spf=pass smtp.mailfrom=enpas.org; arc=none smtp.client-ip=46.38.239.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=enpas.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=enpas.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 041CAFFE54; Tue, 20 Feb 2024 17:20:04 +0000 (UTC) Message-ID: Date: Wed, 21 Feb 2024 02:20:02 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] HID: nintendo: Don't fail on setting baud rate Content-Language: en-US To: "Daniel J . Ogorchock" , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240115145000.12777-1-max@enpas.org> From: Max Staudt In-Reply-To: <20240115145000.12777-1-max@enpas.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ping :) Do you think this patch could be upstreamed to widen the controller support? Thank you for looking at this! Max On 1/15/24 23:50, Max Staudt wrote: > Some third-party controllers can't change the baud rate. > > We can still use the gamepad as-is, so let's do that. > > Signed-off-by: Max Staudt > --- > drivers/hid/hid-nintendo.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/hid/hid-nintendo.c b/drivers/hid/hid-nintendo.c > index 997c3a1adaca..8cba0612c3ae 100644 > --- a/drivers/hid/hid-nintendo.c > +++ b/drivers/hid/hid-nintendo.c > @@ -2164,8 +2164,11 @@ static int joycon_init(struct hid_device *hdev) > /* set baudrate for improved latency */ > ret = joycon_send_usb(ctlr, JC_USB_CMD_BAUDRATE_3M, HZ); > if (ret) { > + /* > + * We can function with the default baudrate. > + * Provide a warning, and continue on. > + */ > hid_err(hdev, "Failed to set baudrate; ret=%d\n", ret); > - goto out_unlock; > } > /* handshake */ > ret = joycon_send_usb(ctlr, JC_USB_CMD_HANDSHAKE, HZ);