Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2027515rwb; Sun, 6 Aug 2023 08:12:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/FJg4ZJ5Sth4/bHdwgl9y2teZ6oG6IgVmUZopIoQBsN68p1kknhWqrBpYF74wzJyiCEaM X-Received: by 2002:a17:902:cec4:b0:1bc:1d1b:2314 with SMTP id d4-20020a170902cec400b001bc1d1b2314mr6828672plg.26.1691334747271; Sun, 06 Aug 2023 08:12:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691334747; cv=pass; d=google.com; s=arc-20160816; b=ix2F5Bl6oW2lRfjR+zD7fi+UY82NrAr3SHTJN+wKEfqOjCQKhP/NCWPBVmJ+DI/Snw SnQMGsOyg67vEemapTfv2xiaIgItaY6hxlsu3ul0g9SXFhxcqNvvzGSiQ2BxsuRbbfCa 4AjiqgiatgShz++ZcMTwmPCfUb6KP++uO+Hzaf50QeTF2oAj4OJ5VZlZfJebP6vAqiEE ISM1sZUFZQlMkp4USood4CFb8B3TWYaNa6EydNb2BXegHfCHvb8sAbxTjwl0Exr+2CV+ uB2/c9+90HkXasO5wxHkA/BRrX/l5rpxwgljlAbICBljXFEF6nMB0AW5xm5fLo/dNOnj e24Q== 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=NtX91GeRYsEjtQd5tXkPoBNr3P6cST/hSgdk9x8mqoA=; fh=jOhEVP17xB3FsFuKFIfuMzqtLm4+/qfV0GBTa/VfYsk=; b=SozMrkf+rajzM170kCY7VTVvUv7Wdd+2PfBfmZxfzUb3vlP07R3sGIlZZMDX7CkkjV sDr2QXQs7Rfkfxk1Xo+bkJDRgVSSYIfmE/0wUkgBIv1oNDqr7t7OZ2ChZXsg76i3I9pc sadV/WDd0jj7Igdv3ufVug3fYr4WiqxttXUyRTH8ygR7XNORTlphP3iAuqD2SDv/de1k BFO2DSTHLs/x9+08ltdQYSpjOwy5tcVURxxsdLtNrTYzF7A5estcNivmporuW1KKDWWJ Vq0iE/wTYAqZ4M9BirvZWhLkdfO17GZJ04EQ3iL+ptL5Ca3zEqzovG7q20CPTvku++TT 0ndQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=g8I1s+qc; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a656642000000b0053b928deb7asi4557243pgv.344.2023.08.06.08.12.13; Sun, 06 Aug 2023 08:12:27 -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=@Nvidia.com header.s=selector2 header.b=g8I1s+qc; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230324AbjHFO0j (ORCPT + 99 others); Sun, 6 Aug 2023 10:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjHFO0h (ORCPT ); Sun, 6 Aug 2023 10:26:37 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2054.outbound.protection.outlook.com [40.107.243.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCFB1B3; Sun, 6 Aug 2023 07:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FI42vvakfqU8lV/a7XV/oOBPeM66V36gBb4WJL86qYDe5U6K4SUE9JPIA8Bj24voQUgIoYI5iD6z1RiIHzIpB+1d3u6f0RMoxP3Mbj2ksPDkJRLs6lblLdgWg4BDL+bLwTiqPZgJWK34vfaudNJSo5CBspNFYafOzSHmNSgGSvOpy8r/QCmlQqZsnF66xhTMLM/WUsidMcZkbsqkDyNzL+4EcSEtIfDyst5Q5FV82dwW3pFEDSklxw47J0r42W3Y3IEd3BHyM4YyF1UgK2mnx1U/fyhpn0VcdnxnIlRMRNdq7BBadRF4esgN8Ky0H52u6JvBjNJiDYigOhgcecvcYw== 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=NtX91GeRYsEjtQd5tXkPoBNr3P6cST/hSgdk9x8mqoA=; b=e70y20opHDK/wZl7wmZ9FY6bNBQVrf7NFUHjgQgpjSbznhTiH/uFHvelTsXopB7l1cQ8sPB1WA5XjAnMEvvP/JsbHBFpZG2qs6QVgnMKcD1MDp0G5fTSI+r+VsgjrEsvXTZl0Mq4KoWKHXzB/MLIU/aPg9+mR2VdawvhddC59NpG5lsbPtSo8RQgncggYy58oZabMFEuhKuuceRnWkghU+QG0Ke4Oxx8j6bZIBL3sr0pfZuED+qFTCGF9UnHO3MKcNdyNumartDKuD2ZrdKEqsQWyj4On4y9OMAGmm7GOgfmfIdG7QdAelXnuIWpZzw8XKFy4KAOkGPe9jVyB+2uCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NtX91GeRYsEjtQd5tXkPoBNr3P6cST/hSgdk9x8mqoA=; b=g8I1s+qcXuN/T9oVeb4PFAJx6Y60FLeFxzlzpLg44OY3r/3+8wLQmFAypiPbFRroIhl9WB+ADaxEC8ezB3eivn5ulf1AT/1Qb8Ew33iYO2HgeLM4HElbBR6s2ChV7IuAeBPvDmIXBbMi6Fsbvx59pE8x6qtit8DkYVy7CSZ/FHXKAlLo7Xbh8DiunQmdrQkZKlWEEe2JnigaNHoXipUHXW3tFpsTH4c20Y3a0wokheepNVm7HOvW8lgLC95kY1OKKKaunjyvq18TM/o0r3bZBEsfxSGpnv5W6tEnfKqPAHHgqMXeboqvSBujAvNAgn77ez7H+OgIcC+a75AlL0hnzQ== Received: from DS7PR12MB6335.namprd12.prod.outlook.com (2603:10b6:8:94::11) by DM4PR12MB7551.namprd12.prod.outlook.com (2603:10b6:8:10d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.25; Sun, 6 Aug 2023 14:26:33 +0000 Received: from DS7PR12MB6335.namprd12.prod.outlook.com ([fe80::b545:e43e:779e:84f]) by DS7PR12MB6335.namprd12.prod.outlook.com ([fe80::b545:e43e:779e:84f%4]) with mapi id 15.20.6652.025; Sun, 6 Aug 2023 14:26:33 +0000 From: Akhil R To: Andi Shyti , Thierry Reding CC: "christian.koenig@amd.com" , "digetx@gmail.com" , Jonathan Hunter , Laxman Dewangan , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "sumit.semwal@linaro.org" , "wsa@kernel.org" Subject: RE: [PATCH] i2c: tegra: Fix the check during DMA channel release Thread-Topic: [PATCH] i2c: tegra: Fix the check during DMA channel release Thread-Index: AQHZuME/tr0ShuZ0qUGsBKbHCTYYla++E/uAgB20fYCAAai1AA== Date: Sun, 6 Aug 2023 14:26:33 +0000 Message-ID: References: <20230717151240.68899-1-akhilrajeev@nvidia.com> <20230805130147.eabmdfbyttx2mjpl@intel.intel> In-Reply-To: <20230805130147.eabmdfbyttx2mjpl@intel.intel> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR12MB6335:EE_|DM4PR12MB7551:EE_ x-ms-office365-filtering-correlation-id: 0ce2b863-78b8-489a-ef7c-08db9689222d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y7GumJqPlUXXIILNfJ+nWYsnBCpVgvFCI7/z/ZgDBCEsaTkleditADBD+pXRmllGQhRh3H7E9IZ8trHz73QhAD0Dw93JcuXuVQSAeb7qpBHWSY0rRlxgrbh8vGX2p/bKcquTVUluagXPCuLF0kQBMr+nkuAhAD8o3a4b1v0i6a9x7l1TUb8nWiDnhbN6Ztt24XMIirGCEdn271MgrVh8Vpm4+3sjkVe8YhxLab6objYpvHJMsd7BzD2mDw1jiKD1CrBJOcxLBx7hMJuCtOac8317Ihcl0DV2kG+32ZgIxRJDd1x8SIG2aYifyI7HuaoSX81ssKIGQ5+tRPBC6X+k282nj7CklX5r2qtJFPbLynvILlpstqtTTAKhk3gqmEezdKsJ5wTlaZTOIp44TxjNpyXEi+WUHxdGGjUa29dwJJ1a6Ijx555GBr0TfICUqNqDYCy89sqCz4JuQEvAcurc0/2WscR8hjjnhm0t8M4BVkhQw2+Wn7JlUnOWF1Yyw1AXzZG+FhzGRS4Z4JuW6rO7ZsXgAW3OLGPkhxEtfYNmuWxGwWa/Lef6HxPMCk6+OknB1sQ4HvNCHOyqy3/TemSMQGKMnbI4IUM8QcO50fRdWcCyLlx7HyxydbiiJ+PNYA7wzBFwcNv2uUXSGBfTOBbvMbUrWPWEU/uTBo3ON3VzYx8= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6335.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(39860400002)(366004)(396003)(136003)(186006)(1800799003)(451199021)(52536014)(38070700005)(41300700001)(2906002)(5660300002)(83380400001)(4744005)(8936002)(8676002)(55016003)(122000001)(478600001)(86362001)(316002)(33656002)(6506007)(7696005)(38100700002)(110136005)(54906003)(76116006)(64756008)(66446008)(66476007)(66556008)(71200400001)(66946007)(4326008)(9686003)(966005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yUSbxbhfX8hhd5d3LMw2F9b+pkGy97MTTmP1Jl6LJm62LifTZ5kKlzooVO3b?= =?us-ascii?Q?oZ+OilOkjhCRh5ECU726djXYZb7W27dq535Q28cmWtxgiW/3cfzuI5xFJ/sw?= =?us-ascii?Q?hI573PYHSUJeIdjOws02xRqE5apOrUCUecBWeuiBYfWHUoYm8u3AFfcmBZ/w?= =?us-ascii?Q?0xq9D+xIeT19IB2s2Dht6ozox1g9G2rC7ntfi5tICtjCLUuAQuq0xWkA6C2w?= =?us-ascii?Q?gXagS79bR1bs56kAu+iN0E7lqH+lDAtvOVwdN0OYS4MojwNVgQT+p7FLO1B6?= =?us-ascii?Q?x4kBASTLTwflpyiBKPw9JRAkpFxY2+X5pbHAWUnJjVINoXkHz1l7fYhUxfkw?= =?us-ascii?Q?WOb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= =?us-ascii?Q?t1VnmbZLdrZkVLt8p8wfuI3DutYwFl6eFFigoKcrn9zAxUF4mXovxW4gCB+5?= =?us-ascii?Q?uhOQZ/ItbC4qjRlVrbcwyV1pCG+5j5Tva3lW1evfmrztJM15GjOSmzsNwHiO?= =?us-ascii?Q?cOPmr9fsizORVUJvVzqCsaR1FjTPJdunqHY5Q0HrBVzWC9QeAWzNpcCQoriK?= =?us-ascii?Q?VDrZblN3ZwY4a6PlkuN8VDUZ6dvGdLHAsNCnJPmQQ+MGUPt8JGOupUmda6OE?= =?us-ascii?Q?Ro4U6jbKOiKiLW1MpBk8U1HSbVxRfU7IYEh5m8XZD9bsD1Hja+xHMZoAIUcJ?= =?us-ascii?Q?ZprVMjY/ET3ujX+XkSSX1BN7f/+OPl54SdmS3RfFfEF/Wu5FsPSeO9+lhaJU?= =?us-ascii?Q?PBFJeNbVv3YSHtcZMUVzVeC97wdz64hJfdHtB/e5rzV/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB6335.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ce2b863-78b8-489a-ef7c-08db9689222d X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2023 14:26:33.0733 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BVy68C2e+V248E1KEhgLrME12QUxA13PJRrasGWLkTb1crtmMBxX75ZgndI33Ndkzba3W2v3/BxXZTGvFMVjXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7551 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 > Hi Thierry and Akhil, >=20 > On Mon, Jul 17, 2023 at 05:24:15PM +0200, Thierry Reding wrote: > > On Mon, Jul 17, 2023 at 08:42:40PM +0530, Akhil R wrote: > > > Check for error and NULL before attempting to release DMA channel. > > > > > > This, otherwise, was causing panic and crash in kernel when the > > > dma_chan has an invalid value. The condition occurs during > > > init_dma() when the dma_request_chan() function returns an error. > > > > > > Fixes: fcc8a89a1c83 ("i2c: tegra: Share same DMA channel for RX and > > > TX") > > > Signed-off-by: Akhil R > > > --- > > > drivers/i2c/busses/i2c-tegra.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > I guess this patch is not needed anymore. Correct. This can be discarded. The below patch from Thierry is for the same fix.=20 https://lore.kernel.org/linux-i2c/20230707132619.2998382-1-thierry.reding@g= mail.com/ Regards, Akhil