Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756197AbaBUWyF (ORCPT ); Fri, 21 Feb 2014 17:54:05 -0500 Received: from mail-ve0-f182.google.com ([209.85.128.182]:52473 "EHLO mail-ve0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754226AbaBUWyD (ORCPT ); Fri, 21 Feb 2014 17:54:03 -0500 MIME-Version: 1.0 In-Reply-To: References: <20140220235118.191692546@linuxfoundation.org> <20140220235119.236520201@linuxfoundation.org> <5307683C.50209@suse.de> From: Ray Strode Date: Fri, 21 Feb 2014 17:53:41 -0500 Message-ID: Subject: Re: [PATCH 3.13 35/99] tty: Set correct tty name in active sysfs attribute To: Kay Sievers Cc: Josh Boyer , Hannes Reinecke , Greg Kroah-Hartman , "Linux-Kernel@Vger. Kernel. Org" , "stable@vger.kernel.org" , Lennart Poettering , Jiri Slaby , David Herrmann , Werner Fink Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Feb 21, 2014 at 11:01 AM, Kay Sievers wrote: > Why did the tty0 change to tty1 now? That doesn't look like a "driver > name" vs. "device name" issue? I don't know if it's intentional, but the patch does: + int index = cs[i]->index; ... + driver = cs[i]->device(cs[i], &index); which will presumably change the index from 0 to 1 because of this code: static struct tty_driver *vt_console_device(struct console *c, int *index) { *index = c->index ? c->index-1 : fg_console; return console_driver; } At least that's what it looks like is causing the problem from browsing through the source a bit. --Ray -- 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/