Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp427906rdh; Wed, 7 Feb 2024 08:42:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCLrhs9v3NulfYNTQh+RybqribfPulomFVfZ6AhePRj0PQK1zjuGQaSDs2Bhv8iKlLtLq+ X-Received: by 2002:a05:6358:7e4a:b0:176:cf6d:20a6 with SMTP id p10-20020a0563587e4a00b00176cf6d20a6mr3333917rwm.19.1707324121769; Wed, 07 Feb 2024 08:42:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707324121; cv=pass; d=google.com; s=arc-20160816; b=QDm7ctf8F5PC8V6l7rpj3LgvZdXBUfrY/QxhpgdOfr7+cazUnls5SZsxUKnDgSj+xa Shm6i1bW7t0JqQcp9G190n/sVyr4iokpyhRHMr+pY/WPPD4qCSYLX2cIaNlk16MGbYWV HOUKaMpGJG6nBpH03Yajos0Z4OMO6sv+5SvDXPeT2wfQbSx6m5/QuX6QxxMBqfCAdXOK +pPSv3HTGuic6nuC/Tb1EnNDwUUyHyCk/OEnsDqg3zKOKQvTPeBeILScmWnJOO4MrsFG 0Y9RfYqkwOzIARaCFWZGHy+pVTlwcIWOiUbylQrYfIqToBYS08geMV3cBM+vmorSKtmn /FIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9XoQ1cGEBVAP26sn/kYXSlqM2SvncsCnA71ZRUcS508=; fh=8LIiepR+5Pun6mG9X+mVX8lPzHFPFVXpoOO9ScOrflM=; b=MOtHlQGUeqGPsV66V0HCTmYiLSRQrmhXx5qBWEq1V8t3iJJbzPu8/zn59B9UFA9hRB /OvnYrGA1hlIReZzQSzopoIZwtOkfL4In7MHK82mV/pGnHiiiA5Ru0+EiD6duNs6ZpsG XtSsZCYlj7Cyql/4avvUPTdzhKCbuq+9YsV4vR+hzg7faIUSKQXc9CdPyy9nDiWPcT7f xX6RbUFPVzjQXYxkeQwdwpcRfybMvxOR5Yy/GbsQXBIVaScZVnfpJYn/2k6uUsruJ2Yn JDL5fRl1d01Sl8vZ2roW/UPVbJ1QM9A1OMCVGDK3v37zDiRffl+o0Bw1uFXJyxWbRKN0 vsHA==; 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-56780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56780-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXOBfv7RmUeUhExizEfMmLesNBvHk9JoTJYbFPjCsh2Myr4jTJAIeUAr1mWjz0rZUrN4HtbfgO8xjfz/ViM96gbc5yjhijL+eJn4S87qA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z23-20020a637e17000000b005d4664c06cbsi1887051pgc.227.2024.02.07.08.42.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:42:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-56780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56780-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 02F35B289DF for ; Wed, 7 Feb 2024 16:38:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7D0082D8C; Wed, 7 Feb 2024 16:37:43 +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 7E045823BF; Wed, 7 Feb 2024 16:37:41 +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=1707323863; cv=none; b=iZ6IJItjKGV+Xkema5l8n5dq/GfxxZ/4JKY55dO5/bjdaXDD3DxWP2hwKuXHsb0brkRUPKFyCPA3Re+Hbkp5TeOzEl3WBOHNkM/dzA1DIUVp5m2zUzmz7iBkdCNlSFiNry7KT6CXR+XcW8X3zy5EqsXVzXzpaOZ40k/FKmrEDBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707323863; c=relaxed/simple; bh=lOHItdgJbiCuF+QTQQRRcLdSwBfpIamrEpzDEwqonUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fuqZhe5xJt33j/2XwLLNQbN3yP+jCMIv2PXs1jAPoe3/CR8vVGtHVuKZHdjGqYiWwiB1fwOUe7w3fx69qRWTJhvfpmODtRShQyUCICOp3ofvkZxiEwAETPBMgdqSdAcawhb8pz7JSM5uz3QvpgRztXAbmD4ExkkA5YdVsLLt8+0= 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 C04F7100BB9; Wed, 7 Feb 2024 16:37:31 +0000 (UTC) From: Max Staudt To: Roderick Colenbrander , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, max@enpas.org Subject: [PATCH v2 2/5] HID: playstation: DS4: Don't fail on FW/HW version request Date: Thu, 8 Feb 2024 01:36:44 +0900 Message-Id: <20240207163647.15792-3-max@enpas.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240207163647.15792-1-max@enpas.org> References: <20240207163647.15792-1-max@enpas.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some third-party controllers can't report firmware/hardware version. Unlike for the DualSense, the driver does not use these values for anything in the DualShock 4 case, but merely exposes them via sysfs. They will simply be 0x0. Signed-off-by: Max Staudt --- drivers/hid/hid-playstation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c index 7f50e13601f0..df50ca4dab90 100644 --- a/drivers/hid/hid-playstation.c +++ b/drivers/hid/hid-playstation.c @@ -2558,8 +2558,8 @@ static struct ps_device *dualshock4_create(struct hid_device *hdev) ret = dualshock4_get_firmware_info(ds4); if (ret) { - hid_err(hdev, "Failed to get firmware info from DualShock4\n"); - return ERR_PTR(ret); + hid_warn(hdev, "Failed to get firmware info from DualShock4\n"); + hid_warn(hdev, "HW/FW version data in sysfs will be invalid.\n"); } ret = ps_devices_list_add(ps_dev); -- 2.39.2