From patchwork Wed Aug 14 10:35:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13763302 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 79192C52D7B for ; Wed, 14 Aug 2024 10:36:51 +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=CIfn1yXxmrN46mLAefxPsa6hzoHxpKs5WpPt2Hr+8b8=; b=tzqvYPVO3mcJ7r t4+EQbLzV7Quayo1xsmHH5CdfgivPPMn/tyog/ifhFmiNC7Jtw1f7jX5PV2b7lk2LSou0lw+crzCv Tw6V+aAelRwYbxr0KtwUiez4KCWKJv03qSIutmVeH0zCyxZykWM2rAUqRD6BZS7GePmHqj7NJF9kv 3IvQfKUOAOlShV4g7Tvsak1XCieMeGaCI2r72wF58w9iX7KJUze2gt0qrn0j/fbatnRWRQ7ijhAcL /Q361Dk9eEiVNcinWBK5QAR55cUxNJAq+K5B17uAjYQ+tWgXIBvkG+ZktfWxwKsfulybT2F7LZWxu BR1PkLw2LK+MsRJ8FrRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seBMp-00000006d0L-2w1a; Wed, 14 Aug 2024 10:36:35 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seBMD-00000006cpw-0Iau for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 10:35:58 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-428fb103724so3984795e9.1 for ; Wed, 14 Aug 2024 03:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723631755; x=1724236555; 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=CIfn1yXxmrN46mLAefxPsa6hzoHxpKs5WpPt2Hr+8b8=; b=l3ou4PF6e+Vq0wMIGDPoc7pyPyLEG/5NnkjR0c4ksmtq5zW8xcytVDhfDhjxHYdRop 1Si1NgzSW4pRmY5enFC1lBFqQDIu/ZVrkJVgl0ny6H4SZSTGQDIThlqn43MD9iLBzABR 0iVww5CwAAqDBif4yqBWiGAXcdpRBzn0kfOVaTb9xG3BPoUY7riG7GYWI5bit+gfY2u3 10LIe9TVKqB7dlsASibq1dYnJ8Igbm8QKjzMCHD8HsojiwPLisrQisdKDsvoiRx/Mnze V6APTsQDNUhvw142LuyeUTYo7mHqk4qrRVby4op8Ea/ejFAeA1HNftfKD4vbyO/yrEEg zupg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723631755; x=1724236555; 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=CIfn1yXxmrN46mLAefxPsa6hzoHxpKs5WpPt2Hr+8b8=; b=djpXVC5njNGNtAH+RzjAROyeoBFq3F+4xLOEmOCeOAIPzNDmc0wkXfNsfiX0clks9v 3Wl90AnK66FiSefk0y+l6bopNEo5+3GVweb81FEJC/R62x8rdRkEC0AKuYq5sOpt3dhk hFdc/132eTEhps7bC4JOIyJ2gcFQqJsmhPNLzbYSZ8Yi5cQcQyu1OQ6ZwEKJLUK0P4j+ p2wfX6f9GuRSo8ZSWn3393tzVwomup939DhOK54MXjZFQQLaGqHZHSKbRmLmKgOa3h62 LqUqf+AtblbeSXWl/5pfU58G82VFF7fWak6oKCukLkzWh0quCQpD/2PBIhPn8oMv5zkw f13A== X-Gm-Message-State: AOJu0Yy1Q5XXqK9+gIeuFVjY5CwqZP0Q1Y90tgNTeEsX9yc6Z3XNkCLG r3wV3g5tg/HmBMudYpFoBx3ZZK1NAtgd6os++34Le2O+6/dHkel3FTKDOVSanw8= X-Google-Smtp-Source: AGHT+IFySYJCbfhEPkwCk8tbPpG+Q/vI8wWAns+br1MLGrpp6gsbqkztTS2yy1odzpfjzuGCQr1aDg== X-Received: by 2002:a05:600c:4ec8:b0:428:9a1:f226 with SMTP id 5b1f17b1804b1-429d625a61amr41770265e9.1.1723631755222; Wed, 14 Aug 2024 03:35:55 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429ded3dd4dsm15501835e9.29.2024.08.14.03.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 03:35:54 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 00/11] usb: dwc3: various cleanups Date: Wed, 14 Aug 2024 12:35:36 +0200 Message-Id: <20240814-b4-cleanup-h-of-node-put-usb-v1-0-95481b9682bc@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHiIvGYC/x3MQQqDMBAF0KvIrPtBTcC2V5EuYjKpAyUJiRFBv Luhy7d5JxXOwoXe3UmZdykSQ8Pw6MiuJnwZ4ppp7EfdPweNRcP+2ISasCJ6hOgYqW6oZcFLeeO 8nSanFLUiZfZy/Pv5c103BpHSf24AAAA= To: Patrice Chotard , Thinh Nguyen , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Michal Simek Cc: linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1554; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=uYJNJ/Lq7xLbdSs3WCTfozAzfV0PWPsoOHzzbIoIraY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmvIh7j2wXb8IRSjayFQLu9kQ0RjqW1dpsXav5p jogbyksGwaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZryIewAKCRDBN2bmhouD 1z4JD/0ZLzy3oMfUHF+i0Jrf/I9J/ggzgTBbZIDeBh1fMIHwXI4UV3f4ZzFi4+MAeq52bwcKi/Q 4ZWjuR2Drm0x2yj1lNXUZSrUA8muBeTX0u7g3TCJolxsUXZ4jhC6zo+Ss2xueXo8LUfBH6f+1Ao NsP370WTlUa6fkWu02lC7JKBkB2VaCEvCwJQjVP6HRCh0lH754h3pNL74PjjsI5BFihWRyBqB6d xMQUW0oNEdGfUW65/cdsR5wEzZpt+DA1bSIV+a2gkjYpsHbkNd6Knf2KGb0SfoKSjWatb3UHVFN hWUzTk3vk+Z+rRKEhifVho8skSOgm/0DdWjoCxwFydVQO+jwNsr/7Q7ze/cElZrzFi3MKf3gbIV 5A5vJaNmUSMsKfdKUIV3rCAVXRNiSCRl8gzqNChQYNjDUnaP2Uiy7Bxon7TrJt2JgRjjhWUbu8q smr11srqf1lzIC+YFOr3q4H1lQdliToGwFCCx5SnhkYcN4MhyOC4Ks/Kqn/LvNYvvHQ2tpqs2iF crEZHvh79p0ROlfgzNYFuQuuwG+q7VBz8rJxlaz0dzOru5Hoza8zCcbI3LjqORtCq6DyWq9WhJR pLJHkoVqFyJmyqZtke+/BYT/wPyombZcEt/ulivdPeiB0eJIqMB7YEZpY/g9R61eiMqhNwQGfYi b+SwC+Apdc39TUg== 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-20240814_033557_146852_9509A3E2 X-CRM114-Status: UNSURE ( 7.43 ) 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 Hi, The first ST patch depends on my fix: https://lore.kernel.org/all/20240814093957.37940-2-krzysztof.kozlowski@linaro.org/ Series makes some code simplifications and cleanups. Best regards, Krzysztof --- Krzysztof Kozlowski (11): usb: dwc3: st: use scoped device node handling to simplify error paths usb: dwc3: st: simplify with dev_err_probe usb: dwc3: st: simplify pdev->dev usage usb: dwc3: imx8mp: simplify with devm_clk_get_enabled usb: dwc3: imx8mp: simplify with dev_err_probe usb: dwc3: imx8mp: use scoped device node handling to simplify error paths usb: dwc3: qcom: use scoped device node handling to simplify error paths usb: dwc3: qcom: simplify with devm_platform_ioremap_resource usb: dwc3: rtk: use scoped device node handling to simplify error paths usb: dwc3: rtk: return directly and simplify with devm_platform_ioremap_resource usb: dwc3: xilinx: simplify with dev_err_probe drivers/usb/dwc3/dwc3-imx8mp.c | 66 ++++++++++++------------------------------ drivers/usb/dwc3/dwc3-qcom.c | 16 ++++------ drivers/usb/dwc3/dwc3-rtk.c | 52 ++++++++++----------------------- drivers/usb/dwc3/dwc3-st.c | 38 +++++++++++------------- drivers/usb/dwc3/dwc3-xilinx.c | 7 ++--- 5 files changed, 58 insertions(+), 121 deletions(-) --- base-commit: 64b429eaf21be888cc83e9013e25897d5fb03a75 change-id: 20240814-b4-cleanup-h-of-node-put-usb-93fadfc77d33 Best regards,