Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2172261ybi; Thu, 20 Jun 2019 10:15:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuHgpuhlDHS4H0fktF2Nfs3uZrGZJsH7C+U6EGzGpiumKgMlAdXR4MEMtc8kdfGCmIvHdR X-Received: by 2002:a17:90a:eb08:: with SMTP id j8mr754612pjz.72.1561050912672; Thu, 20 Jun 2019 10:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561050912; cv=none; d=google.com; s=arc-20160816; b=JXGNw/iSdFYk0dKanQmHUpD8HNh08UN6GUuddFXC2Xz8isDAD2ZUMX8ZCk0eIkUI36 3lP31kGbXDMf5+RM4DBBJHqLCOQdA0znIsk2vkwopuL8fKdLvRnFjRa1h2nNLirSUkAh SuWeS/L94nwNikIsK72BOPogzI5Nmur9a4CBsXh6XP2jMMVoQKfBfM2+gPgWV7iaKWn5 vrTXEnyG9K2puhzUfRIb/fR0bsx+nOSNxjT4Beyz4iSr/DiLGzybhucX1T+py+nLotUQ CHEelj/ew27s+mtbs07U8X902PURd3Jrep7WhlROoUrtseEFtVbh4wVBXdGx6ZvXXalg sfgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GR6x4on2th+OpGEr++2MdtxVD5WfNFN9wx4DvQ5w7Rc=; b=WlucPXDWAhg5wNpd7VuXlcVMUclosvF524qInM7HQwf5yAeTLAtX62ld0pMyi66uk5 ETBhMYQD7YwVcnggK6thYuU8dLI+1LWU4GwvYjBZCbxf5T90HcdiFyHK+NP+nqpLVP0n mZ9DSzzLV2Ko7l1uK3GrYCcgiQTupSMwBGKyM/WewFP/O84pwttLP9rrOrOvGtSvuHji ohZN8SfOHzOEYpwkiK5imwcATigZPLtYSQeQLDs4Ro+79C2Lx93gERgCxYGc9PAjXdN4 muVhRftUn03w9WYzMS0UZpfgjt8v7XeHGzTIUwHN3S/dOxuQEVejIsRKnITdAgv4aYp/ bJDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V8bIRrbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19si46100pfi.175.2019.06.20.10.14.57; Thu, 20 Jun 2019 10:15:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V8bIRrbA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731967AbfFTROe (ORCPT + 99 others); Thu, 20 Jun 2019 13:14:34 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:34926 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbfFTROd (ORCPT ); Thu, 20 Jun 2019 13:14:33 -0400 Received: by mail-ua1-f65.google.com with SMTP id j21so1958400uap.2 for ; Thu, 20 Jun 2019 10:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GR6x4on2th+OpGEr++2MdtxVD5WfNFN9wx4DvQ5w7Rc=; b=V8bIRrbAwIjB8y/e3VK5hdGQiO8fdK96fE89vK+8xM34pSYwtIAitElGMyEc8eEZ8Y JNN2Dm3GQX4EuHrYdTR03KQM7saTG0dG9xx5zg8ZkNjOfIr6ls5jeWmDIaheAotE/Yfs HELQdZl4/gheu42t/o9XX2Hh2YkYYtpBtob1vLOLhf9cgFBMV0rKwK8fnXV2suKtO/C4 XaCv7FZXM2vP1vPi93jU4r/GnJzEFBq/C2BcDaw/yl5TkAlj+EOjsIQ+vkSq6f4v28Z8 W3CDYr6Ag4umJu04mO2GC/WVWTh8HbyridbYuXZEfCtzeI4aRTnbJLsQ1DmiR9jSu4Ai gbtw== 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:content-transfer-encoding; bh=GR6x4on2th+OpGEr++2MdtxVD5WfNFN9wx4DvQ5w7Rc=; b=dm9GfbBecMfCLuEA8zbBZqlnLnb5Saq94ub290r+AHM+xKtOJwWf5NiSFbftEwaphR b672Ccv6EMwz0uAjTBpqxpuEnoBp3zhtTpVPYAKl2shZO22Sy/c2IIFcFqo1dmi0kyvW BCjOgAfvDxGsNBIsUEp1zSdG5YgyuYtBYCPOIOnN+/WE2ZP5oEkL9W/2kqMADeRXuek/ q7WxVgeni37KcxluGB60uGmUh8en3/vyoWtYAZ0RK4biJhxRhWM8GNbrYMW5yRAwf4hn 3bV8MhFMXh+YG+kjSplYuxL2Nfy7IiqAfZgo/A2PkA+tbqjIsG+JZs7I2VYelAWTqdjN GBXw== X-Gm-Message-State: APjAAAU6OItrsgBMozvKpi+3EQ93i0ECHFjYCJpgTfS6wJ2TJS3faNZV YiSPVN6OshF+34vRPOA5sFtPgn3p12d9bNKcBVS/zQOG X-Received: by 2002:ab0:2556:: with SMTP id l22mr9364887uan.46.1561050872751; Thu, 20 Jun 2019 10:14:32 -0700 (PDT) MIME-Version: 1.0 References: <1560755897-5002-1-git-send-email-yannick.fertre@st.com> In-Reply-To: <1560755897-5002-1-git-send-email-yannick.fertre@st.com> From: Emil Velikov Date: Thu, 20 Jun 2019 18:12:16 +0100 Message-ID: Subject: Re: [PATCH 1/3] drm/stm: drv: fix suspend/resume To: =?UTF-8?Q?Yannick_Fertr=C3=A9?= Cc: Philippe Cornu , Benjamin Gaignard , Vincent Abriou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , ML dri-devel , linux-stm32@st-md-mailman.stormreply.com, LAKML , "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yannick, On Mon, 17 Jun 2019 at 08:18, Yannick Fertr=C3=A9 w= rote: > @@ -155,15 +154,17 @@ static __maybe_unused int drv_resume(struct device = *dev) > struct ltdc_device *ldev =3D ddev->dev_private; > int ret; > > + if (WARN_ON(!ldev->suspend_state)) > + return -ENOENT; > + > pm_runtime_force_resume(dev); > ret =3D drm_atomic_helper_resume(ddev, ldev->suspend_state); > - if (ret) { > + if (ret) Hmm the msm driver uses !ret here. Suspecting that you want the same, although I haven't checked in detail. HTH -Emil