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: 13763274 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BDCF1AD9E4 for ; Wed, 14 Aug 2024 10:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723631759; cv=none; b=ITG+RC3aY9QxznbvtKeE53y+ihCYkQX1xIc6RrOIa6mSnC1G3llND6UBHMWFW7zjWhOAcwYvRX6ObKLoc7eq4wRPd2+bPraMtnYxFF/Hc0AZaMLuFxbJ6nLBoJQyQhzGWpC/J9flmlQQGFS/aw6dr7EMq8OJ7vGGhet3Zr3dRbk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723631759; c=relaxed/simple; bh=uYJNJ/Lq7xLbdSs3WCTfozAzfV0PWPsoOHzzbIoIraY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=S+gJfk4tdNoV5l7MAUsqFzMUnQUk50frwDZp1KjA2pFuJDeaToMBKQEOlNwGkrXW+Tzb66jIbm3AinVVgCgcjTUhZbPUevjBByvdrwBNCDDZQdQY5c8LpqeZWiWc/Z/gqorg8KR9Oo7+nA79/Rox5Lr0DHEg/ZQp6mobE8uk524= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PHvAlQCJ; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PHvAlQCJ" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-428fb103724so3984855e9.1 for ; Wed, 14 Aug 2024 03:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723631755; x=1724236555; darn=vger.kernel.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=PHvAlQCJfyvbOC2gRuKQnj572AhGTw5ZQxiQFR9M46P1b7txLexOlwvSIr8KqSMHUh +Lkt2mdcPodgVqdLnDuKorrf63Nseu7wnC3KlzTEr4xiFfCOs+Mf3TcMM4QXUDn71HDq RV5xHjhwt9W5BpW+ygmsKN7RrCJZ5bWggMfEko+62GyRPnlL9QZmfDs6IOHg62jIf69W drLNVIiXdpGt6ES8L7SuCvzFA7Gt57v6Hhl0C7g+UN6BWXkMOvSYqgmnsd5UMupfAlr1 rIwgKtDHfc3u37so6D799ZPkjYjiP9g7nxmLX4zqFtedhIRL+bYST0Ezwjz7HBYiVhZ8 BasA== 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=FctOqPanZWrQu9HOuxLrgArxNR9yYk0JBudfNs9WHy35KbHhVwuldfstXEtNsgDlhm qmCntoPu2KIc7GS+BfCR/vyWAzBPcD4v+giNHYF5Q5QB7BgTX9Wk9eUh7xUxuivHUzj7 U+7h7E5DzysgenXffGWMuuStcp9P1hi4eRN65eqyY8V8qgN4tGD3jo/duQwdkqVqf0Ao FWZ+s/4E9sCiZLwrYXdcxciC/b16EIOumcgqYqtbLuVSnlF1sEAdxcVzsGjsKoC5VdZ2 1oAHWJKmSWixB6k8I+LjAXfOZtXUdrAXo4OevwasvkibqMGaSBt9UbXET5/vustYRv4R brZA== X-Forwarded-Encrypted: i=1; AJvYcCV0JUzxYYjRK3wTm668QN1jxOukozT3+I3TLsoEHgpq62MvfN4XXocg7khEgnSl7elsIJyVU5VMTmdRolXk50y4cCh8cTMqsUDmbAcGjA== X-Gm-Message-State: AOJu0YwIMxdjvQHBfu3RlF9NAyVIhSP0rfbYJEudZ1iuNZvCl903eDvk KAKsot1nfOA1hbAt8Bl1cxTh9czs6f/Nfew/geaT3UoS2szO6HeJXzwbLIXAmORnW7U2zAcQOhf P 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> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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,