From patchwork Mon Jul 10 03:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 117577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4754363vqx; Sun, 9 Jul 2023 20:40:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0Rc2lbXUUS6By9bkJsKeaNURInHiG8XzgMn1DtaFCEcr09cG/NiMKaMqPyLqq/zeaHOLb X-Received: by 2002:a05:6a20:970a:b0:126:a80d:4960 with SMTP id hr10-20020a056a20970a00b00126a80d4960mr11178483pzc.30.1688960410754; Sun, 09 Jul 2023 20:40:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688960410; cv=pass; d=google.com; s=arc-20160816; b=qs/CD19d+mOtzuhX+bo+4l71M2ZtSxiCGwp0TiCfBaPY/+0YdQQ7vFu+gxMfT8Dxyt QsjoBfACUpMBZate6GwKNN2kKF7/4mpl+jvPgvNeZnjumv96I0xgTqEhQli7LTmSFQ3Q pNo2salbMuWfQKX1EmWcgO8fly2Hzh2tLIzr8hAXPQySdeHHXK6diukL7Tn4CMdi103q BmmYX8CwMFlK7kt87fKo82TLrnGBHz6hFVCflvLthKGljdJ76FsKL9GMJ+Wi6/PYNaQ/ mWEClLbiEr6nP1gBziMfavWS66odQ5vRWeBb5v9wkxznUQVsY/XW3ehIihapD76yLp/0 ETxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; fh=EAuY1iAgBnqWkMHTbH7OsssokNBIjMqpFBIJQvaMSfo=; b=LtjVnpU4RQq6GlwmPeN/xDHMOpHLawdhXgXUq//d2aUnMhj2OcaXgqrn9Yf3j1k5am PIkyY1NXlxoxedv3xEsnawMsfY4q6uQCeg64RS2uTUW+aMHWUDaxpGdeJdtEqjja6gvF AqwR79vcjhUKEmxSvUe5A679pqrJfjUul2NvQM1xIvbhXliuBfe/o4iCBCOICCFduAX5 n8gBGJdyuaefNzMWvLeWOEW7YFx/KYPXDfV4KQCIxBPt9f5iU43//glNXRNtzJ2bcfXd TuMFJOYGApVDyW1KwyP14h793bwUJiew5R/4PyX7OOcWj/hf/A0CdtFJGiSmRdiKKWD3 6TAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VgblIRpp; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq24-20020a056a000e1800b0068188beefedsi8177737pfb.88.2023.07.09.20.39.58; Sun, 09 Jul 2023 20:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VgblIRpp; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjGJD2b (ORCPT + 99 others); Sun, 9 Jul 2023 23:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjGJD16 (ORCPT ); Sun, 9 Jul 2023 23:27:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2072d.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F143919BD; Sun, 9 Jul 2023 20:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MGE5F6oSsCYoAZsW5Mxia5nDoVMkL8Upz1vBnP2lFQv6QoGlSqxYPpjC9Oi7rSNXzu6fdTQcMQBaAjKO/ba88+WttNUqYRC+7GLFTCio7K5UCV457LnSoGi1GUpEHYzDJEqE0S7H/DAF/y+CxBeb9MVR92Vos8NiydUaryPgBaDF6ti0CjxhXCZ+3Itf54g+O4hYwjUSwu6lWZxcGM1MXq5PGR9MBQDV6hbftTGJjjFrdpfXfLNWbH7w5VePTgiPduIwy6jpH7fVf1thuDuuQUB282Jqjp4nFdxa6TDQGjHtXUchIJ9XRp4N45/AVbNMZxz27ikktet4CSADieJqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; b=GwMCjgfXE5IMqT7VT6gpmqaRoo5oNK0jr1wWmKHBsiyLuNzeukPFgM/TvEcq8sVeOe33XyZWTYivaO3T3xtrMEvMUeVsEVEqWDHd/B00mW4kmtwx8533bSer7HGWZf+gCK19yVrr8HX5ll7oZ88/ujdLssSXvmFCnKxDXau32brQ7yudM2wFpAhbsgjMCpGRKZWFFhKp27QsuV340BPoZ45ei7tqJxSbD8q1Adc4IavtYW4SqVFoNwvj3UpHIl8xpjb89Dl/sFHNHmGSIIb7P3oxl38dPp5boPnFc1zm7/Dj/P7oRZPXM3N8zoK5h6+fzD0CUnttArVRcsdyImbgtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gK9FuGMKcBBbyuDk4sJW5vpeLpB47BAwKFQje1KuYEc=; b=VgblIRppIet+1bXdVbPWrxXzcE3smOU28Wnlhu6Y8ZoqnJEkPrG/Hmz/saTA5Nii0kshXU/Jio5MeE78HQZVL4MCbkowRJNYQSwhaQlskE8YtNSAO+XIdtChPDWdHMKUC8T2KClHQNx+g05hm7YmVl5HGsmiOJe0sAvLvvQMql93srYk8t93CRK8yPxmby14pq5hUK/6c9gik9T+E02JRLmnmE7I+jpdYmTP+e256vglevWQOlluIFL4DkH/0OCHgFnJNh/wYMghG3zzYG5J4aXnNeniFjX+3hgXP/6wIdEW5E0oa4owcMRxgNw8jQWq+OwcK8txvJGV2Yz+s9HfCw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6472.apcprd06.prod.outlook.com (2603:1096:400:47b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 03:24:39 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 03:24:39 +0000 From: Yangtao Li To: Thierry Reding , Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter Cc: Yangtao Li , Thierry Reding , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 13/19] drm/tegra: dpaux: Fix incorrect return value of platform_get_irq Date: Mon, 10 Jul 2023 11:23:49 +0800 Message-Id: <20230710032355.72914-13-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710032355.72914-1-frank.li@vivo.com> References: <20230710032355.72914-1-frank.li@vivo.com> X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6472:EE_ X-MS-Office365-Filtering-Correlation-Id: dbc6072d-1b4f-4173-4900-08db80f5319d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xHdabf4w8W1sAhciEG8ip8bya0k+LVscXQaQlH/V/PR+5R/xUZhdMfKjfiepr7Wx1uHw1611iBxOFhyYQE1peTxx1Krrt8Yq982cRod/KpnbVkP0Vw2+fX5tXVVL05jAxAXgKZpH2JrS55bpNKFRue1/GxUpHNKoYJBKxpOxmQyclTfcAF1u55vYr9R+5z4/bYpBHPHYTZiB1wh+KAcAI6py82OPIMzZmQenNcLmLE8IKf2T7FEgQMClB/jG0qRGwQ4J4utfAgG3FfKMRDEqUoh3Xv/c/Tq7ok3I1vj3eVgQsjXBvE2swkFToLSJoi2Iy/6e7/Q7Ed0MjnMoXGYUR1IAFMbD7pgueO9CPK9m5h+qfPbW8KTH9oQwjk21oMRqNQTHtTAE17qkxF34EHfwQ71cSs95QfApV97gnVlbclhC2JUXGCaQxupU0FNB6wqBUGAxjzMn0H7GvDK1uRT0y5g3NQXfqXPaN7UoKIaiZNaKiW5zlNa6PbdXvSPEotjdP2jXqGOMFWhHHRdo4l/dx8/qrjtKoNMM2HSZCZoxCSXPh5NPyODmGlGy2rMlEV5Fd0dgeu8lN4rGVsyWGpKnSRj0cCChIhqfcM3e0ZhS7mj1RqQl4Tp6PbIQxXQpd3nE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199021)(186003)(6506007)(26005)(1076003)(2616005)(6512007)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(54906003)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qKap0KcjueWj0OZ9xBDDiolsE0PiKFV7k4HXu2NiszOYcp2Jdd4rfl2trfSJRlpYClqaYtZvSFjtskAL8LpV70leGQjK9LEV+r/CaAX99qegkrEqkRuFgoQBHCmvM8rShs8BX+0oNHSxtwsnwUthQ235b8p3Jbq2U3y8QCEdtPAWsLEQeuczK5GK7VYYFPXdzs7b6PLhchn9+NMtyK8qB+jcBuXEedpBjPF3R9aEi1rFrfCPZeVwpqCSktMVc6wRYViJ3ya3eMor1zjY72EZSLwqfqoQhT2q/3gbhdRNNsItUYM89G+fbFlcMCFSzTyva2oZ6hu4raYLNrdqgMhx36A/1W9m/NuN6v+qkcbOhFI6LMKDsPRKJFbZ7YqOaUHAHvn1U0kktBtKCJuezBp3+Hh2NGuQXjpxX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3JTfz5IW/nkoKmnqK/lOF2pBErNzy7eOwJEdFujrTEBOdwJ4hVVpXuLuXUxZ3DjLSlv2lYLSZS9pSDUbwviv613V4fNxPVcWspu7oL/LSh X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbc6072d-1b4f-4173-4900-08db80f5319d X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 03:24:39.2916 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 75KM/uAo4k0vng/f8Z3ft+9v+nqCylhQ5IDCl4stZ2r6SXX/q5zmgxSsD2Wk3OHkPCfqcodLgOJ23B80CGO5og== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6472 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771003351616118886 X-GMAIL-MSGID: 1771003351616118886 When platform_get_irq fails, we should return dpaux->irq instead of -ENXIO. Fixes: 6b6b604215c6 ("drm/tegra: Add eDP support") Signed-off-by: Yangtao Li --- drivers/gpu/drm/tegra/dpaux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c index 4699def04190..f120897ce4b3 100644 --- a/drivers/gpu/drm/tegra/dpaux.c +++ b/drivers/gpu/drm/tegra/dpaux.c @@ -466,7 +466,7 @@ static int tegra_dpaux_probe(struct platform_device *pdev) dpaux->irq = platform_get_irq(pdev, 0); if (dpaux->irq < 0) - return -ENXIO; + return dpaux->irq; if (!pdev->dev.pm_domain) { dpaux->rst = devm_reset_control_get(&pdev->dev, "dpaux");