Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1343949ybt; Thu, 25 Jun 2020 03:55:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsZNzT+AQG2N1Nb4Oys56pVlpXd2kNPhgeJkv2aHQUd3wcaOJCaBxG7/uEW02kWPypeR4W X-Received: by 2002:aa7:c403:: with SMTP id j3mr31473167edq.294.1593082554738; Thu, 25 Jun 2020 03:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593082554; cv=none; d=google.com; s=arc-20160816; b=A99gONOAktePe3wV+YlD6OjRP3gZyM+kackIxy0vjka3uKg+k0VOB//9q1yA9DXd8P 92X5Y+zFT/rSy0+pIaY6u9PIVhar332+6ZRsm9QoKKUvDg7uwi47UpD7463ogjDNF1gS PCATasSU/7SDk4xJEq14WS9MNW+VXTjosF0ufQRVmLcByp6t3N8qFZWpc/qs28swStpd restuitJyiwtE7D27ihjBO/YiNyYVq2NhaTqpp4Z0vaYLPFFOx3lmm9+xqvOhazvlYdP 82vQ5wLpxGy0WMZBRvo9XmVLvXloUhWtOC/iuknFrcMuvqgkSRA+XfgCEcWLAM5qqetw xXmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7BhIY22qvZFVPYjuMJt/NThcLgwAgZZqQgLWzTb57AQ=; b=Pcl77zcAufchwNYg53thJbBRpE6U/IlrhBXUn3vZ9U95MHK2hB7Tc2vZWHW2wOldat jlKofq9JkM7Yq+djrkgo33o6Hydno8fbJyNWxwXSH0NgeWmQ0ojYa/XwVF8H+gx9C2ft HLipcHDGPK/C3F0CV0fVo3vgVY93wVqZ/RXwG8mZn6yDuxFXdj4sOsvhf6Nr3zMPaw7t eP/F6dUXnairWPfji1TaZXwweSivKJfjNFOclJ9e7NyBgsYr/zgIaWcw4e2UTZdk4r0j PEftViyMIC83Go+1T3k+8zFO8H4QGp28lesVjjHejpU6H3p7Ei6fxXqeoYRxywHTvBNR D0xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X9P4QH0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jt18si14042878ejb.445.2020.06.25.03.55.30; Thu, 25 Jun 2020 03:55:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X9P4QH0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404115AbgFYKxD (ORCPT + 99 others); Thu, 25 Jun 2020 06:53:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:48254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403952AbgFYKxC (ORCPT ); Thu, 25 Jun 2020 06:53:02 -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 7EFB52076E; Thu, 25 Jun 2020 10:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593082381; bh=xQYMEBX8Mbh29sjJ9o2nePFuoAeEimDK6OFXSbmCjTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X9P4QH0+uB4dIHxeqlov7R3GtEi1KhQo9JtH6jWsxDDjYzI+uTldWZERude6/N8bM 0d5cGKl72i48gvEtSAmV5fLTQkwnLmhJnzw6wM8Q6yu2+dWy9SaFW743JfUk5Nl0k3 a1Gx3nvqYS/SWhZHTS722OmBwzHy+QcA3KlBaxuY= Date: Thu, 25 Jun 2020 12:52:56 +0200 From: Greg KH To: "Vabhav Sharma (OSS)" Cc: "jslaby@suse.com" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Varun Sethi Subject: Re: [PATCH] tty: serial: fsl_lpuart: minimum baud rate support Message-ID: <20200625105256.GA3335222@kroah.com> References: <1593078545-11272-1-git-send-email-vabhav.sharma@oss.nxp.com> <20200625100410.GA3327034@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 10:12:54AM +0000, Vabhav Sharma (OSS) wrote: > > > > -----Original Message----- > > From: Greg KH > > Sent: Thursday, June 25, 2020 3:34 PM > > To: Vabhav Sharma (OSS) > > Cc: jslaby@suse.com; linux-serial@vger.kernel.org; linux- > > kernel@vger.kernel.org; Varun Sethi ; Vabhav Sharma > > > > Subject: Re: [PATCH] tty: serial: fsl_lpuart: minimum baud rate support > > > > On Thu, Jun 25, 2020 at 03:19:05PM +0530, Vabhav Sharma wrote: > > > From: Vabhav Sharma > > > > > > The formula for the baud rate is > > > baud rate = "baud clock / ((OSR+1) ? SBR) > > > > > > Algorithm used in function lpuart32_serial_setbrg() only changes the > > > SBR. Even with maxmum value put in, OSR stays at 0x7 and the lowest > > > baud rate would be ~ 2600 bps > > > > > > Update the algorithm to allow driver operation at 1200,2400 or > > > 600 bps > > > > > > Signed-off-by: Vabhav Sharma > > > --- > > > drivers/tty/serial/fsl_lpuart.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/drivers/tty/serial/fsl_lpuart.c > > > b/drivers/tty/serial/fsl_lpuart.c index 90298c4..0fd0fa5f 100644 > > > --- a/drivers/tty/serial/fsl_lpuart.c > > > +++ b/drivers/tty/serial/fsl_lpuart.c > > > @@ -1925,6 +1925,10 @@ static void __lpuart32_serial_setbrg(struct > > uart_port *port, > > > tmp_sbr++; > > > } > > > > > > + if (tmp_sbr > UARTBAUD_SBR_MASK) { > > > + continue; > > > + } > > > > Always use scripts/checkpatch.pl on your patches so you do not get grumpy > > emails from maintainers telling you to use scripts/checkpatch.pl on your > > patches... > Indeed, I run the script before sending patch > ./scripts/checkpatch.pl 0001-tty-serial-fsl_lpuart-minimum-baud-rate-support.patch > total: 0 errors, 0 warnings, 10 lines checked > > 0001-tty-serial-fsl_lpuart-minimum-baud-rate-support.patch has no obvious style problems and is ready for submission. Ok, then something is wrong as there is obviously a coding style issue with your submission, as you can see with a manual review of it, right? greg k-h