Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp290183pxf; Thu, 8 Apr 2021 03:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2KY1jFy7YU6IDSsi3N0N9g4l0miq50fj6cw9kJxNeSiFdwLLtjGJ/KTPcj8Qun8TJx0Mh X-Received: by 2002:a05:6402:1498:: with SMTP id e24mr10122418edv.176.1617876784498; Thu, 08 Apr 2021 03:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617876784; cv=none; d=google.com; s=arc-20160816; b=W1+ukLGXxphXIK3LtSd5lcsfmfliZbaCksD7lR7BfW2ezzoppEAJ4tez7PWvZJmpxV ZYwpU5R1Pbnz7EWySn6MVTfNXrApKhALpoUEaPU6Asck9ctJPw3Q/e7LXNkeIGgPBaED 0hm61I+8HIJWiUsNd3y0r8gXaqRgc1UJ3L26zPt+MGygrDZctcAqzuRB0ZvqfoOEQWQK F+XJUgKSal2rHtRXkTqR85b67WSdi3zY5/mA9Egw7abOD44G39OwDrIqlV9SzrT+kgdd hQEmJGJRSU3NoY+svF57dnvzPGVVGAf+RjKwWMvxmdwTa1m+FdyMp9YIVMnLf49ZFxhN puGA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ungriHiX5fEUPDsMxDg6ldWqj8gfMRUm2LRwontY2qo=; b=R9Ag6Tqq21EduQetlcJ03wWffwXkAxenYkkZGjtmpB6BjDo9AJ+8kZTFX8v/Cz9Mb5 /b8NVusqPSxk4ShR04qPl8b0FDxXFzoCyn/d7pLXd3RNwEY3XsmgkD+4yPXQEsmOJtz4 AzVpsHdv17iDs+WDKyqK3qpofkozFEIPJ7tPrtjGAOhvtj9t+H1DAoKtkloEylffhU6Q oguZ324XsC7j1W52Apby6ThJmJMhG7dJ0OsZziqnIACC3qb8S0fZMkfh0rReeF6MsJuF W7MI3ur+ggz+182vddTLoaTu3LcTkzoFYZab1mhlmfkglhoBCR2INQuuNSYLLk+iE1UH p+BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=stwSvQVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kx24si15318702ejc.689.2021.04.08.03.12.40; Thu, 08 Apr 2021 03:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=stwSvQVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhDHKLM (ORCPT + 99 others); Thu, 8 Apr 2021 06:11:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:52758 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhDHKLM (ORCPT ); Thu, 8 Apr 2021 06:11:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1617876660; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ungriHiX5fEUPDsMxDg6ldWqj8gfMRUm2LRwontY2qo=; b=stwSvQVHWURq+vF8p7oLTd/SCbf3kRN3L6USW3KVD73irNdO8on2X9pIdoK2339hUFUITX kk1kL7OlsmKFmMBLhz6hyx16Gy8P+4+z7OMz3mnKDlEgh4kthKW7fsiHHe9kppmJBbV7lR lhy+30fF03B/Odu13ZOhxyrqTKb6Lg4= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1ABCAAFCC; Thu, 8 Apr 2021 10:11:00 +0000 (UTC) Message-ID: <2c67dd97bbdc81369eb297fdb7ac58616110fb77.camel@suse.com> Subject: Re: [PATCH 3/4] USB: serial: add support for multi-interface functions From: Oliver Neukum To: Johan Hovold Cc: Mauro Carvalho Chehab , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 08 Apr 2021 12:10:48 +0200 In-Reply-To: References: <20210330143820.9103-1-johan@kernel.org> <20210330143820.9103-4-johan@kernel.org> <3ae68552f3c689c23cbf2573772239c00e2c94be.camel@suse.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, den 01.04.2021, 09:46 +0200 schrieb Johan Hovold: > On Wed, Mar 31, 2021 at 01:21:15PM +0200, Oliver Neukum wrote: > > Am Mittwoch, den 31.03.2021, 09:08 +0200 schrieb Oliver Neukum: > > on the third hand, the more I look at this, would you mind putting > > sibling_release() with a modified name into usbcore? This functionality > > is not limited to serial drivers. btusb needs it; cdc-acm needs it; > > usbaudio neds it. We have code duplication. > > Tell me about it. ;) Unfortunately, drivers all tend to handle this > slightly different, for example, using a disconnected flag, some claim > more than one other interface, others look like they may be using their > interface data as a flag for other purposes, etc. > > At some point we could unify all this but until then I don't think > putting only half of an interface into core makes much sense. OK, very well, then let's look at this from a fundamental point and design a bit. First, can we disregard the case of more than two interfaces? Regards Oliver