Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3102741rdb; Tue, 6 Feb 2024 07:17:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoLz/zuuUajfx9oAgIcDG4e67o2UJorTgXGSAuYWaQSrqpGQdrPHDZBkG4LWquotY7O9QP X-Received: by 2002:a2e:8415:0:b0:2d0:afc1:d5fd with SMTP id z21-20020a2e8415000000b002d0afc1d5fdmr1899310ljg.35.1707232624294; Tue, 06 Feb 2024 07:17:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707232624; cv=pass; d=google.com; s=arc-20160816; b=D2ALdM3AKOu4h1XKNXW55npCTtZrIiOB1uTiMrJfSFUN2FznJjcRfU0YwK63Xd+NPX 3/R9mDrpFdYH4pVMkjBiQblRvxlyPMCaSyMpmzIT/BFGtp8SWdc2jQSkYxQ8LTmb9QLa 1WYnqILo+FuWVhjtFN4khX6XevjqmgK/x9AX0ZbZ4phchnGTK2fRnGelzjgDciyS006X WZSq5YolD2TGXKaisGWyG6Rbtq0a6nGF0uiX3BZsXElSH8Fw8pYoZrjo1CClwO1JAcV7 lBpKPtMQVshAZIcAJdweMCrGfqT29/vJXUBzm/YfL7J4AOX8z+1lYCE22YFLmuW2Bb+A GyMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=eTRe1AERBejyKvuOhP0jpQ8F8TBr/TzLUhUm/OfgRmc=; fh=IH8SkZaWid/N73CH8G/hD6xH/JJEDSWJ9H3vhSy7ZOQ=; b=jPjMnBs5ESMWdjkxIBNgo/TCD6IU37Qox0CdvRIpNxRZbYZCTUiRtR1/FTOeWIOmv2 JyMV0+WHSlMt6IZ2+14DsTgKv1lXmJpYebSZw2Rsi+l1lEd3Tr7i+u+R917xTQ3rFRgy /MZxn8I9FBlYBI6GWwwyTOe/7GsqS2wwRE9WiYSBXSgc877U4LSAe5R+FwVYBaJzexlK KFuKPKZixQ7cNlniHU6zKCbylzq7Hm0/NmeUPtHKQlr0Ryhp0PGZZ42+U0ddXmm8Ztri xdaRBFcwI5gMg5s+qJ06fr7tkbj5Z3glRPelhK60vAEO9ilA/iZMw8RBDva+v+6DXYUb PeJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cQphKxI/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXBsnJkktZ9U9S6JfK8nadKeh+IEdCriYC1pPXlp/gpLqGfqAJKGcMiRArZxDMBrKkwctIRLqPtGQ08K9dnwHT/Odp6OxTLsk7UOyEiLg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w19-20020a50fa93000000b005600a952076si1244787edr.553.2024.02.06.07.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55200-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cQphKxI/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 37A5C1F22ACB for ; Tue, 6 Feb 2024 15:16:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C0E138483; Tue, 6 Feb 2024 15:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cQphKxI/" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B11A4137C32; Tue, 6 Feb 2024 15:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707232274; cv=none; b=lcNLILbgjZblUXF53eItLWUOOWPKOihFvT0zwLx9rvyTjE2J2CT/6QBnUIOD5Bb7m6+dt2vRh48YGO7Otqr/xLLEt6w5JByGz1+LEP8KSsFPmQ+SZshScGg4YxIZTT9tocTwUcqNsgAozlN+M1RncYWtCdjXu/TjjyhV8fc856o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707232274; c=relaxed/simple; bh=OCse2MRBed0kmHIi9Fj9QuVp66gLc62VHDjtWvqcog8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=SUokyKH0R7U348ZT6R5KwSvHNhu3se51ZRXZE9QY0mzaM1sQIzgKWLe07NE/VGAojm/tXQ2tx1fqoq9RAc69xMm7cYRzu8ikuRBdNXVcol5kwdfSFOFGiNQOQtGHZ+paaacs7paCA7Pm5E830TOPz58uteo0EsAOkq14UvL/0Uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cQphKxI/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBE5BC433C7; Tue, 6 Feb 2024 15:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707232274; bh=OCse2MRBed0kmHIi9Fj9QuVp66gLc62VHDjtWvqcog8=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=cQphKxI/Zb79rQA7qfIMj2ubiNnH39Tarcl1h2pU1/U8fa9aV2cok95p50kdGo43+ WBeI5i/yO9xhQKfweVQznR8/zuF3/DqO5+pcI+Sp8DsZspIX9uALLpZ86t5VqEAkH7 N0BidLnGUZqa7PxHFs4Jty9zqz2VKPdghWmniblfKzu4N833E9G/yy7xULAqo9+C/T K8YWEWy03ve+Z41lxtk7LPqYGqr3QpYSZYtbSruSwUnJLnOFJoXdKRnO7B/4OHakNq ssIki+nMjfhWwg2tlGkk1dtPlINZx1B/jXVpOaJHh4Bra03FrT61tKoxa55kCaBUzk JXqqmW9o8Bg4Q== Date: Tue, 6 Feb 2024 16:11:14 +0100 (CET) From: Jiri Kosina To: Hans de Goede cc: Oleksandr Natalenko , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, =?ISO-8859-15?Q?Filipe_La=EDns?= , Bastien Nocera , Benjamin Tissoires Subject: Re: [PATCH] HID: logitech-hidpp: Do not flood kernel log In-Reply-To: <4bd022b8-e4a9-4269-a261-65fddc791ec5@redhat.com> Message-ID: References: <20240129164931.38477-1-oleksandr@natalenko.name> <4bd022b8-e4a9-4269-a261-65fddc791ec5@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 29 Jan 2024, Hans de Goede wrote: > > Since commit 680ee411a98e ("HID: logitech-hidpp: Fix connect event race") > > the following messages appear in the kernel log from time to time: > > > > logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. > > logitech-hidpp-device 0003:046D:408A.0005: HID++ 4.5 device connected. > > logitech-hidpp-device 0003:046D:4051.0006: Disconnected > > logitech-hidpp-device 0003:046D:408A.0005: Disconnected > > > > As discussed, print the first per-device "device connected" message > > at info level, demoting subsequent messages to debug level. Also, > > demote the "Disconnected message" to debug level unconditionally. > > > > Link: https://lore.kernel.org/lkml/3277085.44csPzL39Z@natalenko.name/ > > Signed-off-by: Oleksandr Natalenko > > Thanks, patch looks good to me: > > Reviewed-by: Hans de Goede Applied to hid.git#for-6.8/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs