Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6091196imb; Fri, 8 Mar 2019 09:06:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxhGjtjn6BGl3HDBhZYc8pup3QKCRRdRohLs9jR+dhkFG3N0qOGagLnbnnFlxDaBt8beRGp X-Received: by 2002:a17:902:2865:: with SMTP id e92mr13863426plb.312.1552064765189; Fri, 08 Mar 2019 09:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552064765; cv=none; d=google.com; s=arc-20160816; b=DG9LjGLKRBAqEYCr6QhCq1GkdyU0S8Dn95YdTh7t+pH62fHmcYnjRLJaChxnaIxdjB H/XDTtFiuP5j1bla619yFKUtYVV37cj3BPhIwhHSI4u6l7XE9GZ9cNyq/qipo7JhkV9R Mg9SYti5hzeuXJBOxBAONwLSHFrLZm9owcF73cKTjZQWC7em2Zm31J9afdsTkACVk43b uI+8vttD/jz9sb4AVge15fbYGqXtqK8SmwJ1AzFA0DOPRimdVP/TrISo3brt+TkfFeXW SsKtYoWNVu3SIejqp6KGNCOQJ+zdSilvmEgRE0R1lDH4FDoLerhqXacLmgdKr6xc9bSj PO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tEN5Ai+5DBhZ7bZFKe+pbDaQB/sjnE00Z9B2hjt+e8g=; b=m2eMKfyAbKwrPyAJB7J52WOW+1u+XS/+3OTBy3MCGAX9GsSeEqFcL6GkxCVv4/RyGT GG6HKuWraHZkIwBkO69dACuufigQKpQlVqx9O+iNkwTTk327sWOlZQ4CoOqka3r1gMz1 4etIjZN/C34Zijo2QPdP0RedLe0cmt2H0sfQFD9L0ZeQClQX0O/oQYYeLeesT/h7H5LU KnDo5ZZgyJOtTjAa7Sdraf1usFrQcjErohmcSmCUqLC8nYuIwqVpGG2PlPgloIeiIqXY 8Otz9Vt+9fH4xl1xhNh6MB7l4UhY2CcNgGtJCnlIV9Tp1XrwIyZ19vMFQXoNvm1WHXMX Ru5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rWf5a6V1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si7417802pff.77.2019.03.08.09.05.49; Fri, 08 Mar 2019 09:06:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rWf5a6V1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728131AbfCHRFM (ORCPT + 99 others); Fri, 8 Mar 2019 12:05:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:48136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfCHRFL (ORCPT ); Fri, 8 Mar 2019 12:05:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C4EF720868; Fri, 8 Mar 2019 17:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552064711; bh=Ho5aTKGFV5yb5Y+QfOZ5dT6bGWYeXab2mibTdldN4kM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rWf5a6V1UY2aJGPuDZMUDTBjqZAwu6yF1YmX7jS18zDQx+j6mqYU09eqhjVupiu+S ZYz0lcDnBxjEmq0wAfEV4fPr3aNu/0o1uxSyclpRYykySuag1N42uM6jckERFTM4ZV EGQdmeLGnFTbaO7zxeYPovdBHe2IzImIC0iEp9Vk= Date: Fri, 8 Mar 2019 17:34:11 +0100 From: Greg Kroah-Hartman To: Petr Mladek Cc: Calvin Owens , John Ogness , Sergey Senozhatsky , Steven Rostedt , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 3/4] printk: Add consoles to a virtual "console" bus Message-ID: <20190308163411.GA12898@kroah.com> References: <087b13f7812b32cc7c3f9efea71c9bcf324dd031.1551486732.git.calvinowens@fb.com> <87ef7ioyzw.fsf@linutronix.de> <20190308155814.rzsjrzgwfcm4p5sk@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190308155814.rzsjrzgwfcm4p5sk@pathway.suse.cz> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 08, 2019 at 04:58:14PM +0100, Petr Mladek wrote: > On Fri 2019-03-08 03:56:19, John Ogness wrote: > > On 2019-03-02, Calvin Owens wrote: > > > This patch embeds a device struct in the console struct, and registers > > > them on a "console" bus so we can expose attributes in sysfs. > > > > I expect that "class" would be more appropriate than "bus". These > > devices really are grouped together based on their function and not the > > medium by which they are accessed. > > Good point. "class" looks better to me as well. > > Greg, any opinion, where to put the entries for struct console ? Hang them off of the device that the console belongs to? Classes and busses are almost identical except: - busses is the binding of a driver to a device (usb, pci, etc.) - classes are usually userspace interactions to a device (input, tty, etc.) So this sounds like a class to me. If you want me to review this, I'll be glad to so do once 5.1-rc1 is out... thanks, greg k-h