Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4440356ybh; Tue, 6 Aug 2019 11:42:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7y0Aq4Vqi4WWHRC0EJ2nVOICNtyXgo9j6nsLJoXpoFsU1IsupB/knP2ZIocmVIQuPR4gd X-Received: by 2002:a62:174a:: with SMTP id 71mr5323254pfx.140.1565116927828; Tue, 06 Aug 2019 11:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565116927; cv=none; d=google.com; s=arc-20160816; b=qkvSojuTYC9fvyjuiWVE83RLd7gzwJcUGSSYVyERjtI3YmqN0wcHDohdUwYw2HtyDH Hr7lJlh+cYpf6BaWivWJfpp/Gqza2+jTEU3yD4IdaOqa6Oqd4ugKWzPohraStCRXLLxh GGJgowl55+VHKNTaN7+Uj9XbRlO6+lZb2RvlaI3CPvlA9pZsus8RJ2tavmLCqu044n46 t0e6zLkSeuVWXA5VDkOfYoCvh1uEY2ITpUMJfOThJbNfuNWBFALHuX3utnthqJ29k2NX Yw8DCzdt1EecfuHd7KNlkhYSSp/TbgJM1IDco6LCYNupA+iZTLaZ+KqyZbRhFNDmRc58 p8sQ== 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=kf7PNzRXC1gqNibvMKU0uATU0VZIIktX3SZ6SEvdIDI=; b=fqha3QIsiulwnmV6AJbdJC43hvKCLxPMRk9z0vsPJBqxRk+dYHdOQn2GR2EYDF/eWb Q659iveVKUp1QCrmHH9bA6VBCRO0VHhk9iM8jyYvj1r1fjN9j5Fu6peceRfi6Zmv4Z5L HPKF/fW7QGwoYuzNPUuRAprwwxo0E2VRzxP+tNMBlKTgoDmdl1eJvTKxzB/uwrSzeYoW sJEgkURubaQeoTG0eh2it5C/KAxUgv40dnkEs0nKlfEWGcL+kHXSeE9K8OiFKkweBTcI YhvrXuyQu3DLqSHM8GZFqHHbNCaeAxIEpFVuZCU7Xf7Ol/tGrxfTDUsIvHudciPV7MHE Vt8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K3bxmHgV; 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 i1si14009334pgs.132.2019.08.06.11.41.51; Tue, 06 Aug 2019 11:42:07 -0700 (PDT) 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=K3bxmHgV; 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 S1726230AbfHFSku (ORCPT + 99 others); Tue, 6 Aug 2019 14:40:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:37458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfHFSkp (ORCPT ); Tue, 6 Aug 2019 14:40:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 B2C1120818; Tue, 6 Aug 2019 18:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565116844; bh=u1x4R5iUanTwInCID5PwGTrmyW23jOXOmyoOOvc4ERA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K3bxmHgVSZOVnoqiuGhDKNBmuYYh0uuCp6Y1rh99th1Z9FIUYrg5RIIvgqAUNT2KI ZS2B2vSpvb845Qx10KpHQAtMMTHeYD1Mp/YQ1cIff7Gn79tPvtnPj/Yb7hQVHCMtVD K0NCzYURphpm5+cWg0U71eUEriCKwUDCdL6mBrcY= Date: Tue, 6 Aug 2019 20:40:42 +0200 From: "gregkh@linuxfoundation.org" To: Stefan-gabriel Mirea Cc: "corbet@lwn.net" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will@kernel.org" , "shawnguo@kernel.org" , Leo Li , "jslaby@suse.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Cosmin Stefan Stoica , Larisa Ileana Grigore Subject: Re: [PATCH 5/6] tty: serial: Add linflexuart driver for S32V234 Message-ID: <20190806184042.GA26041@kroah.com> References: <20190802194702.30249-1-stefan-gabriel.mirea@nxp.com> <20190802194702.30249-6-stefan-gabriel.mirea@nxp.com> <20190805153114.GA16836@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 06, 2019 at 05:11:17PM +0000, Stefan-gabriel Mirea wrote: > On 8/5/2019 6:31 PM, gregkh@linuxfoundation.org wrote: > > On Fri, Aug 02, 2019 at 07:47:23PM +0000, Stefan-gabriel Mirea wrote: > >> > >> +/* Freescale Linflex UART */ > >> +#define PORT_LINFLEXUART 121 > > > > Do you really need this modified? > > Hello Greg, > > This macro is meant to be assigned to port->type in the config_port > method from uart_ops, in order for verify_port to know if the received > serial_struct structure was really targeted for a LINFlex port. It > needs to be defined outside, to avoid "collisions" with other drivers. Yes, I know what it goes to, but does anyone in userspace actually use it? > As far as I see, uart_set_info() will actually fail at the > "baud_base < 9600" check[1], right after calling verify_port(), when > performing an ioctl() on "/dev/console" with TIOCSSERIAL using a > serial_struct obtained with TIOCGSERIAL. This happens because this > reduced version of the LINFlex UART driver will not touch the uartclk > field of the uart_port (as there is currently no clock support). > Therefore, the linflex_config/verify_port() functions, along with the > PORT_LINFLEXUART macro, may be indeed unnecessary at this point (and > should be added later). Is this what you mean? No, see below. > Other than that, I do not see anything wrong with the addition of a > define in serial_core.h for this purpose (which is also what most of the > serial drivers do, including amba-pl011.c, mentioned in > Documentation/driver-api/serial/driver.rst as providing the reference > implementation), so please be more specific. I am getting tired of dealing with merge issues with that list, and no one seems to be able to find where they are really needed for userspace, especially for new devices. What happens if you do not have use it? thanks, greg k-h