From owner-freebsd-current@FreeBSD.ORG Thu Jul 12 13:21:04 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78FA9106564A for ; Thu, 12 Jul 2012 13:21:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id DAAE08FC0C for ; Thu, 12 Jul 2012 13:21:03 +0000 (UTC) Received: by ggnm2 with SMTP id m2so2740386ggn.13 for ; Thu, 12 Jul 2012 06:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Bg654VVqjMWN+VjKSmVNGjVxSOY4jJKrne9NDuPlQ/Y=; b=PWRROd3tJgNkZBkt8Yf+qsUJJMWeu5EO0TblR43HFePmBeao8cyZKj+uItR3aA11rI VXUIPXNCFsnFjEwToWBKkaHl00HXijOW9ZNkFfMBAyTl5sn33WiULe5N1w/FTBdOZDZS Q2E0mIO8txjksHANngEdBnaXbCUeVH8mk7Br1yQ88dKsBm7r/VVobOUYAsB9berntSNF LxnT7kEfyUEna+Yqli1q1p9+MrcFUBFo4vzIRRaZzKGN6BOQdqXDg4Jf3Gn1R6bVYnNN Id+OgiN0DJZSWQNVqnncDBS0zxJBo79w9ovLtFAiRnIwT1dup5N/ehPW8zj1KtvdlfMH dMBw== Received: by 10.68.227.198 with SMTP id sc6mr5423759pbc.138.1342099262621; Thu, 12 Jul 2012 06:21:02 -0700 (PDT) Received: from [10.0.0.63] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id gh9sm3865763pbc.20.2012.07.12.06.21.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 06:21:01 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <201207120801.25810.jhb@freebsd.org> Date: Thu, 12 Jul 2012 07:20:59 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <40098958-831C-49AE-8A7A-BE0B8EE15C34@bsdimp.com> References: <73F3FBC9-337C-4F61-9470-5173D6DAE56B@bsdimp.com> <201207120801.25810.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQkZnHaTV7hK1eQ+4IVgBnJ4oZqD2mV2e0kCUWCfHjBtAIbivj1H+wy7EKuh40GEzEEPy7ku Cc: FreeBSD Hackers , freebsd-current@freebsd.org, Arnaud Lacombe Subject: Re: newbus' ivar's limitation.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2012 13:21:04 -0000 On Jul 12, 2012, at 6:01 AM, John Baldwin wrote: > New-bus is certainly not the only way to organize a device hierarchy = and is=20 > not perfect, but in your case I suggest you tone down your language = until you=20 > have enough information to develop an informed opinion. It is also not the only way to represent relationships between objects, = or to export services to the rest of the kernel. =46rom earlier = descriptions, it seems like some of these relationships aren't very = newbus-y. =46rom what I know about FDT, many of them are 'this device's = interrupt pin is tied to GPIO 12 on controller 3' which isn't a = parent/child relationship, but rather some kind of interrupt cookie = you'll need to implement bus_setup_intr. Warner