From patchwork Mon Jan 23 20:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 4425 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1810640wrn; Mon, 23 Jan 2023 12:55:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXsaPGE0lfvpQmG8qp3TPm7xb1HfsHcVAz6Iwow36A5jKufEkzHcL9YTg8+T+avl414Fn3RU X-Received: by 2002:a17:906:4d0a:b0:84d:3e38:2f0c with SMTP id r10-20020a1709064d0a00b0084d3e382f0cmr40853136eju.67.1674507302504; Mon, 23 Jan 2023 12:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674507302; cv=none; d=google.com; s=arc-20160816; b=RCvPOypBmHBVtEE/o56YvfxHV2iu6a3B35qvDNtwouYJbkvyBhkmYuqv2tLdPYHR1h IYuwSelCbtmEMSCwOP8BHjkYWHlv3VJNo4RzWlZJWVK4Hg2IyWLX9ajrk0E/FidgIimx k8Yh7iLd+4IAxY8Ygh0lSqY9y3BjiAonV4fWlNG7PFwWY98qk2J4DJESx6yuDngGvLKO 2TDgoGcbS/gyz9Ymk8Fvot2sQRTB1nkd+KZOtwwZMezMIWkGP92kSmHmGxyhCmWO7wix FWdgyGgabIuurNtv335C0/t6iHuv82TZhrr6P/c7RFzlYlqcKJktJ3k3/ZtuyhuayMKr kdZQ== 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 :message-id:date:subject:cc:to:from; bh=4QOOZV/bi9rQ9hUwwQds9F6osm1xPLq7Rt3ddvvt1yw=; b=ZoOAJAnpelkq5q4zqo1RP3leYznPawgbx9tNe7rfYVoi3F9vtTOWU4n5VGf8qaS2S/ 7kzUyZENwI+0v4qt3o+TCU8Aug1vwzUpnnTf0waU+5ShUMIJb4VjXWZmZszhTDvntOop Ng/wcwZxoeXhRSHYgr8dySjbUk5OgRVTbH+8EDSnlv+DnL6TAZzzdkAkTAlBSvWv3pN1 /wGqAQxgiLdXXOhP91GpsRcfGZ9OrudC1KrWs39A7qX5KdCMEFs1ODXTDjzR+psV/Ji/ zwCqtQlsymy04EVhMpSrZV8mA7c14HF9QG6+g7hNTwUKXvy3A8/PnS6T6v16tmsDzOZS vbYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp7-20020a1709073e0700b0086e70cdc492si10313881ejc.1.2023.01.23.12.54.37; Mon, 23 Jan 2023 12:55:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231788AbjAWUyG (ORCPT + 99 others); Mon, 23 Jan 2023 15:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbjAWUyD (ORCPT ); Mon, 23 Jan 2023 15:54:03 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E112E1114F for ; Mon, 23 Jan 2023 12:54:01 -0800 (PST) Received: from ipservice-092-217-089-134.092.217.pools.vodafone-ip.de ([92.217.89.134] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pK3pC-0000Lk-7g; Mon, 23 Jan 2023 21:53:54 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 00/23] staging: r8188eu: some more xmit cleanups Date: Mon, 23 Jan 2023 21:53:19 +0100 Message-Id: <20230123205342.229589-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755848169207546532?= X-GMAIL-MSGID: =?utf-8?q?1755848169207546532?= Here's another series with cleanups of the xmit part. Amongst other things, it replaces some __queue variables with standard list_heads. This series also includes rebased versions of the patches that caused conflicts during the last review cycle. Martin Kaiser (23): staging: r8188eu: we use a constant number of hw_xmit entries staging: r8188eu: pass struct adapter to usb_write staging: r8188eu: remove struct intf_hdl staging: r8188eu: remove struct intf_priv staging: r8188eu: simplify the sta loop in rtw_dequeue_xframe staging: r8188eu: simplify the code to initialise inx staging: r8188eu: remove an obsolete comment staging: r8188eu: remove unused function parameter staging: r8188eu: remove dead assignment staging: r8188eu: use list_empty staging: r8188eu: simplify dequeue_one_xmitframe staging: r8188eu: remove redundant parameter staging: r8188eu: make rtw_chk_hi_queue_cmd a void function staging: r8188eu: decrement qcnt in rtw_dequeue_xframe staging: r8188eu: simplify dequeue_one_xmitframe staging: r8188eu: use list_head for xmitframe list staging: r8188eu: merge dequeue_one_xmitframe into its caller staging: r8188eu: use lists for hwxmits staging: r8188eu: fix rtw_xmitframe_enqueue error handling staging: r8188eu: remove rtw_xmitframe_enqueue staging: r8188eu: struct agg_pkt_info is unused staging: r8188eu: apsd_setting is unused staging: r8188eu: merge rtw_free_hwxmits into its only caller drivers/staging/r8188eu/core/rtw_cmd.c | 16 +-- drivers/staging/r8188eu/core/rtw_xmit.c | 119 +++++------------- drivers/staging/r8188eu/hal/rtl8188eu_xmit.c | 7 +- drivers/staging/r8188eu/hal/usb_ops_linux.c | 18 +-- drivers/staging/r8188eu/include/drv_types.h | 1 - drivers/staging/r8188eu/include/osdep_intf.h | 32 ----- .../staging/r8188eu/include/rtl8188e_xmit.h | 3 +- drivers/staging/r8188eu/include/rtw_cmd.h | 2 +- drivers/staging/r8188eu/include/rtw_io.h | 8 -- drivers/staging/r8188eu/include/rtw_xmit.h | 23 +--- drivers/staging/r8188eu/os_dep/usb_intf.c | 6 - 11 files changed, 57 insertions(+), 178 deletions(-) Tested-by: Philipp Hortmann # Edimax N150