Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754569AbbK3VHv (ORCPT ); Mon, 30 Nov 2015 16:07:51 -0500 Received: from lb2-smtp-cloud2.xs4all.net ([194.109.24.25]:35593 "EHLO lb2-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754202AbbK3VHu (ORCPT ); Mon, 30 Nov 2015 16:07:50 -0500 Message-ID: <1448917663.3546.29.camel@tiscali.nl> Subject: Re: gigaset: freeing an active object From: Paul Bolle To: Tilman Schmidt , Peter Hurley , Sasha Levin Cc: isdn@linux-pingi.de, davem@davemloft.net, gigaset307x-common@lists.sourceforge.net, LKML , "netdev@vger.kernel.org" , syzkaller Date: Mon, 30 Nov 2015 22:07:43 +0100 In-Reply-To: <565C95B7.7070001@imap.cc> References: <56587467.8050102@oracle.com> <565B1A1B.8020503@imap.cc> <565B4256.6080101@hurleysoftware.com> <565B4844.9020600@imap.cc> <1448828800.2603.17.camel@tiscali.nl> <1448839396.2891.14.camel@tiscali.nl> <1448906497.3546.16.camel@tiscali.nl> <565C95B7.7070001@imap.cc> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 (3.16.5-3.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 27 On ma, 2015-11-30 at 19:30 +0100, Tilman Schmidt wrote: > I wonder how that will behave if someone attaches two of the devices to > different serial ports. Not likely, but not forbidden either. I see. Perhaps I should respin and a use a pointer to a struct platform_device in struct ser_cardstate, use the two step approach of platform_device_alloc() and friends, etc. Only slightly more complicated. How would attaching two devices work with GIGASET_MINORS hardcoded to 1? Because I haven't yet stumbled on the mechanism with which ttyGS1 (and up) would then be created. (I do have a second M105's in a box somewhere, so I could check myself what happens when a second USB device is added, for what that's worth.) Thanks, Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/