From patchwork Mon Aug 26 10:07:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13777592 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 A922DC5321E for ; Mon, 26 Aug 2024 10:10:22 +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=+HjftXAU3xKMpzR2JP/aMX2y07jgOYNP9sRw85N0o18=; b=0Bn1ZQvnH+azbc 03yywWCRyfgh0NnRGo6mBayAlRE8rQeSNtFdSf3tdcN7UMGsYnEl8fAA14qc1md75EI/R/Ro3Y5Ln wSYil0nCFqK8Jc2KUaL/3kHdLcEmIC1V4ur4bydXAEIbV3HPAhfoTsH8n8aFOTybeIdhDtb0p0t5g lExv3uPg3xNhuapM+51YTu+mRHVn9UHeUXuyF7BJ/KngGlnVv+g4UBFrPgiLsze+iZVdMnMMYTivM uFlDhS7P1QqUWKp84Q4YUIIJwa3Esj+4DQOKdfOgs7qI+kVGVY/vEXxz4T23dphDS5CAJiC+DzOA0 aSdc+hG7vbPT0I/YTa/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siWft-00000006rVG-0dE6; Mon, 26 Aug 2024 10:10:13 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siWdR-00000006qee-3ZdX for linux-arm-kernel@bombadil.infradead.org; Mon, 26 Aug 2024 10:07:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=+HjftXAU3xKMpzR2JP/aMX2y07jgOYNP9sRw85N0o18=; b=S5bcNE9GObsQiRvtKAAjV8r0VI lMHb8CbW21YPhQzLY0OOWi3oAj3qIdvVQgE2Fq3Jy29qBE9Kca+2Fg4YetH2CtrkvHCT2xrwnTvLD tEaZUsvStRLlnMYotJg4Qn39nHe0I75NyDSnlTwzle5PC4J3hGMkFnhhIo3vkxfOALkwwG8aRtwVz hVNzbZ+XF+YequV8SUsJl3yCftvP0stYlq4Dox81bp0JidxwBgp6W3vhhGd3fzFNlLzyafYiYWB4s gewR+ji3klRyC3C2x+/OKJu3NsKXWWy0TRtW8700ZCj/Tm7HsM7QYSQk9fsQSKV8u9eSX2SQYaTSR D3WDWq2g==; Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siWdO-0000000Ad6H-0onk for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 10:07:40 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-368633ca4ffso571072f8f.0 for ; Mon, 26 Aug 2024 03:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724666853; x=1725271653; 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=+HjftXAU3xKMpzR2JP/aMX2y07jgOYNP9sRw85N0o18=; b=JmSTnieJkMyxUvABiJvn/30mZFcTPNTqBhnrsVXgpx02AVfsu8gxdzciv6QNgjxbPF UnmO1WsTIJhzmknA5yriVXw6rHbMyY+YIFR56IeLoGef9Wg/zTKCibS3K3nVOJImx40d RvAoXDA8HvXXcT1Fe0zkN+Qap/4L1hXbqk9v1+WZIXiPJIealc9hFlN3DHOEuF1RDwCL +dz6IH/Z0loAs8H3xUlPtI3eWLid8fTGsOeIjrI9p4+368ijKzPoplbHBZ8MR2hiK52W CIOrfuj16CcOUQyzHwidYlgjCnibUmanea3jdtB8i2FVMfr90ECQCKG2L0aekRErQJUW OthQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724666853; x=1725271653; 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=+HjftXAU3xKMpzR2JP/aMX2y07jgOYNP9sRw85N0o18=; b=QcIFR3BAxSWZM4B0DeuQDW59cyBV1sVcWs5CS3BGoVDNIJybTi/bRlSYmRE7Wp4UwY Stw65VScCip6/O6MFP/RhD+CZNOhxYgPU8l3YRaFdgbNnogTvCASckeHfIVIurgKhFVr jc3APuuzn9e0P0uPa5Pqk4hFc7/NZnXjlG86rbfKnjgXmiYFM0QzDRoO/+ho/LWoOoYy 0rMge/H+8nxcFjfC9sGMxV/rfl4bYIBoKK8VqswRIYdULZEXl15HUU+GytllzuS3UXt+ qk4hkCvXOWEQ8df98ufVKknQ/Nfo54LPH7FA4xRJeaKIvGL09Kj67MK3YzPEjD9rpW+2 vuNA== X-Forwarded-Encrypted: i=1; AJvYcCVp1PERIt7wb7ZQNPt1SYCDryy55t0yup6H24IoA5yhn20p2iBF0SxiRs8e+6JKveehTmT/6lPqPozoBxyjcgcj@lists.infradead.org X-Gm-Message-State: AOJu0YzH3PzOI2KSOfJBXSpAHuSHSYB2DvXcQP3Xyk9zHYXD7wPAtq06 PHHYktHsTXdHiRWDK0/GGk17NTCt1k4iwqXKc+RB2E4jGTbevDM940wSsprcWqOSpbrPgHekTD0 M X-Google-Smtp-Source: AGHT+IFCD5GPA1+BkzRXcgnVVTn8nZixGGKVQtfkU6p7k64Y3GOsR+HExdueg7UHKjrmdDfxphRs4w== X-Received: by 2002:a5d:59a9:0:b0:371:8d07:f84b with SMTP id ffacd0b85a97d-3731191519cmr4431159f8f.7.1724666852669; Mon, 26 Aug 2024 03:07:32 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37308110009sm10324821f8f.18.2024.08.26.03.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 03:07:32 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH 00/11] phy: simplify with cleanup.h and few other ideas Date: Mon, 26 Aug 2024 12:07:16 +0200 Message-Id: <20240826-phy-of-node-scope-v1-0-5b4d82582644@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANRTzGYC/x3MQQqAIBBA0avIrBsYTSm6SrSInGo2KgpRSHdPW r7F/xUKZ+ECk6qQ+ZIiMTToTsF2ruFgFN8Mhoyl0ThM54NxxxA9Y9liYiTn2JPt9WB7aF3KvMv 9P+flfT/ZtsNTYwAAAA== To: Vinod Koul , Kishon Vijay Abraham I , Ray Jui , Scott Branden , Broadcom internal kernel review list , Chunfeng Yun , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1853; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=flmAEj5Nd9G8wrUjTaGvwvFK+32RV5njH6u856Suhok=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmzFPVkZ2FsKym2PSIv1cjVB9boTWCPLW6iOlIN /9pOIHBeGeJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZsxT1QAKCRDBN2bmhouD 1xLqD/9/qGmAF8uPKhx2wWo3kIzy3zrrimGskzxVQsS1cNXBQRhKKrAI6JAENVXRunpYd01lng/ v0Hvcze6XwNg2IOTK4bjA0n0AF1KvOzFzaPNE3cS+W+t1QUPEz0nzSRzXryV6tYTBb2Z4UCzBDS pUC/9jLhQJf1X8giqkNktJNUJ24cOzG4DyUoe4Qvki6ISGMXI2zEMoOOXTOunDcMz9fLB9PBcow q94N2lgYb4EcM/KtB5EVs8pFdB7TRIfd14GRRAPqSFBJ0Po6Ym+nT92uxrsWIEj0Nt2Ag8ZwOk6 WpYyQDmrDFhwdQt4TVhVrcm6kHThBEMrS7+1VdulIBcUvpw/o40qvqFIWlxvyntlcqaGtAMQu/D HAO5edJzkHxYXGOcvnDdUFM54tcxqe1EbgWAx61OLgwIrYm/wYoTNHC42CMvduAvA1bNNvHLzSd PWb0C6qh18GesykeVDY1LSwjkYBNHFRLBvgaTUEq4PPdVIqtUU58E4vR3qAc8cgQEtAGJje04nA llG/H/5qkeIe3hLgrmO7ipSS4pfWIRpPjj93sFe7Sdelh1e8oYwZMm1FwRDmAb8d/T6qa5Iklyo QrX76hLjS4tmqrzTHn3WDz+1sUThCLwxfL0K8MoTqIPYsjEMkvYuGKo9rhgnK9AVc4sWYae1LIY EIYW82BvNvhusHg== 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-20240826_110738_591595_4C105C0F X-CRM114-Status: UNSURE ( 7.05 ) 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 Make code simpler with scoped/cleanup.h/dev_err_probe. Best regards, Krzysztof --- Krzysztof Kozlowski (11): phy: broadcom: bcm-cygnus-pcie: Simplify with scoped for each OF child loop phy: broadcom: brcm-sata: Simplify with scoped for each OF child loop phy: cadence: sierra: Simplify with scoped for each OF child loop phy: hisilicon: usb2: Simplify with scoped for each OF child loop phy: mediatek: tphy: Simplify with scoped for each OF child loop phy: mediatek: xsphy: Simplify with scoped for each OF child loop phy: qcom: qmp-pcie-msm8996: Simplify with scoped for each OF child loop phy: ti: am654-serdes: Use scoped device node handling to simplify error paths phy: ti: gmii-sel: Simplify with dev_err_probe() phy: ti: j721e-wiz: Drop OF node reference earlier for simpler code phy: ti: j721e-wiz: Simplify with scoped for each OF child loop drivers/phy/broadcom/phy-bcm-cygnus-pcie.c | 20 +++------- drivers/phy/broadcom/phy-brcm-sata.c | 21 ++++------ drivers/phy/cadence/phy-cadence-sierra.c | 7 +--- drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 12 ++---- drivers/phy/mediatek/phy-mtk-tphy.c | 30 ++++++-------- drivers/phy/mediatek/phy-mtk-xsphy.c | 27 +++++-------- drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 11 ++---- drivers/phy/ti/phy-am654-serdes.c | 50 ++++++++---------------- drivers/phy/ti/phy-gmii-sel.c | 16 +++----- drivers/phy/ti/phy-j721e-wiz.c | 12 ++---- 10 files changed, 68 insertions(+), 138 deletions(-) --- base-commit: 834e84894a9d34ecc195d5db5386912bde3eefd7 change-id: 20240825-phy-of-node-scope-055ed0431743 Best regards,