From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932473AbdJZQKs (ORCPT ); Thu, 26 Oct 2017 12:10:48 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:43306 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932414AbdJZQKr (ORCPT ); Thu, 26 Oct 2017 12:10:47 -0400 Date: Thu, 26 Oct 2017 17:10:11 +0100 From: Alan Cox To: Cc: , , , , Subject: Re: [PATCH] platform/x86: dell-uart-backlight: new backlight driver for DELL AIO Message-ID: <20171026171011.3eca122e@alans-desktop> In-Reply-To: <08add166d5b34992ba167a878ca2a808@ausx13mpc124.AMER.DELL.COM> References: <1509004429-1596-1-git-send-email-acelan.kao@canonical.com> <08add166d5b34992ba167a878ca2a808@ausx13mpc124.AMER.DELL.COM> Organization: Intel Corporation X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +static int __init dell_uart_bl_init(void) > > +{ > > + ftty = filp_open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_NDELAY, 0); > You have no idea what name is assigned. This doesn't work. This isn't the way to do it any more because the 'tty from kernel' problem finally got fixed. You can attach it as a serdev directly to the kernel. Take a look at serdev_tty_port_register/serdev_tty_port_unreg Alan