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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 28 Apr 2016 08:23:26 +0100
From:	Lee Jones <lee.jones@...aro.org>
To:	Laxman Dewangan <ldewangan@...dia.com>
Cc:	linus.walleij@...aro.org, robh+dt@...nel.org, mark.rutland@....com,
	gnurou@...il.com, linux-kernel@...r.kernel.org,
	linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
	ijc+devicetree@...lion.org.uk, swarren@...dia.com,
	treding@...dia.com, Mallikarjun Kasoju <mkasoju@...dia.com>
Subject: Re: [PATCH V10 2/6] mfd: max77620: add core driver for
 MAX77620/MAX20024

On Thu, 28 Apr 2016, Laxman Dewangan wrote:

> 
> On Wednesday 27 April 2016 08:49 PM, Lee Jones wrote:
> >On Wed, 30 Mar 2016, Laxman Dewangan wrote:
> >
> >
> >What are 20 and 40?  I think you're going to need a comment to
> >describe what's going on in this function.
> >
> >>+	int x, i;
> >>+
> >>+	for (i = 0; i < 0x7; i++) {
> >It's unsual to use hex values like this.
> >
> >I think it should be defined.
> >
> >>+		x = base_fps_time * BIT(i);
> >20 * (1 << {0..7})
> >
> >So ...
> >
> >20 * (1, 2, 4, 8, etc)
> >
> >What does that does that doe exactly?
> >
> >>+		if (x >= tperiod)
> >>+			return i;
> >>+	}
> >>+
> >>+	return i;
> >>+}
> >>+
> >>+static int max77620_config_fps(struct max77620_chip *chip,
> >>+			       struct device_node *fps_np)
> >Lots of mention of 'FPS' here, but noting to so what that is?
> >
> >What does FPS stand for and what does the FPS do?
> >
> 
> The chip support here the Flexible Power Sequence period (FPS period) as
> 40, 80, 160, 320, 640, 1280, 2560 and 5120 microseconds (for max77620)
> 20, 40, 80, 160, 320, 640, 1280, 2560  microseconds (for max77620)
> 
> There is 3 bits in registers which defined as
> 000: 40us for max77620, 20us for max20024
> 001: 80us for max77620, 40us for max20024
> 010: 160us for max77620, 80us for max20024.
> ::
> 
> From DT, I am getting the FPS period time as above and this loop is finding
> equivalent bit value (0 to 7) from period.
> 
> The min fps time is 40us for MAX77620 and 20us for MAX20024.

Great info.  So if you can add this into the section where you handle
the FPS, that'd be grand.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ