Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/mmc/host/bcm2835-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ static void bcm2835_mmc_set_clock(struct bcm2835_host *host, unsigned int clock)
unsigned long timeout;
unsigned int input_clock = clock;

if (host->overclock_50 && (clock == 50000000))
if (host->overclock_50 && (clock >= 50000000))
clock = host->overclock_50 * 1000000 + 999999;

host->mmc->actual_clock = 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/bcm2835-sdhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ static void bcm2835_sdhost_set_clock(struct bcm2835_host *host, unsigned int clo
if (host->debug)
pr_info("%s: set_clock(%d)\n", mmc_hostname(host->mmc), clock);

if (host->overclock_50 && (clock == 50*MHZ))
if (host->overclock_50 && (clock >= 50*MHZ))
clock = host->overclock_50 * MHZ + (MHZ - 1);

/* The SDCDIV register has 11 bits, and holds (div - 2).
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ static void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
const unsigned int MHZ = 1000000;
int div;

if (host->overclock_50 && (clock == 50*MHZ))
if (host->overclock_50 && (clock >= 50*MHZ))
clock = host->overclock_50 * MHZ + (MHZ - 1);

/* The SDCDIV register has 11 bits, and holds (div - 2). But
Expand Down