All pastes #967547 Raw Edit

Stuff

public c v1 · immutable
·published 2008-04-02 14:23 UTC
rendered paste body
	switch (dev->divisor) {	case vlynq_div_auto:		/* Only try locally supplied clock, others cause problems */		vlynq_reg_write(dev->remote->control, 0);		for (i = vlynq_ldiv2; i <= vlynq_ldiv8; i++) {			vlynq_reg_write(dev->local->control,					VLYNQ_CTRL_CLOCK_INT |					VLYNQ_CTRL_CLOCK_DIV(i - vlynq_ldiv1));			if (vlynq_linked(dev)) {				printk(KERN_DEBUG				       "%s: using local clock divisor %d\n",				       dev->dev.bus_id, i - vlynq_ldiv1 + 1);				dev->divisor = i;				return 0;			}		}