From patchwork Mon May 6 19:24:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13655923 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 24EAEC25B4F for ; Mon, 6 May 2024 19:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To: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=Vrc92MqlVDo428Wt0KKqft33yF/B1kyimLykkyLOQNM=; b=GfP/WXATIRVjjH dqTOFGDwlThW32OMzmPiOsThfAqLflmVMoWTGa9uR7xZ05GDk60FYWZ/Mxd90LwtY7F87SoCpnW+4 3batMMTCkpVPOCz6+obAX7Ydq92dl/TsK3H2no/OUXHsYYtq6tYOGCujEcvyUpoqdBA2z87PWhyHw 89YzvTS+ZMX/WFACVo9qeWNx53rtcEeZrmAGpVvWj3apaeVopw8J0WbRZR7dClqyGZSbjV11z51s7 zjXe0wfEND985fbg4v8zdNf6aitv1ACRSGhTCYRaTsPWKMMRxkjc46iw+RmynHUu0m5uJta+StGc5 YApJ/+aOm7mrXw39Q7lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s43xF-00000008VQz-2XD6; Mon, 06 May 2024 19:24:53 +0000 Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s43xC-00000008VOt-0ZbX for linux-arm-kernel@lists.infradead.org; Mon, 06 May 2024 19:24:52 +0000 Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-de5b1e6beceso2727517276.0 for ; Mon, 06 May 2024 12:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1715023488; x=1715628288; 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=62kWvReLX/MoSE8YfO5lP7Yd06Z/Ka4KHCr15yccf+k=; b=FFivnhLCCEYR7Bqi4yagcBtrXO0FCryafn7I/+kkbpMENLEqfppDj1Mc70M1NAYAJd WU8jAti302N/s75DpBIKIcwA8AE+DM1BqWEKQI5UiNPmfLGNfeovMAtmoA27Xr+FzZez 1oH2d3r+sM6ncMciZ44YCM1exEMvRNdSvRCkM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715023488; x=1715628288; 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=62kWvReLX/MoSE8YfO5lP7Yd06Z/Ka4KHCr15yccf+k=; b=YzRtF0aU4+lbS+3OUYeOVUQqohYCJMZnSoG+2Fd6dTag/VbJJN1mbCf4slCgsJQcX6 wS4ex7lr+XBebS2D3JyDvbyBEDvTHTm8m6Dh/+7NlYeVqWX3GKWOYFzCq0hidNKGZYnx fc5NcXsukrPuZtxvifoKUIm+AoAfSnro9kYQJ0P307ob2uR36gJypwDQv1LVHrkUoSou efUx4DkHf4WMROaooTngac7woO+v6M6gi8PzsjGoBqNrMJa1dN3yfc59h73HsFGwW+Rh uM/Zo2vxWQpplZJ0PhMLj5+jDjEZWlTFgn/WitaOVTIRdljyO8SNrEA3bSxQQ+hZhevh sPew== X-Forwarded-Encrypted: i=1; AJvYcCUykL3QSa4meTixydgPNNqQSEElfv6uyIR0a8/fIsVRxi+CkB6vaLDdMj1v0FODHdmIKaLhgAd4oH5CnGBkKKWJW3XNTvzJudW9mOLkz3KOEgkfeAY= X-Gm-Message-State: AOJu0YxjxogkPVJLT2JeVrRA8FRLB3GK2ZiWS26vHCR+3m2D7Vvb6BXe I787cGVGqbZ5y4TBvNPO2wfyDk3E6E/i6U/K6azeQSn2/AflNNqTtiBadCLHfw== X-Google-Smtp-Source: AGHT+IHcWb5E9ASAPUj9u23aIXpNd71I/CHj/yN0+WqkyFpwUUf+ilovhGe30lBMZ89taFLE6XUZVg== X-Received: by 2002:a25:80cd:0:b0:dcf:411f:e78 with SMTP id c13-20020a2580cd000000b00dcf411f0e78mr10894973ybm.25.1715023487747; Mon, 06 May 2024 12:24:47 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id ch9-20020a05622a40c900b00436e193f408sm5439870qtb.28.2024.05.06.12.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:24:47 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v2 0/2] media: bcm2835-unicam: Improve error handling during probe Date: Mon, 06 May 2024 19:24:45 +0000 Message-Id: <20240506-fix-broad-v2-0-e6a2a5c0d609@chromium.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAH0uOWYC/22Myw7CIBBFf6WZtRheptZV/8N0ARTKLFrMoETT8 O9i1y7PvSdnh+wJfYZbtwP5ghnT1kCeOnDRbItnODcGyaXmWnEW8M0sJTMzPXBvhVFDf9HQ/Af 5dh6t+9Q4Yn4m+hzpIn7rv0oRjDMXlL0KG4Y+hNFFSiu+1nOiBaZa6xcduODmpQAAAA== To: Mauro Carvalho Chehab , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden Cc: linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil , Ricardo Ribalda , Laurent Pinchart X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_122450_272587_2308B9E5 X-CRM114-Status: UNSURE ( 9.39 ) 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 Improve the error handling of the irq errors. I am not sure why the retcode was replaced always with -EINVAL, so I have returned the errcode upwards. Signed-off-by: Ricardo Ribalda --- Changes in v2: Thanks Laurent - Squash 3/3 in 1/3 - Link to v1: https://lore.kernel.org/r/20240430-fix-broad-v1-0-cf3b81bf97ff@chromium.org --- Ricardo Ribalda (2): media: bcm2835-unicam: Do not replace IRQ retcode during probe media: bcm2835-unicam: Do not print error when irq not found drivers/media/platform/broadcom/bcm2835-unicam.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- base-commit: 1c73d0b29d04bf4082e7beb6a508895e118ee30d change-id: 20240430-fix-broad-490eb1a39754 Best regards,