On Tue, Oct 24, 2017 at 11:37:57AM -0600, Jason Gunthorpe wrote:
> On Tue, Oct 24, 2017 at 10:02:00AM -0700, Dmitry Torokhov wrote:
> > tpm-rng is abomination that should be kicked out as soon as possible.
> > It wrecks havoc with the power management (TPM chip drivers may go
&
On Tue, Oct 24, 2017 at 9:11 AM, Jason Gunthorpe
wrote:
> On Tue, Oct 24, 2017 at 09:37:33PM +0530, PrasannaKumar Muralidharan wrote:
>> Hi Jason,
>>
>> On 24 October 2017 at 21:25, Jason Gunthorpe
>> wrote:
>> > On Tue, Oct 24,
On Tue, Sep 26, 2017 at 02:36:57AM -0400, Pankaj Gupta wrote:
>
> >
> > A bit late to a party, but:
> >
> > On Mon, Dec 8, 2014 at 12:50 AM, Amos Kong wrote:
> > > From: Rusty Russell
> > >
> > > There's currently a big lock around everything, and it
A bit late to a party, but:
On Mon, Dec 8, 2014 at 12:50 AM, Amos Kong wrote:
> From: Rusty Russell
>
> There's currently a big lock around everything, and it means that we
> can't query sysfs (eg /sys/devices/virtual/misc/hw_random/rng_current)
> while
This allows us to get rid of remove() method.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/exynos-rng.c | 12 +---
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/drivers/char/hw_random/exynos-rng.c
b/drivers/char/hw_random/exynos
Instead of using static hwrng structure that is reused between
binds/unbinds of the device let's embed it into driver's private
structure that we allocate. This way we are guaranteed not to stumble
onto something left from previous bind attempt.
Signed-off-by: Dmitry Torokhov dmitry.torok
() and move clock enabling/disabling into hwrnd
inti(0 and cleanup() methods so the clock stays off until rng is
used.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/bcm63xx-rng.c | 87 +---
1 file changed, 31 insertions(+), 56 deletions
This allows us to get rid of driver's remove() method.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/iproc-rng200.c | 15 +--
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/drivers/char/hw_random/iproc-rng200.c
b/drivers/char
This allows us to get rid of remove() method.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/msm-rng.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/char/hw_random/msm-rng.c b/drivers/char/hw_random/msm-rng.c
index
This change adds devm_hwrng_register and devm_hwrng_unregister which
use can simplify error unwinding and unbinding code paths in device
drivers.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/core.c | 42 ++
include
A few drivers can benefit from devm-style interface for hwrng since it
is quite often the last thing that isn't automatically managed. Using
devm_hwrng_register() in such drivers allows get rid of manual error
unwinding and drivers' remove() methods.
I tested changes to iproc-rng200, the rest are
Hi Herbert,
On Wed, Mar 11, 2015 at 09:59:57PM +1100, Herbert Xu wrote:
On Mon, Mar 09, 2015 at 10:36:36AM -0700, Dmitry Torokhov wrote:
Instead of using #ifdefs let's mark suspend and resume methods as
__maybe_unused which will suppress compiler warnings about them being
unused
omap_rng_suspend nor omap_rng_resume
will end up being referenced and the change will not result in
increasing image size.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/omap-rng.c | 15 +++
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers
On Thu, Mar 12, 2015 at 08:00:35AM +1100, Herbert Xu wrote:
On Wed, Mar 11, 2015 at 08:44:07AM -0700, Dmitry Torokhov wrote:
SIMPLE_DEV_PM_OPS() produces an empty omap_rng_pm structure in case of
!CONFIG_PM_SLEEP so neither omap_rng_suspend nor omap_rng_resume will
end up being
-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/omap-rng.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/hw_random/omap-rng.c
b/drivers/char/hw_random/omap-rng.c
index d14dcf7..7f3597d 100644
--- a/drivers/char/hw_random/omap-rng.c
+++ b
Instead of using #ifdefs let's mark suspend and resume methods as
__maybe_unused which will suppress compiler warnings about them being
unused and provide better compile coverage. This will not increase image
size.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char
-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/octeon-rng.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/hw_random/octeon-rng.c
b/drivers/char/hw_random/octeon-rng.c
index be1c3f6..6234a4a 100644
--- a/drivers/char/hw_random/octeon-rng.c
() methods should not be marked __init unless
platform_driver_probe() is used.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/char/hw_random/pseries-rng.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/hw_random/pseries-rng.c
b/drivers
PCI bus is hot-pluggable, and even if it wasn't one can still unbind the
device from driver via sysfs, so we should not make driver's remove
method as __exit.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 2 +-
1 file changed, 1
attributes.
Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com
---
drivers/crypto/amcc/crypto4xx_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/crypto/amcc/crypto4xx_core.c
b/drivers/crypto/amcc/crypto4xx_core.c
index d02b771..3b28e8c 100644
20 matches
Mail list logo