From patchwork Sun Nov 5 09:51:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13445687 X-Patchwork-Delegate: kuba@kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39A839475 for ; Sun, 5 Nov 2023 09:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=@siemens.com header.b="jgbHaRs+" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2046.outbound.protection.outlook.com [40.107.6.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BE1D6; Sun, 5 Nov 2023 01:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KeNXUoZT4uRzKusjAjel1c9CYfWMug0Ts91GTmq107+mXguNa2O2biEP19nozCWEpSdI0ax3bqrYvjjU9VTHhWAnZDHixEMjv5HCeUkSmXmDEyJgeOSmTp2hhFVS0ShqOLEhkVuGsFgMAb6HMhM7bnegBR7cStK1qCGey22qVD+mnt21RwSIyAg3NaM9fJPrlPM6YrvPWF8/Pn6VQe7sk8kMsmkPvvpWziLucyhzWBSbkY0LTwXxdbH9cdqO16q1QcsDe5QEMgjsYaDJAIkt0eoxUZ3s73gE+tEid3xm36v4OMuORLSkxLTvB5Otygd29nnVl+LBM0uBvRy6qBCJAA== 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=JmSHTUSuso9YCa5Ui3EzNOhbaSNlqgvv4rsl6UQX70I=; b=GzigMjvn0YWLJRgXVlc8XPe2tOXNSrw/W5ot8gce7K7tXSODgMnPQQ95kmOg0tylgoB2lVjDTqW1+BROEigCCoXcftYrg0u6q4XtIDF8VUE+520XvD8/kCMZvft3ynfYVbCYFAMIHk0djtqowtDuFxBeURV7xohANvDoa+PFYAkSVemfEwLfMuaakiQ5xQTD+NcBeMi6Xq8y4QxdhbeOJ9MWeWb8s3uZM5fWQ1t27li+hyAvEwc4iEkZVgTTnNS5dRPUtqO8cHVwlpyzVd/ukZ83THd3u1e3ksVNHQZqc8uTqH71b3FO6vlTo3D571yjYYk51cr3yQ35E7WX7L9TmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JmSHTUSuso9YCa5Ui3EzNOhbaSNlqgvv4rsl6UQX70I=; b=jgbHaRs+LRKNCy1+asLfmivUlkMcap50bSp8StbsRpQ1NDPIpruOsznDg8dXbmnvoA4fYf7dfcDbJZqmWt8ZervidqzieqiAeSoH+a1GK7jGYMcf1mxd82iR1Pa+TBnQIFghbUEp4oyMFXRufifWtGG6IigsHmOCz8RETtaDIX66VEXSYNnVwfMiqB51N1CGLt+HRdxhyPbrbdKZYPH/QPzo10VT85OqI085xsPVI4Yf4ewG4kbrYU0KZU7+dZsOVRnpj2p5YwFCAz3pLZR2LnWEWeh2hrskiRwh1W3UCO259vKvjUKjMTgGHcmsdySDDD0thn1CTrySBRdNUaD59g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB4PR10MB6309.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:383::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.25; Sun, 5 Nov 2023 09:51:41 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8496:a3a3:d7a8:b24d]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8496:a3a3:d7a8:b24d%4]) with mapi id 15.20.6954.027; Sun, 5 Nov 2023 09:51:41 +0000 Message-ID: Date: Sun, 5 Nov 2023 10:51:39 +0100 User-Agent: Mozilla Thunderbird From: Jan Kiszka Subject: [PATCH net v2] net: ti: icssg-prueth: Add missing icss_iep_put to error path Content-Language: en-US To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , MD Danish Anwar Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Lopes Ivo, Diogo Miguel (T CED IFD-PT)" , Nishanth Menon , "Su, Bao Cheng (RC-CN DF FA R&D)" X-ClientProxiedBy: FR3P281CA0202.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a5::6) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB4PR10MB6309:EE_ X-MS-Office365-Filtering-Correlation-Id: cc736d76-0f73-4703-017a-08dbdde4cfea X-LD-Processed: 38ae3bcd-9579-4fd4-adda-b42e1495d55a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YEdqnpSV6qqrxuRqivjdERVELbjhY1ydrZFfhg79TNnJ9aQhakRvuqu/F6ydE73JZ4Fbx3McX3jPV13uNQlULbxxS49bISteoTXcDvQHfMe2Qw9yS/m39kfvDn30PSgVWI2La1EkDqq30//joY8FV4HPri2unOvrTSFWQHfdmt3EVwlLspOFiOW99dmJKjZaFb4iMBQbmQSfcz/QM1HGuSzudbd7T/NKfFXXZPdSAyS9U/XmEjCfhGNYCOC8amh3WhqfjoB8IKutLBOg34BmijiTZmEXwIWqzKYGLdluux7HXuYmF1skLNOWxiLHdImJ2z3iLTUjesNszwk7A3F5y0PVbUO85/VRj7oKmuiCibb+2CFrHJ5PwQVH5TAaXly3afmz+4Iw42p776vmJN/5/dZwy7mY8R4cyd9Jm2kNH+Lsk+4djLPYEtAW7q6/IMSJqsT+250l4qbmU68aDrAmRMDzQVlWPWPmLc/5GlHRWHpSM5mxd6BhaoM2zSWm3F37lCVzgdzEAYUTG3A9mjeo/UWFd3Bb/NvVtNmIUSn+oDRhP1xbW9CkXU9LKY8MyRcwkUMSNQWdXqfOaKUaXNFF8/1ShWKB2yC1XQDDFoSeUEPHRK3ctJ4VvBkVReNKKdqCFTcrBQgMUygxMcfCz0GqwQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(376002)(366004)(136003)(346002)(230922051799003)(451199024)(1800799009)(64100799003)(186009)(66476007)(31696002)(31686004)(86362001)(316002)(2906002)(41300700001)(5660300002)(44832011)(8676002)(8936002)(4326008)(36756003)(66556008)(38100700002)(82960400001)(54906003)(66946007)(110136005)(26005)(107886003)(6512007)(2616005)(478600001)(6486002)(6506007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?65oHSdWAZ27YC2MRvNOzTaoYvX0l?= =?utf-8?q?6XAQS85ffc5ql/PMLghDNiiTMvS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uopEPiBHue7hgPlK?= =?utf-8?q?t4kX8vmJX3XIxVCMi5WCn+baWeWKWboT3cDCXdX+qK6FTVRzT6JQmLxt/gAZ98ENQ?= =?utf-8?q?3+YVHpzlx7Ive2kaEsBmMU7nKxxjnneDlT/EFkjatayTX88L4ehxs32s00f3D54KD?= =?utf-8?q?97wlq1AswH/+EOfZcU5xtlVNZ7ItvhpAm0w6hSV3JUF2ncUIA3ThH+DzF67zZrIZI?= =?utf-8?q?ndepD5fJ5Th+mITYWaI0Y1hLsgSIsb+n1A3OVKU6OoreUUizyFULKHzbY+OGrvymG?= =?utf-8?q?AOfU4eS4OYSM2IqgsfqFvkreeIgKC5MT6CIHLF6Wedm9lho0eCsGSq7PzgUN9iYCe?= =?utf-8?q?JMjw91fv9AgsRkSlRXJECB/jfDPjYApEVywFmvW+EORcTGMlM9mmQiPg8zx63u+zg?= =?utf-8?q?AWwlCTiCVQASehaD32ghN2YifJqJwSgEAgaQa77oJqe0UwZLXiydBFh3xcWmbbWdo?= =?utf-8?q?BoPaYhp7JMIOw/jzqd2o6ls9KsC9Bj+MkCPpq5U5ueoS/FvFQS28+NzEcnQgBnq29?= =?utf-8?q?JRYMLK6UbI1/7ygJzTBzglcio0l8i6RZTLjg6WcRyoohjaEVo4kWwFPXx9758iM5v?= =?utf-8?q?FRqHzfE0FEnR?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc736d76-0f73-4703-017a-08dbdde4cfea X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2023 09:51:41.4899 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: m0bRAKbQYn/6XmpA2C1Nk8/KP5SdnL/2S1debOUyrF1VM3kAiiTkNkAD/aQ+5dZ9ixNF4J+8+MC+bokeLQym1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR10MB6309 X-Patchwork-Delegate: kuba@kernel.org From: Jan Kiszka Analogously to prueth_remove. Fixes: 186734c15886 ("net: ti: icssg-prueth: add packet timestamping and ptp support") Fixes: 443a2367ba3c ("net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support") Signed-off-by: Jan Kiszka --- Changes in v2: - add proper tags This was lost from the TI SDK version while ripping out SR1.0 support - which we are currently restoring for upstream. drivers/net/ethernet/ti/icssg/icssg_prueth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/ti/icssg/icssg_prueth.c b/drivers/net/ethernet/ti/icssg/icssg_prueth.c index 6c4b64227ac8..d119b2bb8158 100644 --- a/drivers/net/ethernet/ti/icssg/icssg_prueth.c +++ b/drivers/net/ethernet/ti/icssg/icssg_prueth.c @@ -2206,6 +2206,9 @@ static int prueth_probe(struct platform_device *pdev) if (prueth->pdata.quirk_10m_link_issue) icss_iep_exit_fw(prueth->iep1); + icss_iep_put(prueth->iep1); + icss_iep_put(prueth->iep0); + free_pool: gen_pool_free(prueth->sram_pool, (unsigned long)prueth->msmcram.va, msmc_ram_size);