Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4435623pxf; Tue, 30 Mar 2021 07:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzji2Z6dr17pLas0snSYJ8TDxCc1W5wpihdkXvtYkPMtf5RsqekYoKAGSI5lZh+vicMEdGg X-Received: by 2002:a17:906:d10b:: with SMTP id b11mr20664700ejz.144.1617115685644; Tue, 30 Mar 2021 07:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617115685; cv=none; d=google.com; s=arc-20160816; b=WX1GqyvdZb3YTIKkIinv5H/fzhLbCT0xpzb426DOSVgMSE+dzZzznaU16F6yGPyq8N HCcUT+Cl/KqsodJvkZioWNfPIQBHHDcA/Sd9I80K3lhZKIPmnll/7Qh1ks3BO42qiJiV plsXeYMswi/H6jTR2C6VopRdiOtnWdsNTvYXlY3OJvoIr5qCKwBA2NGNPu5X+3oHVlkp bAcTaW7GB1s/23Qvf3MDBmK0IqRmVMqjy1fpoKVbPh4tqDkyoV147M4qJNfFxiKvRuGQ WLAAnHWnv1LIZJsQHOUp42HF+nKyfDCsKuXHv1MACIGiyDgSsbB/RlMPA9bi7qvl6qDM 5lng== 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=bILaBoOyVxi3UWs4eH5J2+nIGuA3mIox5xXhJ94iCtk=; b=Kmrf1cZa8lug81cN4vsOGbnjkiuopQVDYNyBkkTY/aDt1eBY7iG5Us5T1sgSqSHnuY r7vnwI8CEDw6sfpiPth/9fbwnSbHEWu2gHndXXsZZAqdqXt7rxSJ9ksa5WitSyodR4JE nLktwRQjxGJS3+VPDXr0UEraEsx2JSQdVIsVTSadLiZzZPmfXOsuMPUkK/FQV/f7eiQM Uhmr6oK4KVjjf9MeLNkXDkqzTDG9R4YTRS+Pot6u0mkLBrzQAmJO9Iabs3UDtlgvbhaO lpGmMxBXFA9Rr3/AmEUd8t0mt8J7DPBbw6qH31SZcrhpGmzDP4CD0KrKyiocsmTiDmWr pbOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pVNJvZnN; 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 b13si16551228ede.461.2021.03.30.07.47.41; Tue, 30 Mar 2021 07:48:05 -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=pVNJvZnN; 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 S232201AbhC3OpM (ORCPT + 99 others); Tue, 30 Mar 2021 10:45:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:36602 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbhC3Oom (ORCPT ); Tue, 30 Mar 2021 10:44:42 -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=1617115481; 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=bILaBoOyVxi3UWs4eH5J2+nIGuA3mIox5xXhJ94iCtk=; b=pVNJvZnNMo+C9VN309WdrJmGu7eUTRW5pcWARu7OgXL9fZf0lKIsPwL6SxGr9uU4dDYitL E+uQcC/60XaG1POlfJ5DZe95uTh8XEf3cMHUUv0frLkoD5Cm5tZV7X+WM5Gx4zEcEIDfMg pYOGR9kUvxso+yEfsSyeb7do867FzYc= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 36427B315; Tue, 30 Mar 2021 14:44:41 +0000 (UTC) Message-ID: 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: Tue, 30 Mar 2021 16:44:32 +0200 In-Reply-To: <20210330143820.9103-4-johan@kernel.org> References: <20210330143820.9103-1-johan@kernel.org> <20210330143820.9103-4-johan@kernel.org> 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 Dienstag, den 30.03.2021, 16:38 +0200 schrieb Johan Hovold: > @@ -1115,6 +1161,8 @@ static void usb_serial_disconnect(struct usb_interface *interface) > if (serial->type->disconnect) > serial->type->disconnect(serial); > > + release_sibling(serial, interface); > + > /* let the last holder of this object cause it to be cleaned up */ > usb_serial_put(serial); > dev_info(dev, "device disconnected\n"); Hi, does this assume you are called for the original interface first? I am afraid that is an assumption you cannot make. In fact, if somebody is doing odd things with sysfs you cannot even assume both will see a disconnect() Regards Oliver