Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1442396pxj; Fri, 4 Jun 2021 14:46:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZr5cMSvgmjj8Bz1lOfKDEFTyM8WduoLReLHRyUG8F8fQ9ZYuzoOpAtzrULgJ0RWqEdAox X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr6382909ejd.167.1622843167370; Fri, 04 Jun 2021 14:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622843167; cv=none; d=google.com; s=arc-20160816; b=sGAZSQmP44/f1veD1BAWutmZR2ffBdEyebCtVOLX8NHADkHKMIZbWePjNL5CwFGBs6 1G1uZZ+oByfU5lsZlmVL5dr6vu0FiWHTF1Xrz7OTBOYZTP90PNcl6QHkZnFUBji0QY5i wl5/pSDJg9MYmFq+a3+ADVdVJXl9/vXOPb/UWZvRiSzr+oJl8vUea9HcGIVyzlCNAA7H yRxSxk8hLQPpioMEpPEtoue7w9OZeuaEcey1rZl3rH7IxCynzrtEhJjU2WwkZhRGsP+U jJ35xd9M+UrYTBUthGBP1u315aQIDlWmKMeUNxb/gREOyZItDdQCHbzAdQSp4rtVa0zb s9/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GjsAN50ddWQm0VC6qlRfoB/dT6P+8ZqVwoy/BYE0lSw=; b=C6nGI7fQnYPQqY6PvW7all8JmVmR1KUr+8rFcvg913kHebrivs8/WycrUaJ14bS+gG GXZ+OWgRUtt0ivT5678z9gKNTm6w4YrSYSoeJ7w0CFPcy3BcmCoHxkTYO55zjkoaLolo Qo3rP82s8D1lIh5QIXg5cBSgApeWrNKB36sdQC0JO1AB9cTDUpjfjK+shlX1/1wv3dUw CMaMMUcXZS2Ianxu9c5M/06aHY7BhzmaVpZHJrvHrdAuw3//RKbr6cVZc/ABVwVoDHoj Q3wf9w2chlbrzl4rJ1hfpqIDbIfMx+nfLcKBR81+Q/XWoXFF/aCaP6p2GYkIdAqCBtua wB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZHc08C+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ka11si5867843ejc.367.2021.06.04.14.45.44; Fri, 04 Jun 2021 14:46:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZHc08C+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbhFDVql (ORCPT + 99 others); Fri, 4 Jun 2021 17:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbhFDVqj (ORCPT ); Fri, 4 Jun 2021 17:46:39 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763D5C061766 for ; Fri, 4 Jun 2021 14:44:52 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id f12so13388105ljp.2 for ; Fri, 04 Jun 2021 14:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GjsAN50ddWQm0VC6qlRfoB/dT6P+8ZqVwoy/BYE0lSw=; b=ZHc08C+7Ibj69IVBB82goPegus+bAv9YuQoOVi9q9e+hDWENTWGrYTASzVNJNr28ii Y7E/XifFGi5YsoiMtuln3nFJzi2+VJCSGQifDJJetuD0tsRwjsUij7KR3i4O/1s7/3zi NClVAgpjP25K3UUqeUWYveb0ihfXIfOH8FXpzYyYITm9evxiETFUQQyyz1+dWm+nDBF9 UGnPUZMzC41fMqye9lXdyLOk94SDBWRCYO2+bTTfW/RSjLuVtL3W3yZXtW3bi4ayGkTn oATemphAWOJ1r8/n4NB/XtZY3Udzt9Me9nva7gNm8ZzkEcvIV122BSG5Zrs89Wj4tWxA hrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GjsAN50ddWQm0VC6qlRfoB/dT6P+8ZqVwoy/BYE0lSw=; b=PpdZGNGaAoDk1VriNdQAfFKe0D/6DmvRSrDiCssO3dAG8D1+SwDbMXsqP6H03ibUjW 5fwGxDx41+iyYHm2Lrn5OjRiOVwpxv7EuI4eEXQ1b/NiWqbV825FUx0OFiaKWvYY4a6H DnOpdxZ7fsNVImYOxKUGPMK4CZbCtGVwHI4aZIs/b5RX0WyqDxBL18t5aOaMmqebxlu9 PgsbdUp9aRMDABjqhH0KYLct63rirK4Rrd1J9VvG0i4cAZ5e+w0TlvkGvCKYye+lQMPe wu8ve+FcYBTAQTCbhR+74LHbcXPR5P0Ksh3vLN+ktSdO4ibxSnFy9kjvS4HmioqIwmEJ CI+A== X-Gm-Message-State: AOAM530sJxZHEmFwEdx166pNJThfD1aPZf6foMBJRUzudY46r8/nrO1T uo7oZTtHrUsqzMhv5GoI4KK4WycoNFwllDKvlUuRXA== X-Received: by 2002:a2e:889a:: with SMTP id k26mr4923550lji.438.1622843090808; Fri, 04 Jun 2021 14:44:50 -0700 (PDT) MIME-Version: 1.0 References: <20210524131852.263883-1-maxime@cerno.tech> In-Reply-To: <20210524131852.263883-1-maxime@cerno.tech> From: Linus Walleij Date: Fri, 4 Jun 2021 23:44:39 +0200 Message-ID: Subject: Re: [PATCH 1/2] drm/vc4: hdmi: Fix error path of hpd-gpios To: Maxime Ripard Cc: "open list:DRM PANEL DRIVERS" , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Eric Anholt , linux-kernel , Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , Daniel Vetter , Hans Verkuil , Maxime Ripard Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 3:19 PM Maxime Ripard wrote: > If the of_get_named_gpio_flags call fails in vc4_hdmi_bind, we jump to > the err_unprepare_hsm label. That label will then call > pm_runtime_disable and put_device on the DDC device. > > We just retrieved the DDC device, so the latter is definitely justified. > However at that point we still haven't called pm_runtime_enable, so the > call to pm_runtime_disable is not supposed to be there. > > Fixes: 10ee275cb12f ("drm/vc4: prepare for CEC support") > Signed-off-by: Maxime Ripard Reviewed-by: Linus Walleij Yours, Linus Walleij