From patchwork Thu Aug 1 09:12:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Kepplinger-Novakovi=C4=87?= X-Patchwork-Id: 816150 Received: from hz-relay01.de.seppmail.cloud (hz-relay01.de.seppmail.cloud [162.55.72.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03344170828; Thu, 1 Aug 2024 09:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.55.72.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722503770; cv=none; b=JZ2JKHvWrKXKjsikXbeiFpWvn17L87/Ubtue6DNhOSeylyI2T5fxNYLzbgf46GBL6qMPB8B4Sfi+oXDRvVrcPPPO1H8daC5cQ1ltmy2o9wMiNR1ym6eFgjfiSCH5p+QeusKq9iBxUzsxjBjp0mqr7Kuth55MCh5QsRHQIA3FBEk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722503770; c=relaxed/simple; bh=Jz50OEO7iv1c8ZFFW3/jlEGOWnMoyphrdDWMn6mqRU0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=guBhRCZDr7jcNvQiTqHQJEi/pu2hVXFasbgbJzJ4MgdHYNHr0YbtcevyEgD3AWP2Gny+syPSHQdgFiSUrSlj+uaAzWGmfECV29P7XgS7pOQIyijpxEXcg+OtrFRocgblgkfpLsdwBqZLjhvHFSiSGLOmjBmeARcLgqCrU0pszn4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ginzinger.com; spf=pass smtp.mailfrom=ginzinger.com; dkim=pass (2048-bit key) header.d=ginzinger.com header.i=@ginzinger.com header.b=iQtlflE9; arc=none smtp.client-ip=162.55.72.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ginzinger.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ginzinger.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ginzinger.com header.i=@ginzinger.com header.b="iQtlflE9" Received: from hz-relay01 (localhost [127.0.0.1]) by hz-relay01.de.seppmail.cloud (Postfix) with SMTP id 4WZNY74tjKz1LlF; Thu, 1 Aug 2024 11:13:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=ginzinger.com; h=from:to :cc:subject:date:message-id:mime-version:content-type; s= default; bh=Jz50OEO7iv1c8ZFFW3/jlEGOWnMoyphrdDWMn6mqRU0=; b=iQtl flE9v6BOj4sI0N4XQ/XnN363ulASXVErzIZzJDXgdubB+7Q/hJ6vVEVPI0SOmbHT PTjN48678pEAAtwVy2gY1D1Plhnu6oGL7IWBWR74tTyeBiI+sQtfOwZPRDD8414w Pyw1OTBX7mTDdy7BQrpTY6/ZwiJb911RbLV/0+CHHVpI371zXeFRwfMHxfUJPhiw gTlJgvyze37fAadUgFeUFdjF9wDO/X71/fvjR/23vMB4ZKCQtIkTZqLI7wXDUWmb wKjYlXPE8oZ+AylPMz5cwru8QqUHP6zAM8mUUhzZGbV6wdsApjtVm6JXblboEsRp eTXLDVawMVR8WsI/pw== Received: from hz-outgate03.de.seppmail.cloud (unknown [10.11.1.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hz-relay01.de.seppmail.cloud (Postfix) with ESMTPS; Thu, 1 Aug 2024 11:13:14 +0200 (CEST) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02lp2040.outbound.protection.outlook.com [104.47.11.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (not verified)) by hz-outgate03.de.seppmail.cloud (Postfix) with ESMTPS id 4WZNY31Q98zGnv7; Thu, 1 Aug 2024 11:13:10 +0200 (CEST) Received: from AM6P191CA0097.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::38) by PR3PR06MB7132.eurprd06.prod.outlook.com (2603:10a6:102:8d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Thu, 1 Aug 2024 09:13:07 +0000 Received: from AMS0EPF000001A6.eurprd05.prod.outlook.com (2603:10a6:209:8a:cafe::3f) by AM6P191CA0097.outlook.office365.com (2603:10a6:209:8a::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Thu, 1 Aug 2024 09:13:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.93.157.195) smtp.mailfrom=ginzinger.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ginzinger.com; Received-SPF: Pass (protection.outlook.com: domain of ginzinger.com designates 20.93.157.195 as permitted sender) receiver=protection.outlook.com; client-ip=20.93.157.195; helo=westeu11-emailsignatures-cloud.codetwo.com; pr=C Received: from westeu11-emailsignatures-cloud.codetwo.com (20.93.157.195) by AMS0EPF000001A6.mail.protection.outlook.com (10.167.16.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.19 via Frontend Transport; Thu, 1 Aug 2024 09:13:07 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (104.47.11.40) by westeu11-emailsignatures-cloud.codetwo.com with CodeTwo SMTP Server (TLS12) via SMTP; Thu, 01 Aug 2024 09:13:07 +0000 Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ginzinger.com; Received: from AM0PR06MB5155.eurprd06.prod.outlook.com (2603:10a6:208:f3::23) by VI2PR06MB9134.eurprd06.prod.outlook.com (2603:10a6:800:21d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Thu, 1 Aug 2024 09:13:05 +0000 Received: from AM0PR06MB5155.eurprd06.prod.outlook.com ([fe80::7c6d:514b:6060:6088]) by AM0PR06MB5155.eurprd06.prod.outlook.com ([fe80::7c6d:514b:6060:6088%5]) with mapi id 15.20.7807.009; Thu, 1 Aug 2024 09:13:05 +0000 From: =?utf-8?q?Martin_Kepplinger-Novakovi=C4=87?= To: ukleinek@kernel.org, lee@kernel.org, daniel.thompson@linaro.org, jingoohan1@gmail.com CC: linux-pwm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] backlight: pwm_bl: print errno for probe errors Date: Thu, 1 Aug 2024 11:12:55 +0200 Message-ID: <20240801091255.1410027-1-martin.kepplinger-novakovic@ginzinger.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: VI1PR0202CA0021.eurprd02.prod.outlook.com (2603:10a6:803:14::34) To AM0PR06MB5155.eurprd06.prod.outlook.com (2603:10a6:208:f3::23) X-MS-TrafficTypeDiagnostic: AM0PR06MB5155:EE_|VI2PR06MB9134:EE_|AMS0EPF000001A6:EE_|PR3PR06MB7132:EE_ X-MS-Office365-Filtering-Correlation-Id: 3faab4ba-42b9-4e72-f342-08dcb20a286e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?q?ycWTXOs+WwwOetWo1oEwZE?= =?utf-8?q?0FGtxqiDa4oa3SIVbcQxGklLA/ZCEpPrUVphkc/WVVZoKShLyjXPsEjG1IqzuXxHT?= =?utf-8?q?hDxHvBUcjHY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5/0rNM1pCgEh+jMPknKLEIM5n1sxmBBs3IgfE?= =?utf-8?q?e2GZsAFVst0d4Hhw06GPU5uU+QlrpVLRHoTAtxz0G6F07766/OajvWUXyhmBeYuX6?= =?utf-8?q?UYW9tjH3CzW2ocEJjj4C9R646RK1/XOCEqfmaslRUl3QKPcMcbAAY5qjvff3WRYoO?= =?utf-8?q?wR+0Hcelu8MliQIekMSb3D/Iel1IdCoSTiFuzykNmzId4tM1DO6lGppHJIrJ8Lz2S?= =?utf-8?q?ajQW1K6mrOeOTs/M/3cr+ht3sTGRJD/FDmEorhi9peP/X2wLBONlbKhBfejHyIAKr?= =?utf-8?q?o2FzBFduZSQaGo8wUOWC8YMD+4MhBLEfCnGAg+vLNUwKliGy1N2ZKulEADJek6ImU?= =?utf-8?q?S0zWZ2pCoh+TQFTpHG0ojay6juCt/XSv7+BAEDxw9vQ=3D=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR06MB5155.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(1800799024)(376014)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR06MB9134 X-CodeTwo-MessageID: 1afcd3b9-57bd-4d15-b48a-df04eda0e4a0.20240801091307@westeu11-emailsignatures-cloud.codetwo.com X-CodeTwoProcessed: true X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001A6.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: fe10f730-12d1-4901-d384-08dcb20a2741 X-Microsoft-Antispam: BCL:0; ARA:13230040|35042699022|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Nez+5DptTbbYfZiSYMV8FTVfYLhSg/L?= =?utf-8?q?vZIIrIzhY6ZhjmM7/aS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nm57CgSnD7NysZYugOe+1DUWgxvLVT+Kyf71lkbrzrS0Fx2ckFJh6wceosODX?= =?utf-8?q?y66TpT9+RXLe9yofGmAQiMCIgC5q5IA6NVpnbLCb1z/sEjTG0iQTcThb3sK7nM97F?= =?utf-8?q?eyPrHP0Z++GRQ/2lvTqpChP5178s7hSQKthWmm7YKaJdPIXGFyDhUUDlkZHpzuTO8?= =?utf-8?q?fpbddqs9XmT8AG4ybpVOQBQwD0mA608VdMmPKM46lRns9RNCP5h+scsTPNVK7jn6/?= =?utf-8?q?11VoTs1PU7bpm1FTuB0FLRqd1LxuCFTJciF7d6/etrAKIlXCK6hab1d3p3zIuuS6k?= =?utf-8?q?ap1jfKTGe1vh6/W6sff7FlgYmLVbmUJJCRAFSvKt6SSnE1mXXAAswg9sjLwWqoyae?= =?utf-8?q?0X3Sbh1IophaLh5CApOKjk1KZ5lStzYnV4cvxdlvNnhSyfHbKVqyrXxp4ilKZXXgE?= =?utf-8?q?hMQMJSq/03P1E2xwb/ySKvhjdtn385+XvxDcLPnDyr3fDltNZ/ioq6B3hN+cHU33o?= =?utf-8?q?yaaIWZ0wiEE?= X-Forefront-Antispam-Report: CIP:20.93.157.195; CTRY:NL; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:westeu11-emailsignatures-cloud.codetwo.com; PTR:westeu11-emailsignatures-cloud.codetwo.com; CAT:NONE; SFS:(13230040)(35042699022)(1800799024)(376014)(82310400026)(36860700013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: iEZ4Fd2z9Tu0TxoAh/nme485Efg0bDeSAtQ+BUFk5J3NGkYCs8nx8lvYW1dslnzpSkYV9IeINya0P4njklQeo/de1kmvSDPm6uW1kdDJykpdQJNl+sGXsLv3VfhmiJYgTVA1aYNlNyD96IEfKydR634ZcwvdgMDPbko3v7839sJ9LyrjTKTRmqTpDCb5Sj47UBVmbtwSwkh3AZFEyp7pwYBks58FLjewgrbmrZj/bsN1DsoCZcRmHNMyL71BfKL/kYyDAPBCDdrs5KuAa2MX2EH6dHMiVDFZ9DyGq3mcKSvmbwD6lLD/BeYUXTAryHMRxBO3+fWDabC031O00+0U8qHsb5SXVmNNw72VzQdWzhtpc30OxM1I+VZaEiE0kCw/G9mAc7eBgZF3gz4zyKMD/jXfHovwQvZ/GTc8+59QkiDSscEd7aTIMutykg0c+5nZ4Eewest6zsPR86jfP4eQnnIwsD4T5JRGSeLT0r+N6tAbugvpS/CtttR8ZmPNuEkpa9XIpaFHUStF31nHySxM3/OwGfB2jvVXubXHe78xogQbuD8gdTN/PhOz1rBCyNg7GJnLAep9ehLan2nusq49+Cd3lNZ19BcNucsCKE5uYq5QK3nEYUPuAO2JpXb94Sp7h4P/kD8ddfAQX1fEcYANOW2q5d/GMf0oF70VqPflRvk= X-SM-Relay: yes X-OriginatorOrg: ginzinger.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 09:13:07.7232 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3faab4ba-42b9-4e72-f342-08dcb20a286e X-MS-Exchange-CrossTenant-Id: 198354b3-f56d-4ad5-b1e4-7eb8b115ed44 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=198354b3-f56d-4ad5-b1e4-7eb8b115ed44; Ip=[20.93.157.195]; Helo=[westeu11-emailsignatures-cloud.codetwo.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001A6.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB7132 X-SEPP-enc: yes X-SEPP-enc: yes X-SEPP-CCCVersion: 2024-06-24T10:15:43+02:00 98369f65 X-SM-outgoing: yes Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This makes debugging often easier. Signed-off-by: Martin Kepplinger-Novaković --- drivers/video/backlight/pwm_bl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index f1005bd0c41e3..cc7e7af71891f 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -502,7 +502,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) GPIOD_ASIS); if (IS_ERR(pb->enable_gpio)) { ret = dev_err_probe(&pdev->dev, PTR_ERR(pb->enable_gpio), - "failed to acquire enable GPIO\n"); + "failed to acquire enable GPIO: %ld\n", + PTR_ERR(pb->enable_gpio)); goto err_alloc; } @@ -513,7 +514,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->power_supply = NULL; } else { dev_err_probe(&pdev->dev, ret, - "failed to acquire power regulator\n"); + "failed to acquire power regulator: %d\n", + ret); goto err_alloc; } } @@ -521,7 +523,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->pwm = devm_pwm_get(&pdev->dev, NULL); if (IS_ERR(pb->pwm)) { ret = dev_err_probe(&pdev->dev, PTR_ERR(pb->pwm), - "unable to request PWM\n"); + "unable to request PWM: %ld\n", + PTR_ERR(pb->pwm)); goto err_alloc; }