public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: alexander.stein@systec-electronic.com (Alexander Stein)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 1/5] drm/layerscape: Add Freescale DCU DRM driver
Date: Mon, 20 Jul 2015 09:18:16 +0200	[thread overview]
Message-ID: <2160582.6fH0nmeH2v@ws-stein> (raw)
In-Reply-To: <1437129543-8037-1-git-send-email-jianwei.wang@freescale.com>

On Friday 17 July 2015 18:38:59, Jianwei Wang wrote:
> [...]
> +static const struct regmap_config fsl_dcu_regmap_config = {
> +	.reg_bits = 32,
> +	.reg_stride = 4,
> +	.val_bits = 32,
> +};

This defaults to REGCACHE_NONE which in the end sets regmap.cache_only = true.

> [...]
> +#ifdef CONFIG_PM_SLEEP
> +static int fsl_dcu_drm_pm_suspend(struct device *dev)
> +{
> +	struct fsl_dcu_drm_device *fsl_dev = dev_get_drvdata(dev);
> +
> +	if (!fsl_dev)
> +		return 0;
> +
> +	drm_kms_helper_poll_disable(fsl_dev->drm);
> +	regcache_cache_only(fsl_dev->regmap, true);

This should raise a warning (see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/base/regmap/regcache.c#n472) as map->cache_bypass is set because of REGCACHE_NONE.
I think you set the cache_type to REGCACHE_FLAT, but neither _LZO or _RBTREE (see https://lkml.org/lkml/2015/7/16/552 for that)

Best regards,
Alexander
-- 
Dipl.-Inf. Alexander Stein
SYS TEC electronic GmbH
alexander.stein at systec-electronic.com

Legal and Commercial Address:
Am Windrad 2
08468 Heinsdorfergrund
Germany

Office: +49 (0) 3765 38600-11xx
Fax:    +49 (0) 0) 3765 38600-41xx
 
Managing Directors:
	Director Technology/CEO: Dipl.-Phys. Siegmar Schmidt;
	Director Commercial Affairs/COO: Dipl. Ing. (FH) Armin von Collrepp
Commercial Registry:
	Amtsgericht Chemnitz, HRB 28082; USt.-Id Nr. DE150534010

  parent reply	other threads:[~2015-07-20  7:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17 10:38 [PATCH v10 1/5] drm/layerscape: Add Freescale DCU DRM driver Jianwei Wang
2015-07-17 10:39 ` [PATCH v10 2/5] devicetree: Add NEC to the vendor-prefix list Jianwei Wang
2015-07-17 10:39 ` [PATCH v10 3/5] drm/panel: simple: Add support for NEC NL4827HC19-05B 480x272 panel Jianwei Wang
2015-07-17 10:39 ` [PATCH v10 4/5] arm/dts/ls1021a: Add DCU dts node Jianwei Wang
2015-07-17 10:39 ` [PATCH v10 5/5] arm/dts/ls1021a: Add a TFT LCD panel " Jianwei Wang
2015-07-20  7:18 ` Alexander Stein [this message]
2015-07-20  9:58   ` [PATCH v10 1/5] drm/layerscape: Add Freescale DCU DRM driver jianwei wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2160582.6fH0nmeH2v@ws-stein \
    --to=alexander.stein@systec-electronic.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox