Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153077434
D6223.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D6223.id.diff
View Options
Index: head/sys/mips/mediatek/mtk_spi_v1.c
===================================================================
--- head/sys/mips/mediatek/mtk_spi_v1.c
+++ head/sys/mips/mediatek/mtk_spi_v1.c
@@ -42,7 +42,6 @@
#include <machine/bus.h>
#include <machine/cpu.h>
-//#include <machine/pmap.h>
#include <dev/spibus/spi.h>
#include <dev/spibus/spibusvar.h>
@@ -166,7 +165,6 @@
static void
mtk_spi_chip_activate(struct mtk_spi_softc *sc)
{
-// printf("%s\n", __func__);
mtk_spi_wait(sc);
/*
* Put all CSx to low
@@ -177,7 +175,6 @@
static void
mtk_spi_chip_deactivate(struct mtk_spi_softc *sc)
{
-// printf("%s\n", __func__);
mtk_spi_wait(sc);
/*
* Put all CSx to high
@@ -212,14 +209,12 @@
if (write == MTK_SPI_WRITE) {
SPI_WRITE(sc, MTK_SPIDATA, *data);
SPI_SET_BITS(sc, MTK_SPICTL, START_WRITE);
- //printf("%s(W:%d)\n", __func__, *data);
} else {/* MTK_SPI_READ */
SPI_SET_BITS(sc, MTK_SPICTL, START_READ);
if (mtk_spi_wait(sc))
return (EBUSY);
*data = SPI_READ(sc, MTK_SPIDATA) & 0xff;
- //printf("%s(R:%d)\n", __func__, *data);
}
return (0);
}
Index: head/sys/mips/mediatek/mtk_spi_v2.c
===================================================================
--- head/sys/mips/mediatek/mtk_spi_v2.c
+++ head/sys/mips/mediatek/mtk_spi_v2.c
@@ -43,7 +43,6 @@
#include <machine/bus.h>
#include <machine/cpu.h>
-//#include <machine/pmap.h>
#include <dev/spibus/spi.h>
#include <dev/spibus/spibusvar.h>
@@ -157,8 +156,6 @@
{
struct mtk_spi_softc *sc = device_get_softc(dev);
- //SPI_SET_BITS(sc, MTK_SPICTL, HIZSMOSI | CS_HIGH);
-
if (sc->sc_mem_res)
bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_mem_res);
@@ -168,7 +165,6 @@
static void
mtk_spi_chip_activate(struct mtk_spi_softc *sc)
{
-// printf("%s\n", __func__);
mtk_spi_wait(sc);
/*
* Put all CSx to low
@@ -179,7 +175,6 @@
static void
mtk_spi_chip_deactivate(struct mtk_spi_softc *sc)
{
-// printf("%s\n", __func__);
mtk_spi_wait(sc);
/*
* Put all CSx to high
@@ -197,7 +192,6 @@
break;
}
if (i == 0) {
- //printf("busy\n");
return (1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 11:57 PM (4 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31809716
Default Alt Text
D6223.id.diff (2 KB)
Attached To
Mode
D6223: mtk_spi cleanup commented printfs
Attached
Detach File
Event Timeline
Log In to Comment