Received: by 10.192.165.156 with SMTP id m28csp809376imm; Wed, 11 Apr 2018 07:36:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48sTggqFLv6WbBqvXVVelAt5JqoXI5OPcrrdR11C0Jm5xF+nvUXN7NGgdcfIgzh0OysgZ21 X-Received: by 2002:a17:902:322:: with SMTP id 31-v6mr5453274pld.122.1523457397319; Wed, 11 Apr 2018 07:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523457397; cv=none; d=google.com; s=arc-20160816; b=Krllxjx6JXIyKXUFf6gjYUi80mq/Pf1vGZNvUPRsXqynyBXmmOXjQP9gG3rFqIhuwK hU2/F2Kqx4uT1L9uUVO1HLZh4wXyCR1o3MdUDmNm8sHvohBOwXZbP0MJ2xD6yNjTJ8oa /uQS2QTkigpLI0qqkCYpy9iyJAUAgNTulhswGMQM3dPmabI3ysfUTuRb7tv6YWr1LqFB YhLRtqbPyk+jQrF10Uxyt+c3C7jhNOrxC1AVFxG3WFIZjdDMomaj/2A9s8DYYExiMh+D fQUpl1kFnzXmpmr3MqokBCzdzHs/OWS59z3gV5MKmHl5bKSQ9DeNvEEoOHcPN0tu/yuT Otnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=m70vF0gFZEsrJMVUcB4Xr5cDwVxOHnXiCXVfCxUKLxI=; b=deCzxezppMtYjdljrNdlvH7g0ASSseUC5njKMoYIdAr+VgDi4k1THkLoFmly7OmMTu FUPaj9YHi/Yi4GlPpZWF3wJ8+7cRfND+4rey0wmTtf83VPLFyq8KaXTgoqbK0FrZQmhy pHIkkqKgEujJCiqPX2BQh1e0CYmRYsNBYEpvsTXT6RAQCYhx1WYEWzwr/24hJviJvyLE 58eojRGH5VSOfSEldC4HqEzajSagMSg+aHMROKGjc1iEyF017FbmjPCwuWJ0Kt/DP62r XpvoRvz73DddtekcLfNzPaY0JsbpblHtSW6DB9erU+BjcGHCt3/leWTe2BY5Eh0SMyKU OHAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k78si963464pfb.250.2018.04.11.07.36.00; Wed, 11 Apr 2018 07:36:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753242AbeDKOdE (ORCPT + 99 others); Wed, 11 Apr 2018 10:33:04 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41240 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751797AbeDKOdD (ORCPT ); Wed, 11 Apr 2018 10:33:03 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 58B1613FC31D8; Wed, 11 Apr 2018 07:33:02 -0700 (PDT) Date: Wed, 11 Apr 2018 10:33:01 -0400 (EDT) Message-Id: <20180411.103301.1978874246933299635.davem@davemloft.net> To: phil@raspberrypi.org Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] lan78xx: Avoid spurious kevent 4 "error" From: David Miller In-Reply-To: <1523444567-128200-1-git-send-email-phil@raspberrypi.org> References: <1523444567-128200-1-git-send-email-phil@raspberrypi.org> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 11 Apr 2018 07:33:02 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phil Elwell Date: Wed, 11 Apr 2018 12:02:47 +0100 > lan78xx_defer_event generates an error message whenever the work item > is already scheduled. lan78xx_open defers three events - > EVENT_STAT_UPDATE, EVENT_DEV_OPEN and EVENT_LINK_RESET. Being aware > of the likelihood (or certainty) of an error message, the DEV_OPEN > event is added to the set of pending events directly, relying on > the subsequent deferral of the EVENT_LINK_RESET call to schedule the > work. Take the same precaution with EVENT_STAT_UPDATE to avoid a > totally unnecessary error message. > > Signed-off-by: Phil Elwell Applied, thank you.