Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp519065ybt; Fri, 26 Jun 2020 05:17:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjKBRv4f//FiA/XOFGW0l0Fb6yslbDoSeT55o4BeYjycn5cuN+jPALeaQhebRSp+vPCa6W X-Received: by 2002:a17:906:2b88:: with SMTP id m8mr2428091ejg.509.1593173849873; Fri, 26 Jun 2020 05:17:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593173849; cv=pass; d=google.com; s=arc-20160816; b=j0k1mobADWSZZc4hiRKFY2Al1yKD7r91FB6a6KxeQ1iZuPSBaqo7FuyKeFPdnvY0+T fQZCQ9c0zUFsmENA+VVJHU64WovCGpUNbc4liBHirm9TkRtV/ub6v8xc/BobqtRVTvm+ Nu/a/bBaZKLODRkNtQX3KyQrAA05d4WM+3SFzsx8EXWAef0twe4X1tNur5UahxycxK0S 0t84HO3WcXG5H4bCbqjz897r0PSC+noMDvV/XbxIb7gwfB0Tkww011xTc+Vm4aMk9ZtA wPqbBGPcAqoRlEuPK8iozWf1TOS9KNMXo2aiSIeJJCBJWlcbPVG2V9zdxfdNYwV+BJjB ++4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=iBrJXOmFsrVsXY6D5uSuDhc+JYskV+BgBgoXOkXvLns=; b=s9aTEO8lDilkR7GK9j8guFVpkTW7aaRQwtmYJyOjzflfHbshWAFlDsOwszHsISfyYB UFMONRHax7ZIh7kdJOMZe4EOXV3XSrH6fQnV1y2PhZMGw5ty5EXvMWBQF/U2CZF14Lup Ed+nSHnM/kRG6HLoZ01iOgyqtvyOLQgV7MjHnEaQb4QNc9TOaSxk8M40PmQ5pOXtpwH/ shbZ5jwhKl+L/kT7sdlPlSkjYU+ScjYg74GY8xyVZAN8Ojxj8cC7pTaPZdBDPcQphjn5 h1ZTEauZC9eveVapZPphlmg/B2LQb6Fqhf8y0/R7wzKZaGmvySq1fXyqswnbLIYdY5AA LV7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ORdPIyaC; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si17310985ejd.588.2020.06.26.05.17.06; Fri, 26 Jun 2020 05:17:29 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=ORdPIyaC; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728408AbgFZLSq (ORCPT + 99 others); Fri, 26 Jun 2020 07:18:46 -0400 Received: from mail-eopbgr80059.outbound.protection.outlook.com ([40.107.8.59]:10062 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728380AbgFZLSp (ORCPT ); Fri, 26 Jun 2020 07:18:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+4wRQI3E8Jvia5xa6KlYOtQnfnAipEJKA0ZQhamJF3Rb0gkEQei6xzrZ8w0gOblVD/cW8gFrx7/DkalUZF90lvBI/2zcc+64C/aPPshQfLOqb1sjYVtPIv5G9X+FH1qEyMvhv6J39w79eLIRB/296TQEJs+VqEbkX4ljIXwYTeI0ZNhPIjpTtzhldZHoCOajtEXZRBgz4yLM97cYVJbZwVYG8llVCzqSNfqa3OI3678VFFaaXN5SzutsYZquJ4oI7gC5sminMxb6pcumwfhTQNi11QH/R7HYt4K+mYsG9eZERqDm2WEFp6rl1LxZw815BaAbdhev/fEmqu0vfUjuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iBrJXOmFsrVsXY6D5uSuDhc+JYskV+BgBgoXOkXvLns=; b=P5DT/CVTecTNtr0xeFziW6w14GY+FAKECVGmG+jgW2Jht/tAzUW4bYAJJFYZ4pkq+1BpqElKIVpNCh+E3xJG0/US7CWCgPbja8eE205ahZMZdkeOOvCIK/GVr1FYmnk+7PIZD5Gsyp5e9UeAC5BEP4y0COB7w9WFVydqyyXskMddeP8ZA1jApux68WGrN5qBJaKfyaSBwP7KNGaHj+caPTYElzSLxFhIkGjtPOGj22EkUsITg0zbu4zh3E8mz55sMihPbapVfAcSpHPKxD/xc54+umv1If1q9YuJjHXDvBJIwlXHMSTcKIMZJId0kbYCiiUaeGEb88blJdtvgOSuzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iBrJXOmFsrVsXY6D5uSuDhc+JYskV+BgBgoXOkXvLns=; b=ORdPIyaC7BB2SGUP8pHNB6ggmQOfXS/e1kgcBCybQeOE/Xh2gWUgeZdrL0/7FCqTaiEqihgTT351+OXc+4J3dQuFgDw9tCGaArEFhe8l39X0qtuiK50nuPTjlpqjQVulrDtINuaD9cWfvr5s7VyoG2gzS2ta3g4tNP3BquCWlmo= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (2603:10a6:803:5a::12) by VI1PR04MB4335.eurprd04.prod.outlook.com (2603:10a6:803:4e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.23; Fri, 26 Jun 2020 11:18:42 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::1c58:aed8:bd10:6c9e]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::1c58:aed8:bd10:6c9e%3]) with mapi id 15.20.3131.021; Fri, 26 Jun 2020 11:18:42 +0000 From: "Vabhav Sharma (OSS)" To: Greg KH , "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 Thread-Topic: [PATCH] tty: serial: fsl_lpuart: minimum baud rate support Thread-Index: AQHWS6uMK90atu7fKkiLW+wqBK+01g== Date: Fri, 26 Jun 2020 11:18:42 +0000 Message-ID: References: <1593078545-11272-1-git-send-email-vabhav.sharma@oss.nxp.com> <20200625100410.GA3327034@kroah.com> <20200625105256.GA3335222@kroah.com> In-Reply-To: <20200625105256.GA3335222@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=oss.nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [103.49.154.18] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b73f394d-f30f-4d5d-bd18-08d819c2aef4 x-ms-traffictypediagnostic: VI1PR04MB4335: x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0446F0FCE1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gjcIpodNWLqOrfjGnBGC0OvKw5trJdej3MQlt3XlcOW8dWAaEFEGBA9gA7u2j7uR1l8UIcUrXX/BsN26DfGKI/3kadW4V5geQoz03mKsz+0QC9EFhKbf640GWtCaZnu1jXdaZXL2V4qd9vxfxDTgi9HVFJbZApRadyjrqhgNvFtaqRkv9UBsKqgypH/aTPOUysta/iQa0yA4lEa+0i95T+/krJ06WRJINqMMQqsDTAMMaV7QHVgA1mANYjK8zu14wz1OAtnVGBUR0UfgOCqYQmgIsMuztvAaqkJrK3sLc4mI5fjS0W5ljh/Eo5gHq6RXohsHGEcIS+cFPnSb7pl7CQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4800.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(136003)(396003)(366004)(376002)(39860400002)(66946007)(8676002)(53546011)(66556008)(71200400001)(66446008)(66476007)(316002)(86362001)(64756008)(54906003)(4326008)(83380400001)(2906002)(26005)(8936002)(7696005)(33656002)(186003)(9686003)(110136005)(6506007)(478600001)(5660300002)(55016002)(52536014)(76116006);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: 2CIHuDmVjW5YjEaB5vCLsY+0fcgO40QgLYC2UcH8QP8SgnDo92/hlhhiT8ptB2/A2emJo//JPqky93yxp/VKm30ZtTXD40x515tZiwE6+vfxS4Cziapv6YxvxT5BDZENCFzcmd6esxTYYbbAQbaro+ChCZmhSFC9asf1HYvCD09a51UE+LJOcbHQXx3geC1TONLQcKfK8Y84OMcEfZgay2/xz4aoWDN0geGFMup4nQBAkOUBi/GXLLtXxb4nqUvrsFHLtwySIaZgP6Ng7ZmWWRDFIFgvZZwnzccYqSZxcaMiakI0roZnhfKkGg+b9TxR0ZW7wUqRVb21BFQU56EROYOuZOaCve0GPzQG9mpQLQL0CJmXpScKktQU7kGM2W0L0wCnL84gk3shPqKMULW5DKlNrBACH97hOOA/hTIVqw3BWQRiipedf6KgHKELK2vD45TSnW2RPCKDSpka29+RGxNj3rBMZnWXHNLpCLmc23E= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4800.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b73f394d-f30f-4d5d-bd18-08d819c2aef4 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2020 11:18:42.1740 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: O66TgWHhVTpYxkp69xKpQfa3+cRktqVL9f9MpnEbBIFvOAn1onXIPa/+saqEYkxIJzJA52Y0oNr2mKaD9C5rtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4335 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Greg KH > Sent: Thursday, June 25, 2020 4:23 PM > 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 >=20 > 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 =3D "baud clock / ((OSR+1) =D7 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. >=20 > Ok, then something is wrong as there is obviously a coding style issue wi= th > your submission, as you can see with a manual review of it, right? >=20 > greg k-h I see, Unnecessary usage of brace for single statement. Thank you