Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3206233lqp; Tue, 26 Mar 2024 02:43:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuCrCpenQCpei2kFabGHx40eMOn0ZTHp+8vWFvGtjC3tSMPLwkhbbXZQ6O2joGZVyE0MR2BA58mb/lvgIL7OGWpHCfgCEFFUqHssWhRg== X-Google-Smtp-Source: AGHT+IGPLE2z/wE8T2iFoDwjUiblhOKt5FPxUU7pAqo62PtzuUudbXkpWVGjDB/ICKsxWugwX/4N X-Received: by 2002:a17:90a:5383:b0:2a0:495:3337 with SMTP id y3-20020a17090a538300b002a004953337mr571512pjh.11.1711446226328; Tue, 26 Mar 2024 02:43:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711446226; cv=pass; d=google.com; s=arc-20160816; b=mLKOMOt/K1GtPPrugeVgyrcT7/+ybSr/8DqpAgsX7uSi6eE6FlupuF40VwzFdnqJGi jPNquOYt1BrJyFlUIex8UGFPJWdKdeCi1G5FGPrsYLzZ/lNd3XxXPuge5ce5eZJ3p9mf cWZ06Q8Ixd/Fg9FXXup9ByCqtRqRmW/k5NMCjmt93Zlk2NthMS05K8EKklYXEFt/eJrC KBWxPcSY4KHE9Dppt75ev9bfEFgCoj3z4aUWHeNr9VGJxhW/Q/gDEAEz7NFFEKxcSLHI HBnqHIjC5bEC4Tndy9v0IIBV4FzFuDD+c8C6TXprtuGdb9iFu8EC2qOyRfCy0PjxO3BY HhIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=11C4Hmbo2EPnya+6JH3gcltv1fpNfaBDBeIbnf+N3z4=; fh=/JqBsPgWaccPc+3C0aIdi/tqn9CR2MzKa+2kLjI9RUQ=; b=gJtrnXW0PxnEfiN9fddrVsDeWz83zu0g04Sdl5yeBawHBou0GMTXIAq0MpGakJMjbO 4xY5E9qAUFk3M+1AajW5qHoNymYHC9uPArTfIkCHv3TZcbaM6617wKBu8wM71Lak+3/7 Y8bdQIfcrCD7sxn1lz1vBuiFEYH7wm0YkX1NFnPNBhwdg32kRTfXrCTS2HxDoormmm6Q 4C5OBtkkws3IOwjTOdadRfKnnv9C2PfStq2/qOsLGp8CZRUrRtzhLfodn+RRJVS8woQd fQtzvy55NPYmymnRBZyXY2R3/ZLT6fREp6j2dK60ksPPG0WRtBKcSKBV68zgvjuU/LCN j1Rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="w/59IuuD"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mu14-20020a17090b388e00b002a08f84a590si222935pjb.9.2024.03.26.02.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="w/59IuuD"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-118691-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118691-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 02D732E744A for ; Tue, 26 Mar 2024 09:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBFC585276; Tue, 26 Mar 2024 09:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w/59IuuD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D72FB839F0; Tue, 26 Mar 2024 09:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445777; cv=none; b=ABQ3o1lj7vgzj+GlhW2ldWe55Yyak1YtUoYdrQAvOiZYbOsgBauCUWhIqXCJch3PMkhO2L1FckKAGyviUPYFwW5KFyiPVZqYY/KogEnn5RD5Y6W3nSTpbVBhuQIBbXew3T5KvuFCeU4IemkdlWeqrd3XkBGNnkLfET7ml5eYmFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711445777; c=relaxed/simple; bh=PrW9e8jhIEo6+UcdkVF3qk3y8slqdz/j6UOpbQt+Vck=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cQDerN8Lmhd0ur37gBUcuaKFHyepjmZ4rwpB7aOqPxfjrR7KfRwdku3+xM16F33xSVzMvIvHaOy6Squ8xYRi+ThI0RkyHahAbthf/+o+u/JOl0DGcwZONMdjQ1L4eQAsVZP3wcLq3ng+mV64xK+xCGU9YltkQJbLQATf+NbxmzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w/59IuuD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE48AC433F1; Tue, 26 Mar 2024 09:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711445776; bh=PrW9e8jhIEo6+UcdkVF3qk3y8slqdz/j6UOpbQt+Vck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=w/59IuuDCoM+veNkiLLcWFqu/ovBFGI9qYMVgVJaMviy9Mf0qABZ6Ggk/znHeh/0M MIwzQCmhSPaoMKYzqmwrTtMW4o7Fh9u9oro+pH2SE++RXVmWj3ezJFKlkuERhBkKBz 1oFh9Y3gR3Z3rxn+StOhRKMUpPYKICk4H581bKaA= Date: Tue, 26 Mar 2024 10:36:12 +0100 From: Greg KH To: Surong Pang Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Orson.Zhai@unisoc.com, Zhiyong.liu@unisoc.com, Surong.Pang@gmail.com Subject: Re: [PATCH] usb: gadget: rndis: add multi packages support for rndis Message-ID: <2024032639-pope-tiling-340c@gregkh> References: <20240306054949.324172-1-surong.pang@unisoc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240306054949.324172-1-surong.pang@unisoc.com> On Wed, Mar 06, 2024 at 01:49:49PM +0800, Surong Pang wrote: > --- a/drivers/usb/gadget/function/rndis.c > +++ b/drivers/usb/gadget/function/rndis.c > @@ -39,6 +39,8 @@ > > #include "rndis.h" > > +static int max_out_pkts_per_xfer; > +static int max_out_size_per_xfer; Note, this will not work, you can't have device-specific variables as a single entry, otherwise multiple devices at the same time will not work at all. thanks, greg k-h