Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3628360pxb; Mon, 24 Jan 2022 13:54:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzL1IDmo2nOkkOPocgMwF3PhwgUcadqG1k0USSZ8Ssehpr5AuOISNMdXq+T4S+UReIXyvnX X-Received: by 2002:a17:902:8498:b0:14a:1b37:9f2b with SMTP id c24-20020a170902849800b0014a1b379f2bmr16773725plo.85.1643061251538; Mon, 24 Jan 2022 13:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061251; cv=none; d=google.com; s=arc-20160816; b=xZJXeW/zpmoXEbhWpJTOXIPUHA87v57fAXeT/32VVgjrhKGomfp8Q2Z+GS39A2cRoA 1bUWi1upT7Zq9nbDA0Di/GMcVz5vbDyvwaQ2aU8DGb3acSq+Ic9dd1CDigddq+jWKCjZ E1Ueaw9ezxO3v+pOGgl15aRa4ILnA7BMKOL2JeUFrNsXsxu++294aamPhPzzPh0xqBqs +KlSpEZZl+allUpt+WwpHLO3GBw+Bn7GHBvjwJ45eO+W2QnD1A32Udr+XePuRvp1mB4A jZNTC/viAddc7i/sYFAU5qOfK2Ht2Dcx7kzamgBt96wjNmW9Ku8z1lngH4INgxOAneL0 9eUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dYrLroBP14gHgqca+4RuPhrJJV4WTP9VD0I9K5qJopE=; b=X3OjBYFxzhZo0kKk3iqK9HawFY8OJWIGWmNKRqgwG6sUGr00/IT7IKCTZvoMWR0sd2 4cpqIfZeJWCoSJImzp12M+sOIBvSz+3vBfGRblj7xqRyHPG0qtvxXtIf2lCXzp3eTCb5 QXeVtF2+TWguCCG3AYngabJfip5nri83HWmSydXZ25SA2NopIyRy+GYiuWjUm328dzLb Od49An5hWfNfFwD0MxVR7ucrCNDmf1DCvbeOAMwkW032dmfgmv1co2z1EV69xdB3Zgad oebm66aP74+rDnmoJC1lyf9roP3+rhdvWa2rWHAGY2goqcqEFQXJJHpumfmev1DQH6v/ KpEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v0j6Mkq5; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si12601843plz.206.2022.01.24.13.53.59; Mon, 24 Jan 2022 13:54:11 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=v0j6Mkq5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456665AbiAXVjp (ORCPT + 99 others); Mon, 24 Jan 2022 16:39:45 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:55860 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445083AbiAXVCH (ORCPT ); Mon, 24 Jan 2022 16:02:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5457CB8105C; Mon, 24 Jan 2022 21:02:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 833F6C340E5; Mon, 24 Jan 2022 21:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058124; bh=BNw15DMNEo5jqLE6Y6CE4dQGroEOmFccGBlIu/rczgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v0j6Mkq5e6oZLt5HEbphiIvxKIUn3YMJZXbLDRjmuT9qvlGviT6xpm+jiyYtlhvnS XDZRsxLf7tODqvodb3Np+DsVa+T8cDzUv6w15WNhE/7roKb9uznd+yqT/Fy6hFfonH CK0C9GFcAcro4FJjI6uAFEc1oDV6IZ/rPr0GQ0tg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Scally , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.16 0186/1039] media: i2c: Re-order runtime pm initialisation Date: Mon, 24 Jan 2022 19:32:55 +0100 Message-Id: <20220124184131.547439151@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Scally [ Upstream commit d2484fbf780762f6f9cc3abb7a07ee42dca2eaa3 ] The kerneldoc for pm_runtime_set_suspended() says: "It is not valid to call this function for devices with runtime PM enabled" To satisfy that requirement, re-order the calls so that pm_runtime_enable() is the last one. Fixes: 11c0d8fdccc5 ("media: i2c: Add support for the OV8865 image sensor") Signed-off-by: Daniel Scally Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov8865.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/i2c/ov8865.c +++ b/drivers/media/i2c/ov8865.c @@ -2899,8 +2899,8 @@ static int ov8865_probe(struct i2c_clien /* Runtime PM */ - pm_runtime_enable(sensor->dev); pm_runtime_set_suspended(sensor->dev); + pm_runtime_enable(sensor->dev); /* V4L2 subdev register */