Skip to content

Commit

Permalink
agp/sis: Clear bit 2 from aperture size byte as well
Browse files Browse the repository at this point in the history
SiS M650 has aperture size byte 0x44

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Stuart Bennett authored and Dave Airlie committed Feb 19, 2008
1 parent 9a4c854 commit b7d0640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/agp/sis-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ static int sis_fetch_size(void)
values = A_SIZE_8(agp_bridge->driver->aperture_sizes);
for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) {
if ((temp_size == values[i].size_value) ||
((temp_size & ~(0x03)) ==
(values[i].size_value & ~(0x03)))) {
((temp_size & ~(0x07)) ==
(values[i].size_value & ~(0x07)))) {
agp_bridge->previous_size =
agp_bridge->current_size = (void *) (values + i);

Expand Down

0 comments on commit b7d0640

Please sign in to comment.