From patchwork Fri Aug 16 10:54:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13765909 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 7B95FC3DA4A for ; Fri, 16 Aug 2024 10:55:44 +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:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tYPp0NsTOxhLjR9Ww3ZqtUjI7/iF6gTBv/X0BXKx08s=; b=03k702V/ONSME8 Z1rvidiJmk/Bk8WODnCjqxQChapIVWzUABRgwwIMCbYA7SMfSbjtE++Te3xxdUcCYN9H6//4GnztO YtzC14Pns0Bp1ZJw9S6aoJ9s33KOyKCQ7n78N/seyM1vZgJGai074WIKRtnIdA+F8kuI7t193+Zmm JQVkLmiSaj2zVJ3QyTKF0QRjTASwAJzlDxL9dPOY/5OQ0skD0iFc5bNYfpWtupUgjWYRhP6Ks75et 4Tjg6Mh4Bn4SI1Pos91tM7zTh8M+jAZWAR2hXOSZoHc5BfTzg4kAN2hymaetmGtGB7BxWP89w3Jxr 1nM6gZohNpWGJKCojhoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seucF-0000000CeEZ-2XzH; Fri, 16 Aug 2024 10:55:31 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seubX-0000000Cdz1-22eQ for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 10:54:49 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-429da8b5feaso18481075e9.2 for ; Fri, 16 Aug 2024 03:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723805685; x=1724410485; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=tYPp0NsTOxhLjR9Ww3ZqtUjI7/iF6gTBv/X0BXKx08s=; b=kTNODtfDjOhYN6yWqdvobDSktxWM+3t7qeQouoEPCD4niNwLnBD9FI5uN9iPUUF/DW hFkBm6W96Amc3EvL0U0NbDvcw0vBrhsDhXAuoMPTU6zxLCac+Q68MKDiF6cjZlZjI2Rm NpQCLL0e+zSGbKJhJvSCjbGzV5KMBFPFPmjw8wGFkrZ75sO3LkvU6uY+9t+tFepEaEgd qfywgkmvIErp9iiG+aHreqVHxMmDHo5b7v7Ks6blBc15eHnYVMN7tUqTAdsgf9LTvKfY rSXvvovMkBbnlqpTFrzT4yXsj5RH5i4gLY7AfWYmeWwFEYrK1IMGlmPoiU7f/qJOBxqM 4JYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723805685; x=1724410485; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tYPp0NsTOxhLjR9Ww3ZqtUjI7/iF6gTBv/X0BXKx08s=; b=Iyln4jfxz84MyIzO7kc88mX5hCj71VPo01I6GBy3CVB74BQEYx+EuCH4Kz0aU1PX3u MqeK71Cb+ScA7Zl2H8U7QhWPrv5imr9+ZgpAe9c5dODCOsW8PN254JggAN6mWa1v2F8P Kpbgd4leurIo5a/ioO1PVo5srLnbxu1wF0gl8Xe1dA6fRcV8XjnNiffTFHt568zCxiho gqjx2tnuPNmsD8bnEXrKgMubVeLKW8C3s97QPoc7NiDh7Tpr6fskMBa8cFN5RYU7Jk5d p2nmJkAV2cUexL37xMcMS32yE9IBA06i1sxkjHOtT+bPNj7mf8erJwy2e3htVo+y/xiI /e8g== X-Forwarded-Encrypted: i=1; AJvYcCXA4cCfzZB910bPeWtO6bpbbOLJ9oMHAw8/nz3PvM1KVlPHT1qH6qs3yzUGWKt/Enb+1kTJToTRy6u3E/ppF/A/jx6AewwRsvQiAGW9lGeniXFXqdk= X-Gm-Message-State: AOJu0Yy1UXrLg1YYhUcGASHfF707nTP3G9/Je1f5ihTGrPtdcigOVU7I 6vcOZdMDypotCsJe1lPqZ1u07b1cFDUyth2ViahHUaekA+1w/ZnWP+1wGrhVTwI= X-Google-Smtp-Source: AGHT+IHHvawl5XEfEGL+I6Vq39YTQapEbBWFGCGvUkRJ46B0XFDy0y8IVU67kRwXPNSR2rjsEPylrA== X-Received: by 2002:a5d:5592:0:b0:368:4910:8f43 with SMTP id ffacd0b85a97d-3719431561emr1605829f8f.3.1723805684861; Fri, 16 Aug 2024 03:54:44 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ed7945cesm19461935e9.40.2024.08.16.03.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 03:54:44 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH v2 00/13] memory: simplify with scoped/cleanup.h for device nodes Date: Fri, 16 Aug 2024 12:54:24 +0200 Message-Id: <20240816-cleanup-h-of-node-put-memory-v2-0-9eed0ee16b78@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOAvv2YC/42NQQ6CMBBFr0Jm7Zi2SgVX3sOwqHQKk0BLWiAaw t2tnMDle/l5f4NEkSnBvdgg0sqJg8+gTgW0vfEdIdvMoIS6ikoqbAcyfpmwx+DQB0s4LTOONIb 4QWu1JfmqVS1vkBNTJMfvI/9sMvec5rw73lb5s3+GV4kCS6FLU7mLllY9BvYmhnOIHTT7vn8Bt jdD6skAAAA= To: Krzysztof Kozlowski , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Lukasz Luba , Alim Akhtar , Maxime Coquelin , Alexandre Torgue , Thierry Reding , Jonathan Hunter , Santosh Shilimkar Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, Krzysztof Kozlowski , Jonathan Cameron X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2028; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=2UwlDFsvx0FENZTR3WL94gVz3cLqUmxrINSyGxA/NxI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmvy/kBBEqhpXjMi8XcGTKE6afT4vE1o4FulDg7 ujMEz51mUOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZr8v5AAKCRDBN2bmhouD 13OgD/9Lao5pfe/Gv4e/sGD9rnGL0Qq9TO3361aYYrL3qW/oHUal1cCVeioK8fpPY1cjlnPkrJP wPr86G2hVX9eXMeCqkVR/btO/AMLqD1UyoZm96Chr/n4wDstwJSYlpOiMBugsFQS9wjpQmyRtRG JhJCc5TZMVUbkDQIHdnf63dXnACBKmZbQ0vf05z37T4TUbS2fhVizHcfdVCPvmpi81KqfpZ+Brk 0pjnfQP3/AwPwCJvAnCK+Ww8w7RhqwblPscpq4FkzILrIAsmQpkWQe9XaVbXfoIICXo2HqU6FvB 8vgDjAhIfJGX2aSLx2V//vwwUr46mxv52jfT9/wp3WA8ROHttQXJpuMkJZ0cmvvwytm6omt/wAQ iqqMA4+fBetSJlZCmQo03dNlCFpOZzHNQ0io/S8I0ATFF7UsZfmquheffuxHVmrq2fzUHYU/U94 i55XKETUwW84kNWHIlVWiRzSUuO1Ixve62gmEGn8R2TESeXG+/gsIzijXhl3+fyEMLm+Qlo9zlA xMxPsl/vBLEZD3TBbi87+gtmwS+zujDEuOKeQk3iKabX3qi0NZIVHNQaup7oRNiyp07B7VbkHxm 8lJsfKFWWVvzZwV0f91GuFjn+dsdhK7eHcYDFUlVQDFL5dNhgRo51OKT4/HvzmBPYgvPb6ny3m4 LUM1YTR6ADFfZAA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_035447_600093_04C0AEE5 X-CRM114-Status: UNSURE ( 8.28 ) 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 Changes in v2: - Add tags - Wrap lines before of_parse_phandle() (Jonathan) - Few new patches (see individual changelogs) - Link to v1: https://lore.kernel.org/r/20240812-cleanup-h-of-node-put-memory-v1-0-5065a8f361d2@linaro.org Make code a bit simpler and smaller by using cleanup.h when handling device nodes. Best regards, Krzysztof --- Krzysztof Kozlowski (13): memory: atmel-ebi: use scoped device node handling to simplify error paths memory: atmel-ebi: simplify with scoped for each OF child loop memory: samsung: exynos5422-dmc: simplify dmc->dev usage memory: samsung: exynos5422-dmc: use scoped device node handling to simplify error paths memory: stm32-fmc2-ebi: simplify with scoped for each OF child loop memory: stm32-fmc2-ebi: simplify with dev_err_probe() memory: tegra-mc: simplify with scoped for each OF child loop memory: tegra124-emc: simplify with scoped for each OF child loop memory: tegra20-emc: simplify with scoped for each OF child loop memory: tegra30-emc: simplify with scoped for each OF child loop memory: ti-aemif: simplify with dev_err_probe() memory: ti-aemif: simplify with devm_clk_get_enabled() memory: ti-aemif: simplify with scoped for each OF child loop drivers/memory/atmel-ebi.c | 35 +++++-------- drivers/memory/samsung/exynos5422-dmc.c | 90 +++++++++++++++------------------ drivers/memory/stm32-fmc2-ebi.c | 23 +++------ drivers/memory/tegra/mc.c | 11 ++-- drivers/memory/tegra/tegra124-emc.c | 7 +-- drivers/memory/tegra/tegra20-emc.c | 7 +-- drivers/memory/tegra/tegra30-emc.c | 7 +-- drivers/memory/ti-aemif.c | 48 +++++------------- 8 files changed, 80 insertions(+), 148 deletions(-) --- base-commit: cf4d89333014d387065aa296160aaec5cec04cc5 change-id: 20240812-cleanup-h-of-node-put-memory-dd6de1b92917 Best regards,