Re: mgag200: Wrong looking code in mga_probe_vram

2017-10-19 Thread Mathieu Larouche
On 11/10/2017 5:27 AM, Michal Srb wrote: Hi, While reading the mgag200 driver I noticed something that looks wrong. In mgag200_main.c mga_probe_vram function: orig1 = ioread8(mem + offset); orig2 = ioread8(mem + offset + 0x100); ... iowrite16(orig1, mem + offset); io

mgag200: Wrong looking code in mga_probe_vram

2017-10-11 Thread Michal Srb
Hi, While reading the mgag200 driver I noticed something that looks wrong. In mgag200_main.c mga_probe_vram function: orig1 = ioread8(mem + offset); orig2 = ioread8(mem + offset + 0x100); ... iowrite16(orig1, mem + offset); iowrite16(orig2, mem + offset + 0x100); I do not