Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4394943rwr; Mon, 8 May 2023 07:09:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mm95kuMAJGRp/OV2iMQ1EneKI7bcmEIRBAUTcUlF/j7JlrJIxgxj7HiaCync7IWVX8IHB X-Received: by 2002:a05:6a21:3296:b0:f5:9975:5044 with SMTP id yt22-20020a056a21329600b000f599755044mr13664956pzb.4.1683554976430; Mon, 08 May 2023 07:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683554976; cv=none; d=google.com; s=arc-20160816; b=IqwE2exVryu4CgtImBS8ZMOQbRWyCJLYOkqf5Ub4l7a07hhPq10QDWbtPOjjh1iNsF KfKM7n74I9tVv8MBH3LMJI9pYYOpBX6hQkSxJkTbDbB6MVbuD72UChc9peR0xKF4OAiB Td2t/bKSpPBJvdKaEpC/eN9ihR6FG/RQMaPKPQeIZJi8N6G0x1I9ii2VPuRrewrq37YG lM3INTdf366RG21YmudC/zPM4kEcRHoL5l/XobPRkgSXupAI3AeIJyuNGq+J++nkfQGL E+qGQO3oWVvxCKeD3zfAgBBfrNzXdXpeX6ehIs9tcZxxBpQgy9vMBExgz4NBtHZWScl3 sYHQ== 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=iu1LCK9aWFLvkKRKxPgFSQaW4ctFl06OcvYqtORiBDE=; b=CJ0LLr7Uoi51y3yFb59jUOiLPOIatYgbLVJuiIii80z3RDWCLSSSRlqGCzJU8JJq5J ATmU+jxnM1VqgxOQ1AIgzEDYmN/CvNxFc7ufQK66OG6lu+OWBPm38+mZo8uvLE3OVXve NR1Rj5olEHXAW72YSYVDslKP4ZiQBabm8TCe3WDOtI76lNAsvcwZZYj6f9Sk2I5Q49YX 9A/+6X92ZaKBiLhzGg3+QKlzxn6G5QaHHKmlJdjdg62EAMzKeZwP1HXJbcxpxLBB79Yo TLqqC0KjeUrTUZCkhsoJ9PBUlDN1RjeZuT6jWX2yzzQH4f99R/8mrx6dRiOCFnFn27uc PETw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WRemzRIV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a63754d000000b0052c6f258152si8801494pgn.257.2023.05.08.07.09.26; Mon, 08 May 2023 07:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WRemzRIV; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234177AbjEHOEL (ORCPT + 61 others); Mon, 8 May 2023 10:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234139AbjEHOEK (ORCPT ); Mon, 8 May 2023 10:04:10 -0400 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF7F36CDC for ; Mon, 8 May 2023 07:04:06 -0700 (PDT) Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-6ab032b33cdso1046177a34.0 for ; Mon, 08 May 2023 07:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683554645; x=1686146645; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=iu1LCK9aWFLvkKRKxPgFSQaW4ctFl06OcvYqtORiBDE=; b=WRemzRIVK7betkekH7Oe6VQgAOPTMTjxBw+XyJrvOxeqZlE4sGIB1hiYz0WQAHGfhK DG9sEXglOybdersXQwubQ3ybhpHEOomblZu7VfaasxxwDxhFDlnICkgaVVws0jlTWlQZ TXEySwurNlwwje36Q3UQVv/k7AsMDWR6tQpZGzQq1kyVZfp94R2FK6GmsdrnlSyq7uzv KCy0jwvQfu/48VsBOQr1zSP5eNHWql5lTWE34W2T+FCRYf6vLkAt33lKxOPAuQWL2Bq1 9hNVXVGBCb3hhEjQ+L2Ck1WBxoy8FL3Rfy6iohJrCbLF/Ah0OqYCAx6Ov2ozJKzBhRXp uQ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683554645; x=1686146645; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iu1LCK9aWFLvkKRKxPgFSQaW4ctFl06OcvYqtORiBDE=; b=C2nKIQMZTvcOzb2gSbPjBA8fOlImDDCjPMTPzzVumN7Pj0CV6+l+RPTtsErt7i4XmD q47DR8NwWJEZa8eN3J4Mevvn5beDM8jqoQ52pPBDSq13drKNDstwf6Pkdk1L0ZWU+FA8 UHAKPde/SlXeNLOlnXKmrymk3Np+qsria0Bpsh4b5DYUHm5capsmjWyUjJn7SFK+ngfg 5p0XipCmID6IwSlzqehmq0hmyYQ9NjTwZdbXC/J+qTl9rZekRwWphMpkExrZqJFRqMJu pj04zagX7DOiehbvQ5xnjdI7LY9CcovY7gLCxan1MJcc/QobH6ovOHAIC3fIz0smRlGE S/1Q== X-Gm-Message-State: AC+VfDx7n/qATDSooo8iH5PotU01WmFWaykqk0hmHe8NPNQrPvPZ3gE4 x3FGQYYWMU6w3daKuOLMmwc= X-Received: by 2002:a9d:6392:0:b0:6a6:f2e:a891 with SMTP id w18-20020a9d6392000000b006a60f2ea891mr5400027otk.6.1683554645528; Mon, 08 May 2023 07:04:05 -0700 (PDT) Received: from [10.62.118.118] ([216.130.59.33]) by smtp.gmail.com with ESMTPSA id r5-20020a056830134500b006a973ec4660sm4091712otq.78.2023.05.08.07.04.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 07:04:05 -0700 (PDT) Sender: Larry Finger Message-ID: <3c157ef7-8bf3-e886-769c-c27b9cc00547@lwfinger.net> Date: Mon, 8 May 2023 09:04:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [bug report] wifi: rtw88: usb: fix priority queue to endpoint mapping Content-Language: en-US To: Ping-Ke Shih , Dan Carpenter , "s.hauer@pengutronix.de" Cc: "linux-wireless@vger.kernel.org" References: From: Larry Finger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org On 5/7/23 21:39, Ping-Ke Shih wrote: > return type of dma_mapping_to_ep() is 'int' and it also possibly returns -EINVAL, and > rtwusb->qsel_to_ep[] is used by qsel_to_ep() that also use 'int' as return type. > Therefore, I would like to change type of qsel_to_ep[] from 'u8' to 'int'. Does it > work to you? > Sasha and Ping-Ke, I have been testing using s8 rather than u8 for qsel_to_ep[], if you would like to keep the array the same size. All the values fit within the s8 limits. Larry