Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp900607pxb; Fri, 15 Apr 2022 14:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdh6U8vxOfbdMn6xp9pfm7GL4R2/7hOb0Ezsg3LPQPaharSX+aGIkao+c3SFUbKfRwtUqn X-Received: by 2002:a65:618d:0:b0:39e:2d10:6d69 with SMTP id c13-20020a65618d000000b0039e2d106d69mr746988pgv.468.1650059191979; Fri, 15 Apr 2022 14:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650059191; cv=none; d=google.com; s=arc-20160816; b=zzkKWQYMcYtZ49ox3lD1e1KvaQ6Z6an/D2f67g0HXi3b5Em3DSc5yzvMgd1XKZUYCD r+xgG3mTm6VEyM9Nz9k/dBYckjZF4Z4wDp/xcobns/4IqTDqrenqRxm+Ql0hIRSYV5cK Wh/phG/dzS1F7hza5lW/ohCJKorg1NXFIN/YH/kay9he4SepTOyeWQgf00VSBuD9aDbx nX6+1pBFOj6Ew4mcAy0TyniTX0MEEp2rfR5t92D3nxRvgz2T2Si3rZBkZZ15WVu1BXeE Ep8kPCgwUR+VvKVxYKt+3KNpz1C5WmJHUfhOlYcOIHqHLm9PiScmPws3TaGFmc+GMTxO 4kRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mOzDZgPKCeJFKlKho+EJ9pfBvN7kmckeP2vEOpMjjHs=; b=rXTNVdLJ00V+GR66+HTeJHilU9muKiiD/zXsXSLfHe8KZa0fMaqUpG2BPgMyCh3xfs ByA3b79UvS9OU9t6J0sHaqq5SqTVXC+ghTz0LEgT7tMWASoF0sQLHXj0k0nbOKlKye06 fYVuu+7O5vQr4ehcjC2w9ehExVVfrtbh+ue3WY3KgRaLRaCaU25jKJWwH3+/r++EwwfT RzYbyoGfIY3eBwdZOB1v0dl4iRvD62XOfDb/ns26cgvr6PGCV+UWyPT803aY0x2d8HOd qfqkbPQaqpuWmpuc+us8hoTzvhXnZNUTfGglie8V5c5TpL6OLVyU5Zyey4tb2PbyEH48 IsOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sd3ErO7O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a633c47000000b0039abb29d7b8si2714488pgn.397.2022.04.15.14.46.17; Fri, 15 Apr 2022 14:46:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Sd3ErO7O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245349AbiDNTmF (ORCPT + 99 others); Thu, 14 Apr 2022 15:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237966AbiDNTmB (ORCPT ); Thu, 14 Apr 2022 15:42:01 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB7E167ED for ; Thu, 14 Apr 2022 12:39:36 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id k5so10831311lfg.9 for ; Thu, 14 Apr 2022 12:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=mOzDZgPKCeJFKlKho+EJ9pfBvN7kmckeP2vEOpMjjHs=; b=Sd3ErO7OkQ9pEz0AQ+nQamORwzrUBny28QC6oShE2YXaOnXjfD6nOClX3+wYdRPM0O mgNDwXW+EUFDfgFzUZXOE8/cmWB3w2fVYhV2UWB/SPJIZfrxHlXRFHMj9fFapi44c6KD Zs/bYe0gBfE2Q9CIRweCHw9k6ZPIBpE5RPvO7r4zms6FC6BiCOqG2ki/mRmDoP0IsE61 Val1oX8jQAsEyutm+o4lfKST5KyRY71jpOpiKJrx229PwR29jYdRzsBTIa/GScFhow65 LsE7eVYXSypvjlLM9HXiTmL+leHYRuvhDALHFgzTcW63l09Tv5p4xTmUIPM4BaBbUPb0 0Dig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=mOzDZgPKCeJFKlKho+EJ9pfBvN7kmckeP2vEOpMjjHs=; b=r5/0PD88TvKkQcPM/PVgdHqUBE7TM6ANUMTVd+fP4dRTCTilVE6TgfM5JUdCIpKu0Z 2yMq+kQxAvAtkb0nTw1sEMfjvnM0Y5x1GwhbJRT4SAdRqS4uw012k10wEF+RsHeVMxuZ hxRoSekYSJczvFVuAaIxdapRnq09ul3HnOKk/VNfsiye34soT+/mywEEUB97ciV2dCjj iDQErWOd+Rf6nm3WlmsF6ibHkS8iehDfpT7DJb7/9gqr3GrfbXh+5ENv8LbUT8rxbzfE DeHhlx6kdl4nWINUB3Uae5yUwZiWwiZpaB6toWJodaYlqvkqvQP+xdxPrgzg4A6+2nFG NVhQ== X-Gm-Message-State: AOAM531HPSDsYQnoSWL1B5eepbWGIlgGIgvHvGCJbn0CD5qPj4KpAz6v 5AUNOOYLV1L2emJq5NrV9fI= X-Received: by 2002:a19:8c4b:0:b0:44a:b6a4:4873 with SMTP id i11-20020a198c4b000000b0044ab6a44873mr2753878lfj.549.1649965174316; Thu, 14 Apr 2022 12:39:34 -0700 (PDT) Received: from [192.168.1.11] ([94.103.225.17]) by smtp.gmail.com with ESMTPSA id t12-20020a2e954c000000b0024b3811ab30sm76809ljh.101.2022.04.14.12.39.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Apr 2022 12:39:34 -0700 (PDT) Message-ID: Date: Thu, 14 Apr 2022 22:39:33 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 6/7] staging: r8188eu: always log firmware info Content-Language: en-US To: Larry Finger , Michael Straube , gregkh@linuxfoundation.org Cc: phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220414083853.3422-1-straube.linux@gmail.com> <20220414083853.3422-7-straube.linux@gmail.com> <80414992-a662-e884-05ca-dcc0c8b07b99@lwfinger.net> From: Pavel Skripkin In-Reply-To: <80414992-a662-e884-05ca-dcc0c8b07b99@lwfinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Larry, On 4/14/22 18:36, Larry Finger wrote: > On 4/14/22 03:38, Michael Straube wrote: >> The local static variable log_version prevents logging the firmware >> information more than once, e.g. when the device is unplugged and >> plugged again. That is not necessary and complicates the code. Remove >> it. > > I think the slight complication of the code, one static variable and one if > statement, is worth not spamming the logs. My recollection is that there are > other cases besides unplugging and replugging that lead to the firmware being > reloaded. > What about pr_info_once? Anyway even with old code message printed only once per driver load With regards, Pavel Skripkin