From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25A8C25D527 for ; Tue, 21 Oct 2025 09:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761038014; cv=none; b=DMXNnidjmyOSzd9VG5OS3xNTvAYOomFmVQNP2IDdPdAo7PuyvlsCtXs6RvGUTByHLb7pPjbufUspJ667duJQHTKWWF/wxuEEjSiNAbwNLgUeXRe4WsO0kQVisyWeQMuYnNcjxASDZUoUQbkeCJk9julsrqqJjla5511rG77z0MY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761038014; c=relaxed/simple; bh=FNo66ablbsEBNbP+Xp31Vkt9QboxxnE3NasPNx4kGi4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WLZjCd697sI5MxZjxm7pU8MKVXa8yECJJbIclVJfv7u81SCxbh/E5iRemw/igH4phKx+BG3VRmsHpOXmvnSSWA73DWuYrSFrH98l2uxg2U/fk3S8BSsRWIER90LySUmucXN1nYoaQKBWtAfTl6S+LzmaxdSyH5fuNK3tgJu1/zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=AWV2O0h9; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="AWV2O0h9" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-63befe5f379so7025719a12.1 for ; Tue, 21 Oct 2025 02:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1761038010; x=1761642810; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A1ql3iSX2umr1Lt+k9J1d3sz6ezZqS3QfSbZGtytons=; b=AWV2O0h9qOb5a3OIJGUHt+bn3skyja3qpLN/V8kYA0u4luhk5dRr+Zdp+KPy+k45Tn 1B/JMhkGWNcTiDzGEk+6E2riN66KYcIEjTTD2RpcmXVP9rLuQh3b1p9456pLD1b/t/l9 7OC9rKkV83COEKeukS9SRgzk3l3Q9rQAtqGhUy+0eMaL6zi//t8BcPpGoFYLDuYQyyA3 aFkUlytDuxRTk+AgBD5TmOMcx/SOBcYekBkrLbJTg5VlIAmjzCDN4zi54X0lsordllib rKKq4PK9KMkCHpBf2XJ/qb6m6283Sg8skav+74QS9ZM+MrhGqtNesqWoECTnZnAAAUik qLYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761038010; x=1761642810; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A1ql3iSX2umr1Lt+k9J1d3sz6ezZqS3QfSbZGtytons=; b=eo0AG1yBPD2wQdukBjR2yVL+XqzWMr451DuBU3o6Xhw2azeUjwqsl0qIeXy9giM2ZH lpdL/7JNwcZoFZ9s4ZAdKUXQ6/EkJAGC/icqj7LJXBYlxy8YdXSPmcBrgme29/kbpPny UktX1qlRy2cDJmDxjN8Fa8osirWy+080nSi2IVKROuTUnVU31AYd/fCyUD4+eFUrPgvP jH5wLqzN617LyJnHgcm72UojlV8izUPEQleBf+5QHPlbVat+ZhTGXxJSQIxQ5kTaSbeB O84e5icv5zpBqCPhrAArR+/4rSmyimwsKjYOXCD2lIcPadOWQ9uom1juR6cOyTu5IHn9 0B+g== X-Forwarded-Encrypted: i=1; AJvYcCU06orEjjkqK98won8WWbjrCIlOFb35SkIgUYzBOcgssThlfg7egwG7APpxOi5vgbJWYlR5hrodKbg=@vger.kernel.org X-Gm-Message-State: AOJu0YxVD+r0hl8kJn0Lal/Fxvfp5tB08D/H3T7HSE6S1vYWjgdERT+P oLp+ho4Arna8Z7fYf3v9lqRk/BtVdd7F0Iu8UDkiDfwfNuC1fmVeQrGqP+XseHpzHYE= X-Gm-Gg: ASbGncvcsJfALhKi6RMlciMfgrxVvYPYrcISfA+aoCYSIv3AKycwUZx1qKbQZHjAnfo bl75PZK5/i3Y5fnd6WelHr/trTmeafaPEqiAIqAJW0mOF6vCohU2uHF/ZATh0Vm1ms6Ngj1bQv3 T9ClZfMNk1v9GzNg0/xK1NowoVB3d5qZPDAd5hGaDW+wvCVv5HbQRffHMfOP8rcN2Z0FS/7GwGn Q5/MZJzvYRUAw+7BT7jU5pwRZXWiYjBe4HNFc88Bge/crpxV5OFi0ixYlOFNTrgsLxnvVspjQDE Q2JBHJAeZw30zaIpQNj50wTuYafGoTXbRoTDyo6MsHW5tJ7UOhzvFmYtPsDopL+PLjxmX3ETq5+ nvfDDq/M5kq5Ll/YqTO2brRIPxdA35zs823TZlCZUzsKRKG4Oo+jkj8dMErdP3wkoM6tWbCsjGa lDYBcUBcHp+lTrrs/EI9zCzuTTV5Zm9F3GPVcSguQYow== X-Google-Smtp-Source: AGHT+IFd4QN0J2LW3+xFPMyc6BTdCEN0R8oW3yx+UfHqJIodk+bFRpkHkmyO+iexbcL8GfK3AkDk3w== X-Received: by 2002:a05:6402:234a:b0:63b:ed9c:dd16 with SMTP id 4fb4d7f45d1cf-63c1f631b11mr17034481a12.3.1761038010298; Tue, 21 Oct 2025 02:13:30 -0700 (PDT) Received: from ?IPV6:2001:a61:1369:8e01:d78f:5536:188:1544? ([2001:a61:1369:8e01:d78f:5536:188:1544]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-63c48ab45b8sm8838425a12.9.2025.10.21.02.13.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Oct 2025 02:13:29 -0700 (PDT) Message-ID: <3cb55160-8cca-471a-a707-188c7b411e34@suse.com> Date: Tue, 21 Oct 2025 11:13:29 +0200 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v5 2/3] net: usb: ax88179_178a: add USB device driver for config selection To: Alan Stern , Michal Pecio Cc: yicongsrfy@163.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com References: <20251013110753.0f640774.michal.pecio@gmail.com> <20251017024229.1959295-1-yicongsrfy@163.com> <20251017191511.6dd841e9.michal.pecio@gmail.com> <20251018172156.69e93897.michal.pecio@gmail.com> <6640b191-d25b-4c4e-ac67-144357eb5cc3@rowland.harvard.edu> <20251018175618.148d4e59.michal.pecio@gmail.com> <20251020182327.0dd8958a.michal.pecio@gmail.com> <3c2a20ef-5388-49bd-ab09-27921ef1a729@rowland.harvard.edu> Content-Language: en-US From: Oliver Neukum In-Reply-To: <3c2a20ef-5388-49bd-ab09-27921ef1a729@rowland.harvard.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 20.10.25 18:59, Alan Stern wrote: > Another possibility is simply to give up on handling all of this > automatically in the kernel. The usb_modeswitch program certainly > should be capable of determining when a USB network device ought to > switch to a different configuration; that's very similar to the things > it does already. Maybe userspace is the best place to implement this > stuff. That would make usb_modeswitch or yet a new udev component mandatory. That is the exact opposite of what we would like to achieve. > Furthermore, with usb_modeswitch it's not at all uncommon to have some > drivers bind momentarily before being kicked off. People don't care > about it very much, as long it all happens reliably and automatically. That is probably not wise in the long run. If the device whose driver we kick off is a CD-ROM, nobody cares. If it is a network interface, we'll have to deal with ugly cases like user space already having sent a DHCP query when we kick the old driver off the interface. Regards Oliver