Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4174662pxa; Mon, 10 Aug 2020 02:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJqG5OmtYpNQiMl7g2uuURZ+UDSLxqnBqDnTpc3hFJPN3XiI1ygivL8MgccAu3y+SznFwn X-Received: by 2002:a17:906:138b:: with SMTP id f11mr20192546ejc.310.1597052821453; Mon, 10 Aug 2020 02:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597052821; cv=none; d=google.com; s=arc-20160816; b=hs/nLS2E9XhWSPqaQfGQ5gonMcrzx4E1Z74aKFIOzPMuJD2Uc4+Re36NoMLnFuYIBQ o6zzyv/eGStisGTjwnYdGVPzqNHJuBf2N6LexwX5gLrmytnniSfPm+MIChXiF23Rf/kA 2G0l0ykG94S6Wrc+9UNFMpweeZseHK57qiydelaNAKbECo/IaIKMzFSqcC9MLmeno7vY 3oszEiyCYORYe5txEAndPj658BUiBZ+dk9UmjJdE2KtC+JqjlnMjvGrVRGaV/sXZ3VbG kuBeFwflJCe0i33/NkVc+gy4udK68EvQ/9v9um6JYjhFsqmZ8+d17e0x9mwri+3yU2G1 W5ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3fQqRDOEEK3chzUCl0lL9Ogs6I8yGgHjcMYgs480q6A=; b=gZd8uWA6LopnwYGhEh/UPNIeR6dbonAhyiXX+LviJPMgK0IMt8RfTToMt5jb5MKKP+ vWhau2nfV9IWtmUxvNJyCE+KPyZJkYcQPL8mrg5RJyo/vpSrhPrV3MvjArmLw6tGR3l+ sGJ9Svh41nwRyduKOQJWfJFWqStFhu+3mPF8j0JoJRWyUDVep7JF6uvghfbkAF/wlIZq PgMVbPRBnIrep/1xFo5R8zun8aKUvZmcxtqpGj8p+/TaToxrSKkP+VkyL6fGg7RgRIgG L5DnF8SrZMM+2HJed+uRZ6Iok1o8uemXAPfDHwEAxOkwHmOKM71ZdYjltzMXKP6NHMVA vyqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tJvq3feY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si10167860eji.684.2020.08.10.02.46.37; Mon, 10 Aug 2020 02:47:01 -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=@gmail.com header.s=20161025 header.b=tJvq3feY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgHJJqF (ORCPT + 99 others); Mon, 10 Aug 2020 05:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgHJJqF (ORCPT ); Mon, 10 Aug 2020 05:46:05 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D47BC061756; Mon, 10 Aug 2020 02:46:05 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id mt12so4529318pjb.4; Mon, 10 Aug 2020 02:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3fQqRDOEEK3chzUCl0lL9Ogs6I8yGgHjcMYgs480q6A=; b=tJvq3feYTqDjpFSHsGa2nJp192C6I/gC+CaEBcq+Rjc10MIMDQEU3hwx8IX6Kd9idz AruD5txahoyc/RfHJNXbJrjPl6nc7UFpzVUaQeNGh5Pn6Jt3C6tfMbmw3RcNqymAsb6f IByBxrDQLihGva6ZJJSzfOCbQOMpoQ89ePpCdAc06+LDjHNe49iOuezNAf5j5IfaBJ/G Kaf58/2KRp1dnSVJNv3TXUz7ETLosn6Q61C9Akr0W6sQHuPPrT7nj2IqhwwwPfHNaL3G mArAkvtKlrcZT8j3HfLZqz4krYEZdlGTf2oFVGjHDUPYFOU3TK4n0dw6NweWPnPV3oP4 dIaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3fQqRDOEEK3chzUCl0lL9Ogs6I8yGgHjcMYgs480q6A=; b=Pj7swVnK/iwmFca0JbzvUQJLQpeHJ+pVKRe3cWnX53cGG/38sYSgDVZW1w3yd4O1IB /HaapkV9RtGrtqPWJ+Z+2Biq3fSDMbGe9ECiKCVCwVxDvmL65XzvlcC8twYzU4Xd0B0B ecIeKy8jEzQYmAb9GIcDSLEPNU2yXHEcBVjZeAok2zzCqnnfJ+stl3optILokXXz4c6X F1rYaTGOn1Q7AaMgOqAsPJLKnPbfdSNTFqJBciG7X6QdHJP6Zv/dnIPYXzWXMLd0FxRp 2VJ/eg5PM5s9XHUd8YZc4wmcfRhOIlU+WKmLU8dc+QNdDCJpklemVAQ473tMS8TaDYN8 Q6fg== X-Gm-Message-State: AOAM530PlqdEzr8Ji4xMrZTfxEMiozmQIhLNvh1QO+C4wxz1dpwbmo2h sZNv3vD70iWAG+L9mQcMfNI= X-Received: by 2002:a17:902:d3c6:: with SMTP id w6mr21348487plb.209.1597052764753; Mon, 10 Aug 2020 02:46:04 -0700 (PDT) Received: from gmail.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id l4sm9385502pgk.74.2020.08.10.02.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2020 02:46:04 -0700 (PDT) Date: Mon, 10 Aug 2020 15:14:13 +0530 From: Vaibhav Gupta To: Sam Ravnborg Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Bartlomiej Zolnierkiewicz , Paul Mackerras , Russell King , Andres Salomon , Antonino Daplas , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-geode@lists.infradead.org, Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 01/12] fbdev: gxfb: use generic power management Message-ID: <20200810094413.GA7579@gmail.com> References: <20200805180722.244008-1-vaibhavgupta40@gmail.com> <20200805180722.244008-2-vaibhavgupta40@gmail.com> <20200808111746.GA24172@ravnborg.org> <20200810093948.GB6615@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200810093948.GB6615@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > -static int gxfb_suspend(struct pci_dev *pdev, pm_message_t state) > > > +static int __maybe_unused gxfb_suspend(struct device *dev) > > > { > > > - struct fb_info *info = pci_get_drvdata(pdev); > > > + struct fb_info *info = dev_get_drvdata(dev); > > I do not see any dev_set_drvdata() so I guess we get a NULL pointer > > here which is not intended. > > Adding a dev_set_data() to gxfb_probe() would do the trick. > > > gxfb_probe() invokes pci_set_drvdata(pdev, info) which in turn calls > dev_set_drvdata(&pdev->dev, data). Adding dev_get_drvdata() will be redundant. > s/dev_get_drvdata/dev_set_drvdata Thanks Vaibhav Gupta