[U-Boot] spi: cf_spi: Question about checking (dspi->sr & 0x0000F000) witch magic number 4

14 Jun
2013
14 Jun
'13
6:55 p.m.
Hi, While reading the code in cfspi_tx(): while ((dspi->sr & 0x0000F000) >= 4) ;
I don't see the point of checking "(dspi->sr & 0x0000F000) >= 4)".
I'm wondering if it should be while ((dspi->sr & 0x0000F000) >> 12) >= 4) ; or simply while (dspi->sr & 0x0000F000) ;
Current code actually has the same effect as "while (dspi->sr & 0x0000F000) ;".
comments?
Axel
4346
Age (days ago)
4346
Last active (days ago)
0 comments
1 participants
participants (1)
-
Axel Lin