<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/via, branch linux-2.6.36.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.36.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-12-09T21:32:38Z</updated>
<entry>
<title>viafb: use proper register for colour when doing fill ops</title>
<updated>2010-12-09T21:32:38Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-09-22T02:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c01412aa4398735a9746d9e7760efad52f7966c8'/>
<id>urn:sha1:c01412aa4398735a9746d9e7760efad52f7966c8</id>
<content type='text'>
commit efd4f6398dc92b5bf392670df862f42a19f34cf2 upstream.

The colour was written to a wrong register for fillrect operations.
This sometimes caused empty console space (for example after 'clear')
to have a different colour than desired. Fix this by writing to the
correct register.
Many thanks to Daniel Drake and Jon Nettleton for pointing out this
issue and pointing me in the right direction for the fix.

Fixes http://dev.laptop.org/ticket/9323

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
Cc: Daniel Drake &lt;dsd@laptop.org&gt;
Cc: Jon Nettleton &lt;jon.nettleton@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>viafb: fix i2c_transfer error handling</title>
<updated>2010-12-09T21:32:15Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-09-17T01:16:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed2ee7b151daf20d04cc656069c7196f6163d0dd'/>
<id>urn:sha1:ed2ee7b151daf20d04cc656069c7196f6163d0dd</id>
<content type='text'>
commit 85c5702ac046b14713f776d59768252d8ed8018f upstream.

i2c_transfer returns negative errno on error and number of messages
processed on success. Just returning this value would give a poor
interface as it is not obvious that you must compare with 2 after reading
1 or n bytes and with 1 after writing 1 byte to determine if it was
successful. To avoid this error prone interface convert the error code
of a successful read/write to zero and all other non-negative values to
an negative error code.
This fixes a regression introduced by
	via: Rationalize vt1636 detection
which resulted in no longer detecting a VT1636 chip and therefore has
broken the output in configurations which contain this chip.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Acked-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>drivers/video/via/ioctl.c: prevent reading uninitialized stack memory</title>
<updated>2010-09-15T23:43:53Z</updated>
<author>
<name>Dan Rosenberg</name>
</author>
<published>2010-09-15T23:08:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4aaa78f4c2f9cde2f335b14f4ca30b01f9651ca'/>
<id>urn:sha1:b4aaa78f4c2f9cde2f335b14f4ca30b01f9651ca</id>
<content type='text'>
The VIAFB_GET_INFO device ioctl allows unprivileged users to read 246
bytes of uninitialized stack memory, because the "reserved" member of
the viafb_ioctl_info struct declared on the stack is not altered or
zeroed before being copied back to the user.  This patch takes care of
it.

Signed-off-by: Dan Rosenberg &lt;dan.j.rosenberg@gmail.com&gt;
Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
</content>
</entry>
<entry>
<title>drivers/video/via/via-gpio.c: fix warning</title>
<updated>2010-08-05T22:36:27Z</updated>
<author>
<name>Andrew Morton</name>
</author>
<published>2010-06-29T21:09:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f27098379b1dbfedae99e5b86e10529f799d4071'/>
<id>urn:sha1:f27098379b1dbfedae99e5b86e10529f799d4071</id>
<content type='text'>
drivers/video/via/via-gpio.c: In function 'viafb_gpio_probe':
drivers/video/via/via-gpio.c:216: warning: assignment from incompatible pointer type

Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
Cc: Scott Fang &lt;ScottFang@viatech.com.cn&gt;
Cc: Jonathan Corbet &lt;corbet@lwn.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
</content>
</entry>
<entry>
<title>fbdev: section cleanup in viafb driver</title>
<updated>2010-08-05T21:58:15Z</updated>
<author>
<name>Henrik Kretzschmar</name>
</author>
<published>2010-06-17T10:01:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eca9c47bd3120d3643b83dce09b0cf49fdd73d1a'/>
<id>urn:sha1:eca9c47bd3120d3643b83dce09b0cf49fdd73d1a</id>
<content type='text'>
This patch moves two functions from .devexit to .text,
which are called on the probe error path.
Also a function which is called by probe is moved
from .text to .devinit.

WARNING: vmlinux.o(.devinit.text+0x2ca5): Section mismatch in reference
from the function via_pci_probe() to the function
devexit.text:via_teardown_subdevs()
The function __devinit via_pci_probe() references
a function __devexit via_teardown_subdevs().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
via_teardown_subdevs() so it may be used outside an exit section.

WARNING: vmlinux.o(.devinit.text+0x2cb1): Section mismatch in reference
from the function via_pci_probe() to the function
devexit.text:via_pci_teardown_mmio()
The function __devinit via_pci_probe() references
a function __devexit via_pci_teardown_mmio().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
via_pci_teardown_mmio() so it may be used outside an exit section.

Signed-off-by: Henrik Kretzschmar &lt;henne@nachtwindheim.de&gt;
Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
</content>
</entry>
<entry>
<title>viafb: fix accel_flags check_var bug</title>
<updated>2010-07-23T14:46:11Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-07-23T11:32:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af29a5b1781bf642a29b5e9bb6162dccfcd626df'/>
<id>urn:sha1:af29a5b1781bf642a29b5e9bb6162dccfcd626df</id>
<content type='text'>
viafb: fix accel_flags check_var bug

In check_var we should check and modify the var given and not the
one which is currently active. So this code was obviously wrong.
Probably this was doing no harm because all acceleration functions
also check whether acceleration is possible. (otherwise I would
expect this to lead to a null pointer dereference)

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
</content>
</entry>
<entry>
<title>viafb: probe cleanups</title>
<updated>2010-07-23T14:44:52Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-07-13T19:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd5899551c48dff5fe05914fc187932111091953'/>
<id>urn:sha1:cd5899551c48dff5fe05914fc187932111091953</id>
<content type='text'>
viafb: probe cleanups

Removal of strange special cases that must not exist as well as a
useless check.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
</content>
</entry>
<entry>
<title>viafb: remove ioctls which break the framebuffer interface</title>
<updated>2010-07-23T14:43:05Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-07-13T19:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=45f85f4a01b6215a9d75008d0a999cb7795680a3'/>
<id>urn:sha1:45f85f4a01b6215a9d75008d0a999cb7795680a3</id>
<content type='text'>
viafb: remove ioctls which break the framebuffer interface

The ioctls VIAFB_SET_DEVICE, VIAFB_SET_DEVICE_INFO and
VIAFB_SET_SECOND_MODE are removed because they prevent a clean
framebuffer driver because they modify the hardware and/or the
internal structures.
There are no known applications using these ioctls so no breakage is
expected. Additionaly the main functionality was duplicating the
framebuffer interface so there really should not exist any user.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
</content>
</entry>
<entry>
<title>viafb: update fix before calculating depth</title>
<updated>2010-07-23T14:41:06Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-07-13T17:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65123c68d16257e7d21b742e9d80df947c891a6d'/>
<id>urn:sha1:65123c68d16257e7d21b742e9d80df947c891a6d</id>
<content type='text'>
viafb: update fix before calculating depth

As the depth calculation depends on information in fix it is saner to
do the update first.
No runtime change expected as the value visual in fix used never
changes to MONO.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
</content>
</entry>
<entry>
<title>viafb: PLL value cleanup</title>
<updated>2010-07-23T14:37:05Z</updated>
<author>
<name>Florian Tobias Schandinat</name>
</author>
<published>2010-07-11T00:57:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f844350909fe249cf6d9722da1735e4076ff7f0'/>
<id>urn:sha1:1f844350909fe249cf6d9722da1735e4076ff7f0</id>
<content type='text'>
viafb: PLL value cleanup

This is a big change of how PLL values are handled on the road to
dynamic PLL value generation. The table was converted automatically in
the relevant parameters for frequency generation. Sadly there were some
bits set whose meaning is unknown. Those differences are documented
but ignored as the unichrome code implies that they are not important
(a big thanks to Luc for his amazing work).
The PLL values for 31490000 and 133308000 are deleted as they were more
than 5% off and not used anyway. The values for CX700@60466000 and
VX855@153920000 are corrected as they were wrong and easily correctable
as enough correct values was available because CX700 and VX855 support
the same values only with a little difference in hardware format.
All remaining values are not more than 2% off.
Additionally the surrounding code is changed as needed especially the
byte order of the values written to hardware to allow nicer conversion
functions.
This is mostly a change preparing for dynamic PLL generation and the two
corrected values aside no runtime change is expected.

Signed-off-by: Florian Tobias Schandinat &lt;FlorianSchandinat@gmx.de&gt;
Cc: Joseph Chan &lt;JosephChan@via.com.tw&gt;
</content>
</entry>
</feed>
