Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34812137rwd; Sun, 9 Jul 2023 21:11:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5H99WWas00xHhuj58rE+fLp6/mTibiOWKAqvc7raum7ocL7g8ariblv00A4RAVPRF4+wi X-Received: by 2002:aa7:d951:0:b0:51e:342c:25e0 with SMTP id l17-20020aa7d951000000b0051e342c25e0mr8827364eds.41.1688962262107; Sun, 09 Jul 2023 21:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688962262; cv=pass; d=google.com; s=arc-20160816; b=d7QGsPsIj7olQzR2VSr6q5FP5DBHT4uUn7BBx84m3rmzjQIsK8/R8YwrMjCxdtOrnh sE/B7oMp34+d0rr+fQ/Rr3yMjFRMj5DIhL2DppQZT6cmOwIzYRxiaGrEk7dJheBajk5L m8tYJ1MpQqUnRKgUadhnbp09zh1RTm4KOc1813Q/humqpKf7u6UwWg4SfazCcm3JTXcu EhbafUwt14pB8zRA9/YRIoCSfnpVOQ/HAv2oLNR+lwS8Dnj9+MMssSQ3uULYAPEYsFb1 A4QN2WaqNAFY5YIZEyQ+LMEWaEf4eDzuTOHBBNg8q5+203zl2Usmmi76KYzuFlTrQwZv +Tag== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a05640214d200b0051d9df28f17si7520260edx.501.2023.07.09.21.10.38; Sun, 09 Jul 2023 21:11:02 -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 S230386AbjGJD2a (ORCPT + 99 others); Sun, 9 Jul 2023 23:28:30 -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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?qKap0KcjueWj0OZ9xBDDiolsE0PiKFV7k4HXu2NiszOYcp2Jdd4rfl2trfSJ?= =?us-ascii?Q?RlpYClqaYtZvSFjtskAL8LpV70leGQjK9LEV+r/CaAX99qegkrEqkRuFgoQB?= =?us-ascii?Q?HCmvM8rShs8BX+0oNHSxtwsnwUthQ235b8p3Jbq2U3y8QCEdtPAWsLEQeucz?= =?us-ascii?Q?K5GK7VYYFPXdzs7b6PLhchn9+NMtyK8qB+jcBuXEedpBjPF3R9aEi1rFrfCP?= =?us-ascii?Q?ZeVwpqCSktMVc6wRYViJ3ya3eMor1zjY72EZSLwqfqoQhT2q/3gbhdRNNsIt?= =?us-ascii?Q?UYM89G+fbFlcMCFSzTyva2oZ6hu4raYLNrdqgMhx36A/1W9m/NuN6v+qkcbO?= =?us-ascii?Q?hFI6LMKDsPRKJFbZ7YqOaUHAHvn1U0kktBtKCJuezBp3+Hh2NGuQXjpxXndv?= =?us-ascii?Q?CD9Hj+5UmJ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Hcxr?= =?us-ascii?Q?MiDw1hA2ypWa1v+m5M/xuIjDhhaCPuauYed8qt0WqCVg1fTi9js9KsuCyIIS?= =?us-ascii?Q?Vn1T2xzBQq7aRS0uzF+l7VE7v/7idt3bLCJl+XwxOoTGgSctCLECA7+dyhr/?= =?us-ascii?Q?Ns1ZeD9IZ/oVi658CebbG3T7hRXhrPym+PY2YbwF0ag8ilaP6ZvT4W3JTfz5?= =?us-ascii?Q?IW/nkoKmnqK/lOF2pBErNzy7eOwJEdFujrTEBOdwJ4hVVpXuLuXUxZ3DjLSl?= =?us-ascii?Q?v2lYLSZS9pSDUbwviv613V4fNxPVcWspu7oL/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 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"); -- 2.39.0