Date: Wed, 15 Mar 2017 21:01:03 +0000 (UTC) From: Michael Zhilin <mizhka@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315329 - in stable/11/sys/dev: gpio spibus Message-ID: <201703152101.v2FL13QS045014@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mizhka Date: Wed Mar 15 21:01:03 2017 New Revision: 315329 URL: https://svnweb.freebsd.org/changeset/base/315329 Log: MFC r310017-r310018 r310017: [spi] reformat message and ar5315_spi minor fix This commit corrects print of nomatch (newline was too early) and fix unit number for new child in ar5315_spi (was 0, now is -1 to calculate it according to actual system state) Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: ray, loos, mizhka MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8749 r310018: [gpiospi] add clock delay to avoid smashing of bits Submitted by: Hiroki Mori <yamori83@yahoo.co.jp> Reviewed by: loos, ray, mizhka MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D8749 Modified: stable/11/sys/dev/gpio/gpiospi.c stable/11/sys/dev/spibus/spibus.c Modified: stable/11/sys/dev/gpio/gpiospi.c ============================================================================== --- stable/11/sys/dev/gpio/gpiospi.c Wed Mar 15 19:50:58 2017 (r315328) +++ stable/11/sys/dev/gpio/gpiospi.c Wed Mar 15 21:01:03 2017 (r315329) @@ -293,6 +293,7 @@ gpio_spi_txrx(struct gpio_spi_softc *sc, gpio_delay(sc); GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->sc_sclk, 1); + gpio_delay(sc); } else { /* If mode 0 or 3 */ @@ -312,6 +313,7 @@ gpio_spi_txrx(struct gpio_spi_softc *sc, gpio_delay(sc); GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->sc_sclk, 0); + gpio_delay(sc); } } Modified: stable/11/sys/dev/spibus/spibus.c ============================================================================== --- stable/11/sys/dev/spibus/spibus.c Wed Mar 15 19:50:58 2017 (r315328) +++ stable/11/sys/dev/spibus/spibus.c Wed Mar 15 21:01:03 2017 (r315329) @@ -116,9 +116,8 @@ spibus_probe_nomatch(device_t bus, devic { struct spibus_ivar *devi = SPIBUS_IVAR(child); - device_printf(bus, "<unknown card>"); - printf(" at cs %d\n", devi->cs); - printf(" mode %d", devi->mode); + device_printf(bus, "<unknown card> at cs %d mode %d\n", devi->cs, + devi->mode); return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703152101.v2FL13QS045014>