svn commit: r299155 - head/sys/mips/mediatek
Stanislav Galabov
sgalabov at FreeBSD.org
Fri May 6 05:24:12 UTC 2016
Author: sgalabov
Date: Fri May 6 05:24:10 2016
New Revision: 299155
URL: https://svnweb.freebsd.org/changeset/base/299155
Log:
mtk_spi cleanup commented printfs
Approved by: adrian (mentor)
Sponsored by: Smartcom - Bulgaria AD
Differential Revision: https://reviews.freebsd.org/D6223
Modified:
head/sys/mips/mediatek/mtk_spi_v1.c
head/sys/mips/mediatek/mtk_spi_v2.c
Modified: head/sys/mips/mediatek/mtk_spi_v1.c
==============================================================================
--- head/sys/mips/mediatek/mtk_spi_v1.c Fri May 6 05:22:25 2016 (r299154)
+++ head/sys/mips/mediatek/mtk_spi_v1.c Fri May 6 05:24:10 2016 (r299155)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
#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 @@ mtk_spi_detach(device_t dev)
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 @@ mtk_spi_chip_activate(struct mtk_spi_sof
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 @@ mtk_spi_txrx(struct mtk_spi_softc *sc, u
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);
}
Modified: head/sys/mips/mediatek/mtk_spi_v2.c
==============================================================================
--- head/sys/mips/mediatek/mtk_spi_v2.c Fri May 6 05:22:25 2016 (r299154)
+++ head/sys/mips/mediatek/mtk_spi_v2.c Fri May 6 05:24:10 2016 (r299155)
@@ -43,7 +43,6 @@ __FBSDID("$FreeBSD$");
#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 @@ mtk_spi_detach(device_t dev)
{
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 @@ mtk_spi_detach(device_t dev)
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 @@ mtk_spi_chip_activate(struct mtk_spi_sof
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 @@ mtk_spi_wait(struct mtk_spi_softc *sc)
break;
}
if (i == 0) {
- //printf("busy\n");
return (1);
}
More information about the svn-src-all
mailing list