Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3308988rdb; Thu, 16 Nov 2023 06:19:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1ljmQbJzf0/pYvKfQ+/upUfApq2gQRgMOrTB59yVLGsEoFJFohroTdEoHWN5AGb4jLLyb X-Received: by 2002:a05:6a21:3286:b0:186:c3a1:6687 with SMTP id yt6-20020a056a21328600b00186c3a16687mr11157567pzb.33.1700144339658; Thu, 16 Nov 2023 06:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700144339; cv=none; d=google.com; s=arc-20160816; b=qNw3+EOesp93vI77UtaFtTHS8YF5DxsR4ncfLIURREKM1U4Cg6aP96nqbs5/kEP6kf 0JvtAh1rrAiuR7yrrNnvo8Aw1UqjoDFdzdbriRcKY2LUHOsksQ1S53OBcfOOf7NzU/+F 7IdY2AISB4VLZZDCEMJOASeejtvXBG/410tKB7G1ZTK7sVmkuF+qGMM7SypE55Au69+Y zrEpF4ASz+sMMCStMmXgbYKdvydW3h4FqHLfwW4SoV0yFIfVlBGO7ezcQA+5/nf/MWHV +/k6ujK7n8bNZ+1zEofG1A9fjOjQM8pKAFTgUuOIelvju0wyFBbLz9yVcX2iyZNoIbPv R/Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=greVKMKfr76MqoUq6gz6BvckYAphWjbfLaTerpqXr4c=; fh=nf6Qz1Mfq0+OmZWwWxCbqshDWgwR4bVU+SPtrpTWn10=; b=N0WySxubH8nBerQJLr8rVPFRDIqRWe+Z2JcZEenrsv1n14mMh1l00mzYrcen4+ePlL d2JNZYv30rcmGcD4O9KBKYGdDnKXHzqBb7rKRHzSv+Xoml1E6upIV3KUYVQXA0FIlWwJ 0Xxbo1GLIiPQQr9+fROZzlOemXV7nYTlxeJzNFZde/6Q5Xk1j+0LS0U6t8JGDXg6uud2 qJWeBL5/VS6zRefd9NcOvHEPT3tM6jyjLgzxGKnA16XezZ3XxRrurhtMN25FVaojeBXA aTar0NJV56JPz6xt6ADqTdyEQsrj8yVmLbhxv8BqDmvJ/29NpsuuAoHIGVYht0zMLtvg TD4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=daSBYZXm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id by41-20020a056a0205a900b005be209ac7fesi12914711pgb.744.2023.11.16.06.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:18:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=daSBYZXm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7F0F7819CC1B; Thu, 16 Nov 2023 06:18:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345253AbjKPOS3 (ORCPT + 99 others); Thu, 16 Nov 2023 09:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232326AbjKPOS2 (ORCPT ); Thu, 16 Nov 2023 09:18:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB83698 for ; Thu, 16 Nov 2023 06:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700144304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=greVKMKfr76MqoUq6gz6BvckYAphWjbfLaTerpqXr4c=; b=daSBYZXmz5F9RLls8F2NFpB5EZXfQU3YryFEZYfEatSbxDEH8nrBFQ3i1JWwihMsYbF8Ua z5yFUgduVMchPDPdPGlqoFvzPqKCHdtaJ8L0y6pic/ViQ4bnNNxuIF8DMgrn+JZsr77EYD EN/YJhOMAxh0zZueclNeGx2jGmEKgMw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-C0cl4XhrPL2OSimzHsOHDw-1; Thu, 16 Nov 2023 09:18:20 -0500 X-MC-Unique: C0cl4XhrPL2OSimzHsOHDw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 20E9D1C06909; Thu, 16 Nov 2023 14:18:20 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id A12A81121306; Thu, 16 Nov 2023 14:18:17 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: pabeni@redhat.com Cc: davem@davemloft.net, edumazet@google.com, jtornosm@redhat.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, weihao.bj@ieisystem.com Subject: Re: [PATCH 2/2] net: usb: ax88179_178a: avoid two consecutive device resets Date: Thu, 16 Nov 2023 15:18:15 +0100 Message-ID: <20231116141816.21950-1-jtornosm@redhat.com> In-Reply-To: <020ff11184bb22909287ef68d97c00f7d2c73bd6.camel@redhat.com> References: <020ff11184bb22909287ef68d97c00f7d2c73bd6.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:18:57 -0800 (PST) On Thu, Nov 16, 2023 at 10:42 AM Paolo Abeni wrote: > We need a suitable Fixes tag even here ;) Ok, I will add it in my next version. > > --- > >  drivers/net/usb/ax88179_178a.c | 13 ------------- > >  1 file changed, 13 deletions(-) > > > > diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c > > index 4ea0e155bb0d..864c6fc2db33 100644 > > --- a/drivers/net/usb/ax88179_178a.c > > +++ b/drivers/net/usb/ax88179_178a.c > > @@ -1678,7 +1678,6 @@ static const struct driver_info ax88179_info = { > >       .unbind = ax88179_unbind, > >       .status = ax88179_status, > >       .link_reset = ax88179_link_reset, > > -     .reset = ax88179_reset, > >       .stop = ax88179_stop, > >       .flags = FLAG_ETHER | FLAG_FRAMING_AX, > >       .rx_fixup = ax88179_rx_fixup, > > This looks potentially dangerous, as the device will not get a reset in > down/up cycles; *possibly* dropping the reset call from ax88179_bind() > would be safer. Ok, I had the doubt about which reset would be the best, because it seemed to me that reset would be better as soon as possible. I will try what you say to avoid down/up cycles. > In both cases touching so many H/W variant with testing available on a > single one sounds dangerous. Is the unneeded 2nd reset causing any > specific issue? Actually, this double reboot somewhat masked the first problem, because the probability of getting a successful initialization, if there is a previous problem seems to be higher. So, it is not strictly needed but I think it is better to avoid a second unnecessary reset. Ok, if I modify the call from ax88179_bind() I will be respecting the reset operation of all devices. Thanks Best regards José Ignacio