[PATCH RESEND] drm: use .hword to represent 16-bit numbers

2017-03-29 Thread Javi Merino
they should work in spite of the default target of the cc you are using, so use .hword where EDID specifies 16-bit numbers. Cc: Carsten Emde <c.e...@osadl.org> Cc: David Airlie <airl...@linux.ie> Signed-off-by: Javi Merino <javi.mer...@kernel.org> --- Documentation/EDID/edid.S

Re: [PATCH 0/2] Documentation/EDID fixes

2017-03-07 Thread Javi Merino
On Tue, Mar 07, 2017 at 06:16:51PM +0200, Jani Nikula wrote: > On Mon, 06 Mar 2017, Javi Merino <javi.mer...@kernel.org> wrote: > > I found these two minor issues while building an EDID. I'm not sure > > whether the second patch (Add O= to support) is upstream material

[PATCH 0/2] Documentation/EDID fixes

2017-03-06 Thread Javi Merino
Hi, I found these two minor issues while building an EDID. I'm not sure whether the second patch (Add O= to support) is upstream material, but I'm sending it just in case. Thanks, Javi Javi Merino (2): drm: use .hword to represent 16-bit numbers drm: Add O= support Documentation/EDID

[PATCH 2/2] drm: Add O= support

2017-03-06 Thread Javi Merino
Add an option to put all output files in a given directory, similar to what kbuild does. Cc: Carsten Emde <c.e...@osadl.org> Cc: David Airlie <airl...@linux.ie> Signed-off-by: Javi Merino <javi.mer...@kernel.org> --- Documentation/EDID/Makefile | 21 -

[PATCH 1/2] drm: use .hword to represent 16-bit numbers

2017-03-06 Thread Javi Merino
they should work in spite of the default target of the cc you are using, so use .hword where EDID specifies 16-bit numbers. Cc: Carsten Emde <c.e...@osadl.org> Cc: David Airlie <airl...@linux.ie> Signed-off-by: Javi Merino <javi.mer...@kernel.org> --- Documentation/EDID/edid.S

[PATCH v2 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mauro Carvalho Chehab Acked-by: Antti Palosaari Reviewed-by: Antti Palosaari Signed-off-by: Javi Merino --- drivers/media/dvb-frontends/cxd2820r_c.c| 2 +- drivers/media/dvb

[PATCH v2 3/4] cpuidle: menu: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: "Rafael J. Wysocki" Cc: Mel Gorman Cc: Stephen Hemminger Signed-off-by: Javi Merino --- drivers/cpuidle/governors/menu.c | 8 +--- 1 file changed, 1 inser

[PATCH v2 2/4] clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mike Turquette Cc: Stephen Boyd Cc: Alex Elder Signed-off-by: Javi Merino --- drivers/clk/bcm/clk-kona.c | 28 +++- drivers/clk/bcm/clk-kona.h | 1 - 2

[PATCH v2 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-24 Thread Javi Merino
We have grown a number of different implementations of DIV_ROUND_CLOSEST_ULL throughout the kernel. Move the i915 one to kernel.h so that it can be reused. Cc: Jani Nikula Cc: David Airlie Cc: Guenter Roeck Cc: Andrew Morton Acked-by: Daniel Vetter Signed-off-by: Javi Merino --- drivers

[PATCH v2 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-24 Thread Javi Merino
of the one in kernel.h Changes since v1: - inlcude linux/kernel.h in drivers/gpu/drm/i915/intel_panel.c instead of drivers/gpu/drm/i915/intel_drv.h as Emil Velikov suggests - Avoid evaluating 'divisor' twice Javi Merino (4): kernel.h: Implement DIV_ROUND_CLOSEST_ULL clk: bcm/kona: use

[PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-24 Thread Javi Merino
On Mon, Mar 23, 2015 at 05:04:16PM +, Javi Merino wrote: > On Mon, Mar 23, 2015 at 12:34:04PM +, Jeff Epler wrote: > > On Fri, Mar 20, 2015 at 11:14:40AM +0000, Javi Merino wrote: > > > +/* > > > + * Same as above but for u64 dividends. divisor must b

[PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-23 Thread Javi Merino
On Mon, Mar 23, 2015 at 12:34:04PM +, Jeff Epler wrote: > On Fri, Mar 20, 2015 at 11:14:40AM +0000, Javi Merino wrote: > > +/* > > + * Same as above but for u64 dividends. divisor must be a 32-bit > > + * number. > > + */ > > +#define

[PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-20 Thread Javi Merino
On Fri, Mar 20, 2015 at 06:19:26PM +, Emil Velikov wrote: > On 20 March 2015 at 11:14, Javi Merino wrote: > > We have grown a number of different implementations of > > DIV_ROUND_CLOSEST_ULL throughout the kernel. Move the i915 one to > > kernel.h so that it can be reuse

[PATCH 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
On Fri, Mar 20, 2015 at 01:51:36PM +, Alex Elder wrote: > On 03/20/2015 06:14 AM, Javi Merino wrote: > > Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal > > implementation and use the kernel one. > > > > Cc: Antti Palosaari > > Cc:

[PATCH 4/4] media: cxd2820r: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Antti Palosaari Cc: Mauro Carvalho Chehab Signed-off-by: Javi Merino --- I've only compile-tested it, I don't have the hardware to run it. drivers/media/dvb-frontends

[PATCH 3/4] cpuidle: menu: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: "Rafael J. Wysocki" Cc: Mel Gorman Cc: Stephen Hemminger Signed-off-by: Javi Merino --- drivers/cpuidle/governors/menu.c | 8 +--- 1 file changed, 1 inser

[PATCH 2/4] clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
Now that the kernel provides DIV_ROUND_CLOSEST_ULL(), drop the internal implementation and use the kernel one. Cc: Mike Turquette Cc: Stephen Boyd Cc: Alex Elder Signed-off-by: Javi Merino --- I've only compile-tested this, I don't have the hardware to test it. drivers/clk/bcm/clk-kona.c

[PATCH 1/4] kernel.h: Implement DIV_ROUND_CLOSEST_ULL

2015-03-20 Thread Javi Merino
We have grown a number of different implementations of DIV_ROUND_CLOSEST_ULL throughout the kernel. Move the i915 one to kernel.h so that it can be reused. Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: Darrick J. Wong Cc: Guenter Roeck Cc: Andrew Morton Signed-off-by: Javi Merino

[PATCH 0/4] Consolidate DIV_ROUND_CLOSEST_ULL()

2015-03-20 Thread Javi Merino
of the one in kernel.h Javi Merino (4): kernel.h: Implement DIV_ROUND_CLOSEST_ULL clk: bcm/kona: use DIV_ROUND_CLOSEST_ULL() cpuidle: menu: use DIV_ROUND_CLOSEST_ULL() media: cxd2820r: use DIV_ROUND_CLOSEST_ULL() drivers/clk/bcm/clk-kona.c | 28