From patchwork Wed Jul 3 06:55:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kousik Sanagavarapu X-Patchwork-Id: 13721466 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F1CAC2BD09 for ; Wed, 3 Jul 2024 06:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=bQSIvRZB4ThXT5i8fNb92L+40n3G/83l+7oX5ck0BKg=; b=fzgkpFsm7Q37NPxm0HkQykKWkk 28C5dudD9wVk8yZC4CvkoEAlSFN7Ci19i4WE1Dj9B3oryMZWYJD4FqCi+AxiNUNRxoV/mhXfo6dxV Mvn1ASra5OsrPuYqf4rS7laskEQRV2eox/3Ce2m5sDewpVFENpWlPUZ8XxDLMT7+zgn80SaVNxqp3 xEpuOwHMp538Th7lUS2RJjSdOolcaOEyb+NTkKS5g3SOswBQKm5YzbccFHsDKuLR6FuxgO1KSZn/Y xOcgQn4+zRZWbAF8YibOwxEgbA068idIECwsfjcudSaYaAfZj24soz7yeI5PqCfsaRtPtoYrEbKCS 1jKX68uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOtwY-00000009GZW-1Aht; Wed, 03 Jul 2024 06:58:18 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOtwL-00000009GWs-3n3R for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 06:58:07 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5b9776123a3so2091237eaf.0 for ; Tue, 02 Jul 2024 23:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719989884; x=1720594684; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bQSIvRZB4ThXT5i8fNb92L+40n3G/83l+7oX5ck0BKg=; b=EAUcv4Gt25RtjmEi8oyiUkUSkiw4p2B/0cmHkNp5ZxqZg9KWtkMM1YplrSdt634KUu sxupXPDs2b3oGReV3LejaVkQ33dXTSZ2Ibz6SAVsRryShRsdW0Tck6cejPEGleq91+i1 DxazUyvB4VSEfd6TXkjeB/Uz9Z3kdE0Sgt8Zx9g5oJpGt9DaptCCAi8oR1ZHZh0O2k2g OCG3cZ0Gmb2xOlZJJwgOWrQKLkyUIiB5cwhPA2B9aVlNkdD/B0JlRE0my6hKVDc9+i6w VVwOQ/AJjoySwCBVGrFFLdRNJr2xrMrQuILlN1lf/qpu39sLkc+X0sUsjRH1dzENVueN HE2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719989884; x=1720594684; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bQSIvRZB4ThXT5i8fNb92L+40n3G/83l+7oX5ck0BKg=; b=tPmX6oTlY9CGWrT48LSHGl2HmfL0znHDhqEBY+eKWL9mw/Q5j6QdfnkCyOxqSMxHhQ Gd6RRidTRU8wyr11GeJ7b6Hk7eyRAgPtWw3rcoSAawryeSD1JtibGWZOT2JwCZCyhA6r LIbvcJHk3ULsI98DOE0kArYAwHUiNfUup7EAKvSoVwsLeIAIavOQFpVcKU8Zu6tnyJrc ptl/tvYodJElnocv8FfsEzODThSYugAqOBGPqld3VO+s/vTYl3jUugwjV62/aW2yvguv XKRzJZM0H3gt4WPmWPX01k6wjUWHeBzR49LDG8MzGPNF+wPSd2Sa8Shtp1TAt9rXI7I7 WezQ== X-Forwarded-Encrypted: i=1; AJvYcCWf33nBm3Da9ugYziKxIwB1bNhi72WJHhhLUv35Itzc43LeXE+Wa6muuYvhS1XPzZCujB/P9citbkEFXqNOEylhCgLB2zYyKdadS2dppBlKRTvWF4U= X-Gm-Message-State: AOJu0YzgagMWd+HPQFprI12yuxUqLIM4q4/gTO/GnLc0v8ozXMTZHdvE MEA0Hi5OZAZEKMx2BnmKWcFxVLGYNuh8dZayMDJUO63LEUiZPZvp X-Google-Smtp-Source: AGHT+IFxXXOs08IU3yvr3Dw27u84engVs9yE22hON8vp/HhkHuM1WNJTyKgg6TJgbQSNuhxiAoUubA== X-Received: by 2002:a05:6358:7e49:b0:1a4:ab44:7632 with SMTP id e5c5f4694b2df-1a6acbd7376mr950041655d.5.1719989884191; Tue, 02 Jul 2024 23:58:04 -0700 (PDT) Received: from kousik.local ([2405:201:c006:312d:258c:c06c:76e7:dba9]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3e818asm9973921a91.51.2024.07.02.23.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 23:58:03 -0700 (PDT) From: Kousik Sanagavarapu To: Julia Lawall , Nishanth Menon , Jonathan Cameron , Santosh Shilimkar , Nathan Chancellor Cc: Shuah Khan , Javier Carrasco , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kousik Sanagavarapu Subject: [PATCH v2 0/3] Do device node auto cleanup in drivers/soc/ti/ Date: Wed, 3 Jul 2024 12:25:25 +0530 Message-ID: <20240703065710.13786-1-five231003@gmail.com> X-Mailer: git-send-email 2.45.2.561.g66ac6e4bcd MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_235805_994322_5A6CBE31 X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Do "struct device_node" auto cleanup in soc/ti/. This patch series takes care of all the cases where this is possible. v1: https://lore.kernel.org/linux-arm-kernel/20240510071432.62913-1-five231003@gmail.com/ Changes since v1: - Refactor code so that it the scope of the pointers touched is reduced, making the code look more clean. - The above also the side-effect of fixing the errors that clang emitted (but my local version of gcc didn't) for PATCH 2/3 during v1. Sorry for sending the v2 so late. I was busy with my semester exams. Kousik Sanagavarapu (3): soc: ti: pruss: do device_node auto cleanup soc: ti: knav_qmss_queue: do device_node auto cleanup soc: ti: pm33xx: do device_node auto cleanup drivers/soc/ti/knav_qmss_queue.c | 85 +++++++++------- drivers/soc/ti/pm33xx.c | 20 ++-- drivers/soc/ti/pruss.c | 168 ++++++++++++++----------------- 3 files changed, 131 insertions(+), 142 deletions(-)