lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F2F6B40.6070308@st.com>
Date:	Mon, 6 Feb 2012 11:25:12 +0530
From:	Viresh Kumar <viresh.kumar@...com>
To:	<pavel@....cz>, "Rafael J. Wysocki" <rjw@...k.pl>,
	<len.brown@...el.com>
Cc:	"linux-pm@...ts.linux-foundation.org" 
	<linux-pm@...ts.linux-foundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Shiraz HASHIM <shiraz.hashim@...com>,
	Armando VISCONTI <armando.visconti@...com>,
	Vipin KUMAR <vipin.kumar@...com>,
	deepak sikri <deepak.sikri@...com>,
	Vipul Kumar SAMAR <vipulkumar.samar@...com>,
	Amit VIRDI <amit.virdi@...com>,
	Rajeev KUMAR <rajeev-dlh.kumar@...com>,
	Pratyush ANAND <pratyush.anand@...com>,
	Mirko GARDI <mirko.gardi@...com>,
	Vincenzo FRASCINO <Vincenzo.FRASCINO@...com>,
	Bhupesh SHARMA <bhupesh.sharma@...com>
Subject: Query: When will drv->poweroff() called


Hi Guys,

Sorry for asking this silly question, but i couldn't locate much
help for it in documentation, so asking it.

We were testing hibernation for SPEAr13xx SoC family, based on
ARM Cortex a9.

I observed that poweroff() callback of individual drivers are not
getting called at all, while we test hibernate.

I tried to go through the code to see what happened. It looked like
there should be call to hibernation_set_ops() for platforms that are
willing to get a call to poweroff() for their drivers. Otherwise
shutdown of the busses gets called, which is a completely different path.

There are many drivers today, that are registering poweroff() from dev_pm_ops
but are not doing bus specific shutdown stuff.

Even i tried to look for hibernation_set_ops() in kernel, and only acpi
code is calling it. I didn't understood how other ARM Sub-Arch's are handling
this.

Thanks in advance :)

-- 
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ