Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1026359pxb; Fri, 15 Apr 2022 18:47:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynFRBIYAAXRopvDL18awtVNmtOREFzrzAayu7jwvN34pg5XFHZrgt4jw2FMqprWzt4iyxk X-Received: by 2002:a17:90a:df8f:b0:1ce:88eb:443c with SMTP id p15-20020a17090adf8f00b001ce88eb443cmr7086909pjv.25.1650073667696; Fri, 15 Apr 2022 18:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650073667; cv=none; d=google.com; s=arc-20160816; b=Xvi8OI834F96OO1UCYVHScTAf4p24Zx/7vomguXw2PUM5ExCuNwqxt9jLLpvdujzAF 7vU6kQ+ZvgSTB1n633oCO0heIoxCyqPav2FVqs12wAdlnZ7mvYZtewHAEmxSMnZ+TIDt qgpXDRagWcRXens/myjjos/ArIStyCYPVdoiHLPeYIc7gC+nE5GZRXwI4uPFNsCTN0g9 2cHafg+lqnWp74omPZeCazcUTCSHsAx3fqS6su7Hqbm3mIkGvhL96BpOGF3TMB4paD5L hrzQAwgERbFcacMzsbYLHlvAkgT2wEBgYF1kSOoJBf0lwWT6wX2/yiU/EY0xubREvKz3 kPBg== 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:sender:dkim-signature; bh=Bluv1hkXdADa/7/ZGpKxIvQTb4QNQVu1xgeDIBHpnmA=; b=o60t9AnoFlEK0T+qtTro9O3iSghXXpLLZnBcqJlthKyEnWeVqlWf7DHPYckj57uSl7 sa0sTyvSSIPhfSpfbEnvF0A1X2SNle4ZfYQT1Q0XWAqVb6ou0zuEsEtv6q/5fMZuJuBc N58OYBP12irQeTM3rM4ukXFD/wrEnKPmis6HABxvKjPiYcpgWE8hc0vaxizAIitZLuv0 O//SlGVUSwApQQKnGx3AeBtRgZ3ZAnKNtRT9xDNgtKwK1Sk2NENUVkg1Kr+cTkLroea8 F9NWCAg4gHKPKd8EtD6Lzh22mYBnSkjyVUXxnYjm0Bd64gOoboudbvu3PR1/lw9OhTPk SGzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BtHWKM9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n11-20020a63f80b000000b003a2b3fb953asi2984119pgh.298.2022.04.15.18.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BtHWKM9d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D509C18178D; Fri, 15 Apr 2022 18:10:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242126AbiDNQF6 (ORCPT + 99 others); Thu, 14 Apr 2022 12:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349398AbiDNP4s (ORCPT ); Thu, 14 Apr 2022 11:56:48 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43DA110075A for ; Thu, 14 Apr 2022 08:36:23 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id e189so5768107oia.8 for ; Thu, 14 Apr 2022 08:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Bluv1hkXdADa/7/ZGpKxIvQTb4QNQVu1xgeDIBHpnmA=; b=BtHWKM9d1THYkjT+ga4YZO4bDYrhjKTpWYIt+eZu2YVKbQVbYeaC1gj6OFTiCTMcQ3 Wzmef9FKChuZGMp0cbSCbBReu8v/CYfodfCfPs3Y/toG8PW0dm6lwO58f5fVfyFIRnAG 3ekfqjy+hiq5ivW2bxtS15HFXjPlYSn23a1JpOKiWmDKWwkbcnITy1IIaFk1ljNW4T9U zy0HGngXnzWb2pv1ZnwCuuVkE+nVSAdv24mb1jm7rc3CYGzwm+JRDqneyuvLdcZf43D3 oleo0yg1DqWl1KHkqxlxMEAMCPgbzN0j5aPN9RFYm3SIht7LJCALB18o0m7s8ExV3hJc 66cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Bluv1hkXdADa/7/ZGpKxIvQTb4QNQVu1xgeDIBHpnmA=; b=cYn2JPV+udU24fQjqMiFKoD5/Obrqm9HdnqhMyV3lUe43e/xkJNwsbiqJDiRtYxe4a DYgFcNSjmTFhJexBW+qLCOZ94n95e+c/S2eNeaEX7urs7M1sAkKLoOD7SWuzmoHAJ/NV hXVju3cp3NvYxtKfjhMYq5xQWWvXeHTcZ7ZY1ZsKB67qDB6/C5sRThW5L2HdV+FbERGr XTJKVQOHan1A0g32GiYCS4o7wtoFmFcPPKaexaw3MKD4CIqwcOfyY/XFrS6L7nLy4kD/ 0K5Z6t2P4mQvB/4uxfuSJkMxw4q47UL0czfLnItsezDI4KT/ZdzK38no3b4UkqcIcuLN JFuQ== X-Gm-Message-State: AOAM5302m3bcIY5J2uBHeKeIiiAgMgwITT9rWf+m209NdZ9baYV89Llk BGKSCxcVp3gkQI8qu5bn815oOn2qbm9cxw== X-Received: by 2002:aca:f1d4:0:b0:2ef:1fa6:3c74 with SMTP id p203-20020acaf1d4000000b002ef1fa63c74mr1812903oih.89.1649950582688; Thu, 14 Apr 2022 08:36:22 -0700 (PDT) Received: from ?IPV6:2603:8090:2005:39b3::100e? (2603-8090-2005-39b3-0000-0000-0000-100e.res6.spectrum.com. [2603:8090:2005:39b3::100e]) by smtp.gmail.com with ESMTPSA id hl26-20020a0568701b1a00b000e2ff513be1sm739212oab.55.2022.04.14.08.36.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Apr 2022 08:36:22 -0700 (PDT) Sender: Larry Finger Message-ID: <80414992-a662-e884-05ca-dcc0c8b07b99@lwfinger.net> Date: Thu, 14 Apr 2022 10:36:20 -0500 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: 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> From: Larry Finger In-Reply-To: <20220414083853.3422-7-straube.linux@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. Larry