lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 24 Feb 2017 00:41:38 +0300
From:   Alexey Khoroshilov <>
To:     Kamil Debski <>,
        Mauro Carvalho Chehab <>,
        Greg Kroah-Hartman <>,
        Hans Verkuil <>,
        Sylwester Nawrocki <>
Cc:     Alexey Khoroshilov <>,,,,
Subject: [media] s5p-cec: strange clk enabling pattern

The s5p-cec driver has a few places that touch hdmicec clk:

static int s5p_cec_probe(struct platform_device *pdev)
	cec->clk = devm_clk_get(dev, "hdmicec");
	if (IS_ERR(cec->clk))
		return PTR_ERR(cec->clk);

static int __maybe_unused s5p_cec_runtime_suspend(struct device *dev)
	struct s5p_cec_dev *cec = dev_get_drvdata(dev);

	return 0;

static int __maybe_unused s5p_cec_runtime_resume(struct device *dev)
	struct s5p_cec_dev *cec = dev_get_drvdata(dev);
	int ret;

	ret = clk_prepare_enable(cec->clk);
	if (ret < 0)
		return ret;
	return 0;

Is it ok to enable/disable clock in rusume/suspend only?
Or have I missed anything?

Thank you,
Alexey Khoroshilov
Linux Verification Center, ISPRAS

Powered by blists - more mailing lists