From patchwork Tue Jun 4 12:08:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Fitzenreiter X-Patchwork-Id: 7843 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4VtqBw6VG6z3wxG for ; Tue, 4 Jun 2024 12:09:12 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VtqBt5w4rz15g; Tue, 4 Jun 2024 12:09:10 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4VtqBt4KzMz33D2; Tue, 4 Jun 2024 12:09:10 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4VtqBr6L4Pz2xTT for ; Tue, 4 Jun 2024 12:09:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4VtqBq22Yjz15g; Tue, 4 Jun 2024 12:09:07 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1717502947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qtJc9MV0kr0w8ROPc6qEubRvbyN9tn65xOiXaKjn64c=; b=FxHewYhR9Lj9EEHx4d5Vf9gjBi03TouocMQ7+8gkhYBpmLxyr7lI7ylS1xuyXQ8ALTUjDT HXAhgZUP5EK3GtCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1717502947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qtJc9MV0kr0w8ROPc6qEubRvbyN9tn65xOiXaKjn64c=; b=tE5PanY8uHDQrjvrTG8/HG+2SRIGzdHxxHoj3A2PkcE+vfiKiOyvzRAb8/e9h4nQuYpEf4 UCVO71213CXxPhMjYv/MI0R41lr/EhEV4jK9Jmh+gYrHy5+vCto7B7SGJ3MA+EbYulwIuO u9nRf7rQN7GGCMWarNSPRQXKjJTnopqupW3QGsrHMUYGijTnCzi4cjogINhTGAbHm2MoMv ZVx4IlLwAIk3WzN2l6dJ14jCCN09mGZLS/DYiJbd3b/oDqtKpEJtg36EWT4Ow/FoZgXr85 wOSekB9p0YGB5DYr1sIFsTs9l5sqERuUzaGXvFIvypbw0o3ArEw4+v0HHNxnGA== From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH] kernel: reset asix88179 twice like in older kernels Date: Tue, 4 Jun 2024 14:08:53 +0200 Message-Id: <20240604120853.2327-1-arne_f@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: JWEHKH4DMG4TZZA4NUJMCJHWQ5GRCZGU X-Message-ID-Hash: JWEHKH4DMG4TZZA4NUJMCJHWQ5GRCZGU X-MailFrom: arne_f@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Arne Fitzenreiter X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: the kernel developers has removed a reset at bring the device fist up to save time. At my test's this result in not detecting the link correct. This readd the reset and at my tests the device has worked. fixes #13692 Signed-off-by: Arne Fitzenreiter --- lfs/linux | 3 +++ .../linux/linux-6.6.32-asix88179_reset.patch | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/patches/linux/linux-6.6.32-asix88179_reset.patch diff --git a/lfs/linux b/lfs/linux index ca3b05119..3f5e60838 100644 --- a/lfs/linux +++ b/lfs/linux @@ -133,6 +133,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # https://bugzilla.ipfire.org/show_bug.cgi?id=12760 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-5.15-NFQUEUE-Hold-RCU-read-lock-while-calling-nf_reinject.patch + # reset ax88179 twice like in older kernels + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-6.6.32-asix88179_reset.patch + # Fix external module compile cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-6.0-fix_external_module_build.patch diff --git a/src/patches/linux/linux-6.6.32-asix88179_reset.patch b/src/patches/linux/linux-6.6.32-asix88179_reset.patch new file mode 100644 index 000000000..f0e7d09f1 --- /dev/null +++ b/src/patches/linux/linux-6.6.32-asix88179_reset.patch @@ -0,0 +1,17 @@ +diff -Naur linux-6.6.32.org/drivers/net/usb/ax88179_178a.c linux-6.6.32/drivers/net/usb/ax88179_178a.c +--- linux-6.6.32.org/drivers/net/usb/ax88179_178a.c 2024-05-25 16:22:56.000000000 +0200 ++++ linux-6.6.32/drivers/net/usb/ax88179_178a.c 2024-06-04 10:45:18.113453100 +0200 +@@ -1678,10 +1678,10 @@ + { + struct ax88179_data *ax179_data = dev->driver_priv; + +- if (ax179_data->initialized) ++// if (ax179_data->initialized) + ax88179_reset(dev); +- else +- ax179_data->initialized = 1; ++// else ++// ax179_data->initialized = 1; + + return 0; + }