Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753237AbbLRMxJ (ORCPT ); Fri, 18 Dec 2015 07:53:09 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:60145 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484AbbLRMxG (ORCPT ); Fri, 18 Dec 2015 07:53:06 -0500 From: Arnd Bergmann To: Peter Ujfalusi Cc: gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: 8250: of: Fix the driver and actually compile the 8250_of Date: Fri, 18 Dec 2015 13:52:33 +0100 Message-ID: <6383189.zS3XQNVGho@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1450442612-11372-1-git-send-email-peter.ujfalusi@ti.com> References: <1450442612-11372-1-git-send-email-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:xeAbjrWRfvcKp4Fy4H7Wer1/795ChCivovMmG72RrivUnXME9SF Ic/ugkfjxSCN0E62YcfLEDQdDPeib6WtVGp8+VacdW2M8HHJmX8HjGAVRFrojG0aMjN/K7M ysQ8cg57GVT7qN6NN5OLKAzkOKjelXhhAz1TfDnSgG8ukH/s3CKAPZ0YvgHpGq3jIwRauxX Z6WPWuioNqxDNmnbwniLQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:e5wSGlPJo3A=:azE6XlF/29/HvV9PbQ6ANR givp6XH3Gk3s2Paq6oGTjWrC4Z6UFpr09RWcFODRIHEnjK8jrKWfRU5fcprybSzVZFYkPP5oY aPIIjIBclWYN6h1mvhk+gfKpdPNCMG6NaOvYkyFMxhTgWHE++WstksGzx9Srfkx+0QSjAGTCY P4vLFtJjonSg6xo9YMdk1yBSHPzaI/fmvTVONMwSS6ZoWQtlmfAvMBOSPtVv2ecog6kk98Bg4 syjVT5LUMS8BFKgaQKmh5tOxshNIoLUrTEcK+1J7BFZ1R3pw1y1vDCF8s3M3H4sCpJmkhZx/t AsR46KoBtrlyKrz2IWuyxELG3XqKlU+CqOj+RQil31zhQMVSI9VWm562v05xKv8akg8tseSTM X0L/UQ71UcAg72COg//3mpIRnwQLd5sp9AoH6+Cl9B24zNqcq4HTA4x9/WpMDuoJl70x9tCsi WnZSR6I8psUC81LNa6B5AP78KHSsGlcyMt0dXS7t2sCbmOvf6HanhSJzvtRhggXIJaBXXC+iy Yiy2eoD69wUhE6fLJoV5v6dT99yTH8Gf/XGdp4yqJ2G7vVdnGX5kAMOE8mKrRm5tdeH3FOa/S uTaOWdUmKB3+sIHmRfyn55IfQf47mt4tDUVK8cRpbkgpdFDWihSgek1p2kRjhDOn9V/ZNreD4 my9sT8JijCj3ffRz7oGkRrAHxU4/X25pMLQQM5FoYP+6q752eeUq3erI8JJ/KLt4yZe4S9D/+ jZfS5CFDylhtQcVf Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1814 Lines: 47 On Friday 18 December 2015 14:43:32 Peter Ujfalusi wrote: > The 8250_of never compiled since in the Kconfig we have SERIAL_OF_PLATFORM > but in the makefile we expect to have SERIAL_8250_OF... > > In the Kconfig keep the SERIAL_OF_PLATFORM for compatibility reasons and > let it select the SERIAL_8250_OF. Later we can replace the > SERIAL_OF_PLATFORM use in defconfigs to SERIAL_8250_OF. > > When the 8250_of.c is actually compiled we will have two errors: > missing linux/nwpserial.h and 8250/8250.h. > Fix those as well at the same time when enable the compilation of the > driver. > > Signed-off-by: Peter Ujfalusi > Fixes: afd7f88f1577 ("serial: 8250: move of_serial code to 8250 directory") > CC: Arnd Bergmann > --- Thanks for the report. Indeed this could not have worked. > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > index b03cb5175113..01f24613b0e6 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -379,6 +379,11 @@ config SERIAL_8250_MID > Intel platforms. > > config SERIAL_OF_PLATFORM > + tristate > + depends on SERIAL_8250 && OF > + select SERIAL_8250_OF > + > +config SERIAL_8250_OF > tristate "Devicetree based probing for 8250 ports" > depends on SERIAL_8250 && OF > help This will still require changing all the defconfigs, as SERIAL_OF_PLATFORM is a silent option now. I think it's better to change the Makefile and leave the slightly odd Kconfig symbol name. Arnd -- 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/