Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5912916iob; Tue, 10 May 2022 06:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaVjAX2hHkbV64qDOKE8h54CfqecsS2WyJNFHtLjAFnjWBB/G0V7YJXgaN7yc0IgFQ1z5e X-Received: by 2002:a62:3881:0:b0:4b0:b1c:6fd9 with SMTP id f123-20020a623881000000b004b00b1c6fd9mr2043109pfa.27.1652189758717; Tue, 10 May 2022 06:35:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652189758; cv=pass; d=google.com; s=arc-20160816; b=u2cTYj0u79J3l+EXHZQy50yC4c4uFQMNeGDXKJlyuFTqi5CtmhJd79zKEFYrioLrgH XeoN9fAymZSoVzzDr6MziOv0kukdE0sOlD+4Ly4R40aG0uJAGLhhFjO9kTydW9RRDmJS RVDRkFzElEc/oI0oIGHKBeZ6xQVN1ZUl0TbvFPkjgZ1zG9hq9jxbJtjSqBE7mf2GNVMk ISAeLPg8SHWveLWbXkYZ/HnrRknDE2ejWwfhwqcsSK39wskhApnQlJZzIAg+bQVuzU6H WaqYm/qTAGjl0Uhg/UMRd+Jr0i7fij3/CUF6LVkRryiT0+exXr7+jfiiy7iXcyvuXa4t HmEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=omMlwAnhCTchfOtvdyouvQJqAbnZMVJ/q7HvgFzSMBk=; b=fJzEpW8sMA4kBs2VEYSpgMK5NWuaS6lWmQE3vScVKAakLC15rQKElfuPvI9YCDa9f7 lzuseQwLWdaM5tcJKXYkLaBZ2Vo0Wp6U1wLah5Igo5z4zgJxZJEHfVDZbm1MxVxQelD1 N5JCkITo2Yl/nti0kKWyGPZWYQ6nHEcKPoZeYUv6qrZiYjlbKxuwFEQKLwFeI+Danlt5 sEVf35QNPKQe9aLZnsKkvnfaoxXLadm8/cIGz52SdLx2DLM7NDwqt9R0GcRsR8oJgNEh B7ZMEFU7D3SgQgyi+ARSSFot/FYKXOOxCKGIVbMYHCpTzckf9+ghOX99sRB7Z66pYfxy nObA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=DhWcNQVf; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a630006000000b003c6cb42cdc1si6541307pga.864.2022.05.10.06.35.42; Tue, 10 May 2022 06:35:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=DhWcNQVf; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241294AbiEJL5l (ORCPT + 99 others); Tue, 10 May 2022 07:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241307AbiEJL5j (ORCPT ); Tue, 10 May 2022 07:57:39 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2089.outbound.protection.outlook.com [40.107.223.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF240284921; Tue, 10 May 2022 04:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FuQh11Fd4dKmMjOEGtIsmReJuGww1rKT2ytEbZpZbB/9zrWYAdA7jqAxub22iMN32LLr3rXxCWUDoseuyom5KcNuhJYmlry/mIebwmlGjlaLOu1V+CzFMJh76ybXd4+wCyGw+Ovnbz2u5mzfF++1HC7ilqnrBRXgr/Z874a2di3yJGtb5eq6s9iHsX19L3oIHdDQ9RjCiD+tBZv95ubJva/VlQnCC9PbtSRjLk17C8sCDM8z6e49A0iLw/vidTC8Ia6akxq9VgeOtMHRCdHklQY2Q+nYDgeY3a0BpuezPQoS7GmHHwo58NxI/Cxqk3rC3oHPGBdbEu/sqrFiemH3Yg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=omMlwAnhCTchfOtvdyouvQJqAbnZMVJ/q7HvgFzSMBk=; b=HybK6U+bmR8LM6rfKVp7gV1MdeqibFcH6VKmnmrs+n+BXE27UeiHrsPw3RJRpIR5dD1jGZYGmCyebfdnVp2kHWpJ5jnKj4iB7hpHO/ankhqMuV3XOqhBodTZqbnXjSgQSfLvzoh/U/qX1nNjIBU9QfcQ+hkKDSW8TE9dAQrxPhFXxYpf3yhvG9xw2FoJRvKCVWz95ceV6LtuNnpaOdhFM+QlbTWO58VJygv7oe6xCtd/TWqZARqVRW5GPoefklya3yr55ekED0Qo4JBSdRNk3hnqwzJAhz/TT1Eicx+b0gN+3RuhuLGuDrOiloaru30PqjHvj/OQiJO5iMkrMy4rMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=omMlwAnhCTchfOtvdyouvQJqAbnZMVJ/q7HvgFzSMBk=; b=DhWcNQVfKVS6nmpiGMl6+/C9+UdL5zo4BCSs2Ux4Rk242IWM8YvQeq1NT1/Y7vBOBrau6UR5yuGApZ8tpkqlowB1+5b5GUH6HCv+Kx7IZNW55vvWHQHzkNzrXZfe9esS1TRgIK2/BQRvyWjVx2f6ZfpNEK3kDJqDIJseP7a64JA= Received: from DM6PR02MB6635.namprd02.prod.outlook.com (2603:10b6:5:221::18) by DM6PR02MB4091.namprd02.prod.outlook.com (2603:10b6:5:9f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18; Tue, 10 May 2022 11:53:37 +0000 Received: from DM6PR02MB6635.namprd02.prod.outlook.com ([fe80::a525:6e3a:42d5:255b]) by DM6PR02MB6635.namprd02.prod.outlook.com ([fe80::a525:6e3a:42d5:255b%3]) with mapi id 15.20.5227.023; Tue, 10 May 2022 11:53:37 +0000 From: Shubhrajyoti Datta To: Greg KH CC: "linux-serial@vger.kernel.org" , Michal Simek , "jirislaby@kernel.org" , git , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 3/7] tty: xilinx_uartps: Add check for runtime_get_sync calls Thread-Topic: [PATCH 3/7] tty: xilinx_uartps: Add check for runtime_get_sync calls Thread-Index: AQHYW6ErQ7FqpGCLDU6R47eTuYGS760QzEKAgAdEs0A= Date: Tue, 10 May 2022 11:53:36 +0000 Message-ID: References: <20220429081422.3630070-1-shubhrajyoti.datta@xilinx.com> <20220429081422.3630070-4-shubhrajyoti.datta@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=xilinx.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 19fa14a6-be48-4157-a673-08da327bb7a9 x-ms-traffictypediagnostic: DM6PR02MB4091:EE_ x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QgptYQHJWY8JkPcg5q3537M5x0weCJ1X047V1pfOfR9nvpDKfp0zYy9RtTp2RbCany8mOxgq/G4aZGtE+FydyC/UwA7lJuvjbNU/m7tO8OevGD20E19cAiZ0cYVr8D3Vrsdwj7nBMriVtQvICUdq1hX7wMJ1UzdZpjsPaNECcpV2tBFGZRigmXrmFWUsHeD7sOFfI15ACaChcMv36hA4sGxcTQgrHMY8cP4AT2UK9iuQVaABpZfpJYCUz3SvjhQ1aj9WD+0dcoa58lRNwI3aYZ7J5WEhGgMK8WM28zapJsXUAnzU4ejAFSXSm9IP8xmZmi1tG9tpixps7M2kHxlhyct3wag1xEp7H0s37Kv3rlAAsRa+EAeE6GZElN3TV9TaQ97ARxaP2JD8MVDIEa58OcylrScw8Fh27+VUH79Jz3TzuJZDEy/qewkRguAcNaqXmqOx9469i6OFdLmNC2WxAZgsRp5fCGYuu56XcLt0jPX/zcDufS3xAD9K4Y1YulFPycvnTwfynRRNGlLD7ZrpNCyDlcf0KsjwIEppWDhE+nC4L37wxLX1Uqz4ojwY1I81IJBCQj15yPvfIO8zgOtNWv7s5wZp+4t+1mZEGa3YUPd6YvsDpmOre6VuCXjQJU4u1Hb8aQ3R/aKMGUUMI1K3pM3AdeNcfWRK7/pZdsf+ConGdOrql7PyoA5IfVa4eXKnayWGfklogCCEg/s8TzkjMg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR02MB6635.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(33656002)(86362001)(122000001)(83380400001)(55016003)(38100700002)(38070700005)(71200400001)(9686003)(26005)(8676002)(76116006)(7696005)(4326008)(66556008)(64756008)(66476007)(66446008)(66946007)(186003)(6506007)(8936002)(508600001)(53546011)(5660300002)(316002)(54906003)(6916009)(52536014)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qtdlUNjh4Oj7sHDwXeqIN68QPRFgqaDUwqG8evoZPEfI9TY18RlWrw5Ho5a1?= =?us-ascii?Q?SYdMv5zc7S4iQYVgATwTBc89pynnDbMey2qbGn44qUuubqLxqK1HzM5SPtnB?= =?us-ascii?Q?APDXA69fQfXNnoQgCsu/cyWWp+p4nWRdbhGdk5dxsYERkH+EUHNtMJ2KouA1?= =?us-ascii?Q?IWssJZpJRPiAWLPHA3QJPDKlrglzLr5oymebhQfzjY1RwKvambWIcek4hyoe?= =?us-ascii?Q?jkESAH4TOeOoPpQ8loXCfNxKs8U7k23sInu4skXaSsKlivlzBuClpBzLqLKU?= =?us-ascii?Q?mUuC942TG/C2zHVvustBqMApIb1lswoCkkpNO4HdTh4kcAxKxPDgOBnNVs8R?= =?us-ascii?Q?RRZmE6cFBcqZJKiBXufnyiFM4lxxzDwT2JpQCLZT6vFbS7T+RkMSR7jJFWNC?= =?us-ascii?Q?+BqB482Eivmy3SD7DvdTeiFTU3RdylwXXlWDFo6TlIF2fndE14yNhcqbdrV2?= =?us-ascii?Q?M7ClUe976shL4LqSJlhTYHl+XQWus1Sy0ljbQOc+8avLCRJh96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9kGtt4KvEQ0gILMjocd/+iqV78NivWXD8K9AjbMdmATjt4ZBKKrQ77?= =?us-ascii?Q?oUsucFsBzR51CKyI6ouYDlOsPjheTotZuNkua0+m2fiYJ9qga2iJ2i/U0Loe?= =?us-ascii?Q?qC6TErEjrwzUft5rqBnGYtnLqZhLDaIoNOsgszGEBFcUq5Ot4WWr1siQOtak?= =?us-ascii?Q?RnO2YFcLakbbJHuTdZu7uDantUaG4l3PrtSlncNt+MgNRhgVTnkizoG4gDZy?= =?us-ascii?Q?TihKuhCo2o53QkUiMKV/IfWE5MLvtjN88QqarrVQwP5y2HK+NjamhpIicVfG?= =?us-ascii?Q?SJ4OYTPUbuJ7dij3ltBe594/77dQRy8CPAG2Pf4lhrxIvoseKNYOgviZwmZ+?= =?us-ascii?Q?Hvk53qfOLA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR02MB6635.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19fa14a6-be48-4157-a673-08da327bb7a9 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2022 11:53:36.8812 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jw3gJuaoHdD09yBrt7GupNK2dQFrWs+barVtC8J+nM54JlD5WPyjYz3r/WWbncN5OajujbIOESuoSnYfXGPfqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4091 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Greg KH > Sent: Friday, May 6, 2022 2:21 AM > To: Shubhrajyoti Datta > Cc: linux-serial@vger.kernel.org; Michal Simek ; > jirislaby@kernel.org; git ; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 3/7] tty: xilinx_uartps: Add check for runtime_get_sy= nc calls >=20 > On Fri, Apr 29, 2022 at 01:44:18PM +0530, Shubhrajyoti Datta wrote: > > Add a check for the return value of runtime get_sync calls. > > > > Addresses-Coverity: Event check_return. > > Signed-off-by: Shubhrajyoti Datta > > --- > > drivers/tty/serial/xilinx_uartps.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/tty/serial/xilinx_uartps.c > > b/drivers/tty/serial/xilinx_uartps.c > > index 8f15fe24a0eb..868f4e587263 100644 > > --- a/drivers/tty/serial/xilinx_uartps.c > > +++ b/drivers/tty/serial/xilinx_uartps.c > > @@ -1100,13 +1100,17 @@ static void cdns_uart_poll_put_char(struct > > uart_port *port, unsigned char c) static void cdns_uart_pm(struct uart= _port > *port, unsigned int state, > > unsigned int oldstate) > > { > > + int ret; > > + > > switch (state) { > > case UART_PM_STATE_OFF: > > pm_runtime_mark_last_busy(port->dev); > > pm_runtime_put_autosuspend(port->dev); > > break; > > default: > > - pm_runtime_get_sync(port->dev); > > + ret =3D pm_runtime_get_sync(port->dev); > > + if (ret < 0) > > + dev_err(port->dev, "Failed to enable clocks\n"); >=20 > So you just ignore the error? SHouldn't you propagate it back upward? The cdns_uart_pm is void so we cannot propagate it upward. >=20 > thanks, >=20 > greg k-h