Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp160170rdb; Sat, 27 Jan 2024 00:56:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaHqDYacnT4cvXSPq21SDDGoRHd3PYDX4VKFuFpNTknnG+BqS1edQHrjb7S8zFI5pouczJ X-Received: by 2002:a05:622a:1708:b0:42a:86ff:6a26 with SMTP id h8-20020a05622a170800b0042a86ff6a26mr1160834qtk.101.1706345786621; Sat, 27 Jan 2024 00:56:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706345786; cv=pass; d=google.com; s=arc-20160816; b=z/JkJCxwieV90RKVTsNrgY+DOhtT1zaBonmprA8F+fCZ212qvr68Xq0RmM2BPiX6y0 OybxuJVm+axzajFaK6amOdhjQPAEVN1tamP73ZljjsrRIswdXNki0beo8xz0zw4gRqOp PSRHMJOSCoOE8fDGWQUfybH8k6fVPFmf2EPyGeysQyJRdRwyHPzn6Mwt8oRrfK1ihkG4 rbN8A2CSpqhLJq42lxkZiC+4geoMSVDySbrYmAStqTZUMlhVED9akVkLg9gnDrBEXlwd JZ2VchwNg456jWsGTTNHGzYT8MsH4jHKMfTlfA4kTphvN472Myp+9VqfTroDEcRg+GKN X/Ow== 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=AEy7NMCjQ6lQa2+8h54ZLsEnnpY5CEOc+cXpwq+lxDQ=; fh=KK0LdLJ2z2QfPCpSaQ7qdCR27apq2/3U4AiT+qxR8gw=; b=ed/Re0Uer2gpOWYEPb0KLvtcjhJQEkflCE6Hwu9JC+/seAqTxVCwqvbjMH4zDeAzf1 2c2LJOAAkW6xuHXc7eOxOm7lxIjRP8StWn9ZQl/wkYwrQnPxpFLNdIB1Wl4q5nRMF+Fa e3sjNc7CBgSD+zA1Z1sV8dgx7LtgpH4wogMJwCRBnpaggIjswNQam2haomeG9dM2hTcL B9jZwLmMj/Cxt7l0JOM4fGSy8OWixuBFdzwWEiA1UBp4sATlvUbUHnddI9ww7eNZgUCs YQNDK9rL0nh9Yu/JEg+PBpPTicHiquQ4YOGyWi+fxHxkm2lRyAdAjI3liNWfsRTa7YK+ 81sw== 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-41121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41121-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m17-20020a05622a119100b0042a7f808d70si2860155qtk.188.2024.01.27.00.56.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 00:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-41121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41121-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 65A9B1C21999 for ; Sat, 27 Jan 2024 08:56:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 162D01E873; Sat, 27 Jan 2024 08:56:19 +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 B55781DA20; Sat, 27 Jan 2024 08:56:15 +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=1706345778; cv=none; b=tVO+FU19fsW4ppB3JpOEACcQskFU9rfboIRhQ027TuHsZ1gUcwsLvk+24sRYKtH5E/W6Mcimoz5WFNxF1MexTObDZInjqo/Fey6nP5wMUmtChCT3hDucAbFo5kz/Cam+OQPB2hFbgdmefDJgrOpZv/M6OPrUBrqAPZaaVI2BwaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706345778; c=relaxed/simple; bh=fKTqPFmjcbrn5mx/kpZY6Pndn77FM2q8pN7HO7W8cbA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XCv+SAnDYJKgP8WgIEML9460sIAjxN774FS2Tj4D7kInnDY4nkR4BViR51hw0MCVDjo2ZYOzDqeCriSkO+NXs/oQZ7eV/91+vr0tQQAD8Nb/fuJY1orJFLt25EuQlt/p8G6yugHR0TJxxuBuaVLV6MalGZig62KheGZZkWFxXmI= 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 71ACB1015FF; Sat, 27 Jan 2024 08:56:11 +0000 (UTC) Message-ID: <8ffc26cd-b5b3-4a29-bc6f-fad4be302044@enpas.org> Date: Sat, 27 Jan 2024 17:56:08 +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 3/7] HID: playstation: DS4: Don't fail on FW/HW version request Content-Language: en-US To: Roderick Colenbrander Cc: Roderick Colenbrander , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240115144538.12018-1-max@enpas.org> <20240115144538.12018-4-max@enpas.org> From: Max Staudt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/25/24 09:43, Roderick Colenbrander wrote: > On Mon, Jan 15, 2024 at 6:51 AM Max Staudt wrote: >> >> ret = dualshock4_get_firmware_info(ds4); >> if (ret) { >> hid_err(hdev, "Failed to get firmware info from DualShock4\n"); >> - return ERR_PTR(ret); >> + hid_err(hdev, "HW/FW version data in sysfs will be invalid.\n"); >> } > > This looks good. Perhaps could have been a hid_warn then, but err is > probably fine. I didn't think about it and kept the hid_err that was already there :) I agree, and maybe we can take this further: If this code block is not a fatal error anymore, maybe it makes sense to change *both* lines to hid_warn? If you prefer this, then I'll update the other patches accordingly. Max