svn commit: r274416 - head/usr.sbin/i2c

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 12 03:59:26 2014 New Revision: 274416 URL: https://svnweb.freebsd.org/changeset/base/274416 Log: Fix a few cases of use of uninitialized variables. Found with -Wall. MFC after:1 week Modified: head/usr.sbin/i2c/i2c.c Modified: head/usr.sbin/i2c/i2c.c

svn commit: r274415 - head/sys/arm/broadcom/bcm2835

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 12 03:07:46 2014 New Revision: 274415 URL: https://svnweb.freebsd.org/changeset/base/274415 Log: Fix the error checking, broken on r273337, to _not_ ignore controller errors. Without this fix you can't even scan the bus (all operations will always succeed).

svn commit: r274409 - head/sys/arm/broadcom/bcm2835

2014-11-11 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 11 23:55:37 2014 New Revision: 274409 URL: https://svnweb.freebsd.org/changeset/base/274409 Log: Since r273264 the SD card detection on Raspberry Pi is reliably working and that expose new bugs with HS mode. When the old code could not do the proper card detecti

Re: svn commit: r273917 - head/sys/dev/gpio

2014-11-01 Thread Luiz Otavio O Souza
On Sat, Nov 1, 2014 at 7:56 AM, Bjoern A. Zeeb wrote: > > On 31 Oct 2014, at 19:15 , Luiz Otavio O Souza wrote: > >> Author: loos >> Date: Fri Oct 31 19:15:14 2014 >> New Revision: 273917 >> URL: https://svnweb.freebsd.org/changeset/base/273917 >> >>

svn commit: r273926 - head/sys/dev/gpio

2014-11-01 Thread Luiz Otavio O Souza
Author: loos Date: Sat Nov 1 10:40:29 2014 New Revision: 273926 URL: https://svnweb.freebsd.org/changeset/base/273926 Log: Fix the build of non-FDT systems by moving the gpiobusvar.h header outside the FDT #ifdef. While here remove a few unused headers. Modified: head/sys/dev/gpio/gpi

svn commit: r273917 - head/sys/dev/gpio

2014-10-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Oct 31 19:15:14 2014 New Revision: 273917 URL: https://svnweb.freebsd.org/changeset/base/273917 Log: Fix the gpiobus locking by using a more sane model where it isn't necessary hold the gpiobus lock between the gpio calls. gpiobus_acquire_lock() now accepts a third

svn commit: r273799 - in head/sys: arm/allwinner arm/broadcom/bcm2835 arm/freescale/imx arm/freescale/vybrid arm/lpc arm/rockchip arm/samsung/exynos arm/ti arm/xilinx arm/xscale/ixp425 mips/atheros...

2014-10-28 Thread Luiz Otavio O Souza
Author: loos Date: Tue Oct 28 18:33:59 2014 New Revision: 273799 URL: https://svnweb.freebsd.org/changeset/base/273799 Log: Make the GPIO children attach to the first unit available and not only to unit 0. It seems that this 'simplification' was copied to all GPIO drivers in tree. Th

svn commit: r273610 - head/sys/arm/broadcom/bcm2835

2014-10-24 Thread Luiz Otavio O Souza
Author: loos Date: Fri Oct 24 22:06:21 2014 New Revision: 273610 URL: https://svnweb.freebsd.org/changeset/base/273610 Log: Add an iicbus_reset() method to bcm2835_bsc. While it is generally not used for kernel devices it is used by i2c(8). This fix the 'error: Device not configured' whe

svn commit: r273606 - head/sys/arm/ti/cpsw

2014-10-24 Thread Luiz Otavio O Souza
Author: loos Date: Fri Oct 24 21:08:02 2014 New Revision: 273606 URL: https://svnweb.freebsd.org/changeset/base/273606 Log: Fix cpsw_detach() to not panic when called from cpsw_attach(). For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY and fails to attach calling c

svn commit: r273599 - head/sys/arm/arm

2014-10-24 Thread Luiz Otavio O Souza
Author: loos Date: Fri Oct 24 19:18:39 2014 New Revision: 273599 URL: https://svnweb.freebsd.org/changeset/base/273599 Log: Fix a bug where DMA maps created with bus_dmamap_create() won't increment the map count and without being able to keep track of the current map allocation, bus_dma_tag_

svn commit: r273569 - head/sys/dev/gpio

2014-10-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Oct 23 23:20:04 2014 New Revision: 273569 URL: https://svnweb.freebsd.org/changeset/base/273569 Log: Move the duplicated code to a single function. No functional changes. Modified: head/sys/dev/gpio/gpiobus.c head/sys/dev/gpio/gpiobusvar.h head/sys/dev/gpio/ofw

svn commit: r273566 - head/sys/dev/gpio

2014-10-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Oct 23 23:12:30 2014 New Revision: 273566 URL: https://svnweb.freebsd.org/changeset/base/273566 Log: Provide a working GPIOBUS_IVAR() macro for FDT systems. Modified: head/sys/dev/gpio/gpiobusvar.h Modified: head/sys/dev/gpio/gpiobusvar.h ==

svn commit: r273546 - head/sys/dev/usb/net

2014-10-23 Thread Luiz Otavio O Souza
Author: loos Date: Thu Oct 23 13:47:19 2014 New Revision: 273546 URL: https://svnweb.freebsd.org/changeset/base/273546 Log: Fix a bug where some DTS layouts could cause the premature ending of the search (i.e. without returning any result) and you would end up with a random MAC address.

svn commit: r273337 - head/sys/arm/broadcom/bcm2835

2014-10-20 Thread Luiz Otavio O Souza
Author: loos Date: Mon Oct 20 18:04:20 2014 New Revision: 273337 URL: https://svnweb.freebsd.org/changeset/base/273337 Log: Fix the mtx_sleep() error checking, catch all errors and not only EWOULDBLOCK. Do not print any message at errors. The errors are properly sent to upper layers wh

svn commit: r273329 - head/sys/arm/broadcom/bcm2835

2014-10-20 Thread Luiz Otavio O Souza
Author: loos Date: Mon Oct 20 13:36:52 2014 New Revision: 273329 URL: https://svnweb.freebsd.org/changeset/base/273329 Log: Add another wakeup() after actually set the bus as free. This fix a race where the threads waiting for the bus would wake up early and still see bus as busy. Wh

svn commit: r273264 - head/sys/arm/broadcom/bcm2835

2014-10-18 Thread Luiz Otavio O Souza
Author: loos Date: Sat Oct 18 19:01:07 2014 New Revision: 273264 URL: https://svnweb.freebsd.org/changeset/base/273264 Log: Add a workaround needed to fix a bug of Arasan Host Controller where it may lose the contents of consecutive writes (that happens within two SD card clock cycles).

svn commit: r273263 - head/sys/arm/ti

2014-10-18 Thread Luiz Otavio O Souza
Author: loos Date: Sat Oct 18 18:27:24 2014 New Revision: 273263 URL: https://svnweb.freebsd.org/changeset/base/273263 Log: Fix the chan address for mtx_sleep() on bus wait. Without this fix the threads waiting for the bus would never wake. X-MFC-With: r270230 Modified: head/sys/arm/t

svn commit: r270230 - head/sys/arm/ti

2014-08-20 Thread Luiz Otavio O Souza
270230) @@ -1,6 +1,6 @@ /*- - * Copyright (c) 2011 - * Ben Gray . + * Copyright (c) 2011 Ben Gray . + * Copyright (c) 2014 Luiz Otavio O Souza . * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -58,9 +58,9 @@ __FBSDID("$FreeBSD$");

svn commit: r268301 - head/sbin/etherswitchcfg

2014-07-05 Thread Luiz Otavio O Souza
Author: loos Date: Sat Jul 5 20:16:02 2014 New Revision: 268301 URL: http://svnweb.freebsd.org/changeset/base/268301 Log: Check the number of returned entries before doing any access to ifm_ulist. Modified: head/sbin/etherswitchcfg/etherswitchcfg.c Modified: head/sbin/etherswitchcfg/ethersw

svn commit: r268294 - head/sys/dev/etherswitch/rtl8366

2014-07-05 Thread Luiz Otavio O Souza
Author: loos Date: Sat Jul 5 19:31:22 2014 New Revision: 268294 URL: http://svnweb.freebsd.org/changeset/base/268294 Log: Allow the PVID setting on CPU port. Return our static list of supported media for the CPU port. Tested on TP-Link 1043ND. Modified: head/sys/dev/etherswitch/rtl

svn commit: r268235 - head/sys/mips/atheros

2014-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 3 20:16:48 2014 New Revision: 268235 URL: http://svnweb.freebsd.org/changeset/base/268235 Log: Properly advertise that if_arge can handle long frames (if_arge is set to handle packets up to 1536 bytes) This fixes the need to frag that could happen when using vl

svn commit: r268233 - head/sys/dev/etherswitch/rtl8366

2014-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 3 19:50:50 2014 New Revision: 268233 URL: http://svnweb.freebsd.org/changeset/base/268233 Log: Initialize the switch vlan table at attachment. Update some comments on code, specifying the correct vlans used on switch setup. Advertise the proper switch oper

svn commit: r268094 - head/sys/dev/etherswitch/rtl8366

2014-07-01 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jul 1 14:49:46 2014 New Revision: 268094 URL: http://svnweb.freebsd.org/changeset/base/268094 Log: Fix the reported status for the switch CPU port which was (wrongly) reporting half-duplex link. Tested on TP-Link WR1043ND. Modified: head/sys/dev/etherswitch/rtl8

svn commit: r268093 - head/sys/dev/etherswitch/rtl8366

2014-07-01 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jul 1 14:33:48 2014 New Revision: 268093 URL: http://svnweb.freebsd.org/changeset/base/268093 Log: Add the CPU port flag to the CPU port on rtl8366 (port 5). Do not allow any media change on the switch CPU port. Tested on TP-Link WR1043ND. Modified: head/sys/

svn commit: r267971 - head/usr.sbin/bsnmpd/modules/snmp_lm75

2014-06-27 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jun 27 18:58:22 2014 New Revision: 267971 URL: http://svnweb.freebsd.org/changeset/base/267971 Log: Simplify the code a little bit using the update_sensor_sysctl() routine to retrieve the sensor temperature. This also avoid the overflow that could happen on sysctlna

svn commit: r267969 - head/usr.sbin/bsnmpd/modules/snmp_lm75

2014-06-27 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jun 27 18:40:14 2014 New Revision: 267969 URL: http://svnweb.freebsd.org/changeset/base/267969 Log: Correct the buffer length check to avoid overflows. Found with: Coverity Scan CID: 1222502, 1222503 Modified: head/usr.sbin/bsnmpd/modules/snmp_lm75/snm

svn commit: r267834 - head/share/man/man4

2014-06-24 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 24 19:42:37 2014 New Revision: 267834 URL: http://svnweb.freebsd.org/changeset/base/267834 Log: Clarify the expected usage of I2C 7-bit slave addresses on ioctl(2) interface. While here add the cross reference to iic(4) on iicbus(4). CR: D210 Su

svn commit: r267021 - in head/sys: arm/broadcom/bcm2835 arm/ti boot/fdt/dts/arm

2014-06-03 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 3 19:24:53 2014 New Revision: 267021 URL: http://svnweb.freebsd.org/changeset/base/267021 Log: FreeBSD, historically, has always used 8-bit addresses for i2c devices (7-bit device address << 1), always leaving the room for the read/write bit. This commit conver

svn commit: r267009 - head/sys/arm/ti

2014-06-03 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jun 3 14:46:50 2014 New Revision: 267009 URL: http://svnweb.freebsd.org/changeset/base/267009 Log: Remove the unnecessary i2c slave address assignment. The ti_i2c controller only works in the master mode and the i2c address passed on iicbus_reset() is used to set t

svn commit: r266961 - head/usr.sbin/bsnmpd/modules/snmp_lm75

2014-06-01 Thread Luiz Otavio O Souza
Author: loos Date: Mon Jun 2 02:20:28 2014 New Revision: 266961 URL: http://svnweb.freebsd.org/changeset/base/266961 Log: Never, ever, abbreviate the month names on manual pages. Pointed out by: brueffer Pointy hat to:loos Modified: head/usr.sbin/bsnmpd/modules/snmp_lm75

svn commit: r266960 - in head: share/man/man4/man4.arm sys/arm/ti

2014-06-01 Thread Luiz Otavio O Souza
UTHORS .An -nosplit The driver and this manual page was written by -.An Luiz Otavio O Souza Aq l...@freebsd.org +.An Luiz Otavio O Souza Aq l...@freebsd.org . Modified: head/sys/arm/ti/ti_adc.c == --- head/sys/arm/ti/ti_

svn commit: r266937 - head/sys/arm/ti/am335x

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sun Jun 1 03:57:57 2014 New Revision: 266937 URL: http://svnweb.freebsd.org/changeset/base/266937 Log: Export two new settings for the AM335x PWM, the clock prescaler (clkdiv) and the actual PWM frequency. Enforce the maximum value for the period sysctl. The frequ

svn commit: r266936 - in head: etc usr.sbin/bsnmpd/modules usr.sbin/bsnmpd/modules/snmp_lm75

2014-05-31 Thread Luiz Otavio O Souza
dded: head/usr.sbin/bsnmpd/modules/snmp_lm75/BEGEMOT-LM75-MIB.txt == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/bsnmpd/modules/snmp_lm75/BEGEMOT-LM75-MIB.txt Sun Jun 1 03:14:03 2014 (r266936) @@ -0,0 +1,160 @@ +-- +-- Copyright (c) 2014 Lui

svn commit: r266923 - head/sys/dev/iicbus

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 31 14:38:05 2014 New Revision: 266923 URL: http://svnweb.freebsd.org/changeset/base/266923 Log: Ignore IIC_ENOADDR from iicbus_reset() as it only means we have a master-only controller. This fixes the iic bus scan with i2c(8) (on supported controllers). Tes

svn commit: r266922 - head/sys/dev/gpio

2014-05-31 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 31 14:27:50 2014 New Revision: 266922 URL: http://svnweb.freebsd.org/changeset/base/266922 Log: Add a bounds verification to the SCL and SDA pin values. At attach, print the SCL and SDA pin numbers. Remove a stray blank line. Remove the GPIOBUS locking f

svn commit: r266092 - head/share/man/man4

2014-05-14 Thread Luiz Otavio O Souza
Author: loos Date: Wed May 14 21:54:14 2014 New Revision: 266092 URL: http://svnweb.freebsd.org/changeset/base/266092 Log: gpioiic.4 and gpioled.4 will first appear in 10.1-RELEASE. Modified: head/share/man/man4/gpioiic.4 head/share/man/man4/gpioled.4 Modified: head/share/man/man4/gpioiic.

svn commit: r265816 - head/sys/mips/atheros

2014-05-10 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 10 13:16:04 2014 New Revision: 265816 URL: http://svnweb.freebsd.org/changeset/base/265816 Log: Do not configure all pins as outputs as this can lead to short circuits when the GPIO pin is connected to a push button (or other devices). Instead keep the boot load

svn commit: r265814 - head/sys/mips/atheros

2014-05-10 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 10 12:58:18 2014 New Revision: 265814 URL: http://svnweb.freebsd.org/changeset/base/265814 Log: Remove an old mistake of mine. This has sneak in the code i sent to gonzo at that time, but AFAIK it is only used on routerboards. Enabling GPIO_FUNC_SPI_CS[1|2]_EN

svn commit: r265813 - in head: share/man/man4 sys/conf sys/dev/iicbus

2014-05-10 Thread Luiz Otavio O Souza
) +++ head/share/man/man4/lm75.4 Sat May 10 12:19:02 2014(r265813) @@ -0,0 +1,191 @@ +.\" +.\" Copyright (c) 2014 Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitt

svn commit: r265775 - in head/sys: conf mips/atheros

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 14:02:18 2014 New Revision: 265775 URL: http://svnweb.freebsd.org/changeset/base/265775 Log: Add support for reading RouterBoard's memory which is passed by the loader (RouterBOOT). Tested on RouterBoards, various and on RSPRO, TP-Link MR3x20 (for regressio

svn commit: r265774 - head/sys/mips/atheros

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:44:42 2014 New Revision: 265774 URL: http://svnweb.freebsd.org/changeset/base/265774 Log: When a GPIO pin is set to be turned on by kernel hints (hint.gpio.X.pinon) make sure the GPIO pin is configured as an output as this is not always the case. Modified:

svn commit: r265770 - head/sys/dev/etherswitch/ip17x

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:21:34 2014 New Revision: 265770 URL: http://svnweb.freebsd.org/changeset/base/265770 Log: Fix the build with debug enabled and remove a variable used only at switch initialization, it is nonsense keep it around without futher use. Modified: head/sys/dev/ethe

svn commit: r265767 - head/sys/dev/etherswitch/ip17x

2014-05-09 Thread Luiz Otavio O Souza
Author: loos Date: Fri May 9 13:07:39 2014 New Revision: 265767 URL: http://svnweb.freebsd.org/changeset/base/265767 Log: Fix a bug on ip17x switch initialization which will fail as soon as you disable the debug and diagnosis options from current. We must wait 2ms after the switch reset an

svn commit: r265310 - in head/sys/dev: gpio ofw

2014-05-03 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 4 04:01:26 2014 New Revision: 265310 URL: http://svnweb.freebsd.org/changeset/base/265310 Log: Move gpiobus routines to dev/gpio. Avoid polluting ofw_bus with bus specific parts. Requested by: nwhitehorn Modified: head/sys/dev/gpio/gpio_if.m head/sys/dev/

Re: svn commit: r265191 - head/sys/dev/gpio

2014-05-03 Thread Luiz Otavio O Souza
On Fri, May 2, 2014 at 5:34 AM, Bruce Evans wrote: > On Thu, 1 May 2014, Luiz Otavio O Souza wrote: > >> Log: >> Remove unnecessary headers. Sort out the headers. Add a missing header >> on >> ofw_gpiobus.c (it was working because of sys/libkern.h). > &g

svn commit: r265289 - head/sys/dev/gpio

2014-05-03 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 3 20:33:00 2014 New Revision: 265289 URL: http://svnweb.freebsd.org/changeset/base/265289 Log: Really sort out the headers. sys/systm.h must always come after sys/param.h. Remove sys/types.h which should never be included together with sys/param.h. Add

svn commit: r265254 - head/sys/arm/conf

2014-05-02 Thread Luiz Otavio O Souza
Author: loos Date: Sat May 3 03:40:36 2014 New Revision: 265254 URL: http://svnweb.freebsd.org/changeset/base/265254 Log: Fix the tinderbox armv6/arm build failure. VYBRID code depends on FDT. Modified: head/sys/arm/conf/VYBRID Modified: head/sys/arm/conf/VYBRID ===

svn commit: r265197 - head/sys/geom/uzip

2014-05-01 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 1 15:23:20 2014 New Revision: 265197 URL: http://svnweb.freebsd.org/changeset/base/265197 Log: Fix a leak in g_uzip_taste(). After retrieve all the block offsets from the uzip image, free the last data read. Modified: head/sys/geom/uzip/g_uzip.c Modified: head/

svn commit: r265194 - head/sys/geom/uzip

2014-05-01 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 1 14:59:04 2014 New Revision: 265194 URL: http://svnweb.freebsd.org/changeset/base/265194 Log: Actually the FEATURE() macro is defined on sys/sysctl.h. Pointyhat to: loos Modified: head/sys/geom/uzip/g_uzip.c Modified: head/sys/geom/uzip/g_uzip.c

svn commit: r265193 - in head/sys/geom: uncompress uzip

2014-05-01 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 1 14:47:27 2014 New Revision: 265193 URL: http://svnweb.freebsd.org/changeset/base/265193 Log: Some style and whitespace fixes. Reduce the difference between geom_uzip(4) and geom_uncompress(4). Now, they produce an almost clean diff(1) output. Remove a dupli

svn commit: r265191 - head/sys/dev/gpio

2014-05-01 Thread Luiz Otavio O Souza
Author: loos Date: Thu May 1 14:09:47 2014 New Revision: 265191 URL: http://svnweb.freebsd.org/changeset/base/265191 Log: Remove unnecessary headers. Sort out the headers. Add a missing header on ofw_gpiobus.c (it was working because of sys/libkern.h). Modified: head/sys/dev/gpio/gpiobus

svn commit: r265013 - head/sys/boot/fdt/dts/arm

2014-04-27 Thread Luiz Otavio O Souza
Author: loos Date: Sun Apr 27 13:10:51 2014 New Revision: 265013 URL: http://svnweb.freebsd.org/changeset/base/265013 Log: Revert r258678. Make the led gpio-specifier match again the #gpio-cells settings from the GPIO controller, which i had broken in r258678. Restore the active-low flag.

svn commit: r265012 - in head/sys/dev: gpio ofw

2014-04-27 Thread Luiz Otavio O Souza
Author: loos Date: Sun Apr 27 12:11:00 2014 New Revision: 265012 URL: http://svnweb.freebsd.org/changeset/base/265012 Log: Fix the gpio-specifier decoding by respecting the GPIO controller's #gpio-cells property. Add a new ofw_bus method (OFW_BUS_MAP_GPIOS()) that allows the GPIO contro

svn commit: r264769 - head/sys/geom/uncompress

2014-04-22 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 22 18:08:34 2014 New Revision: 264769 URL: http://svnweb.freebsd.org/changeset/base/264769 Log: Keep geom_uncompress(4) in line with geom_uzip(4), bring in the r264504 fix. Make sure not to start I/O bigger than MAXPHYS bytes. Quoting r264504: When we de

svn commit: r264197 - head/sys/arm/ti

2014-04-06 Thread Luiz Otavio O Souza
Author: loos Date: Sun Apr 6 17:09:51 2014 New Revision: 264197 URL: http://svnweb.freebsd.org/changeset/base/264197 Log: Partially revert r264083. While it is the recommended initialization procedure, it hangs on the reset of the second GPIO module on pandaboard. Removes the module

svn commit: r264153 - head/sys/arm/ti

2014-04-05 Thread Luiz Otavio O Souza
Author: loos Date: Sat Apr 5 17:53:59 2014 New Revision: 264153 URL: http://svnweb.freebsd.org/changeset/base/264153 Log: - Fix the setup of interrupts for banks 2 and 3 on AM335x. On AM335x each one of the four GPIO banks has two physical interrupt lines, so we now allocate reso

svn commit: r264083 - head/sys/arm/ti

2014-04-03 Thread Luiz Otavio O Souza
Author: loos Date: Thu Apr 3 17:55:08 2014 New Revision: 264083 URL: http://svnweb.freebsd.org/changeset/base/264083 Log: Move the GPIO bank initialization to a new function to make easier to detect errors. Reset the GPIO module during the initialization. This is guaranteed to be the

svn commit: r264019 - head/sys/arm/ti

2014-04-01 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 1 18:46:56 2014 New Revision: 264019 URL: http://svnweb.freebsd.org/changeset/base/264019 Log: Fix some of the style(9) problems on ti_gpio. Note that this commit does not fix all the style(9) problems, but will open room for the next commits. Remove redundant

svn commit: r263990 - head/share/man/man4

2014-04-01 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 1 14:17:38 2014 New Revision: 263990 URL: http://svnweb.freebsd.org/changeset/base/263990 Log: Add gpiobus(4) as a link to gpio(4). Modified: head/share/man/man4/Makefile Modified: head/share/man/man4/Makefile ==

svn commit: r263693 - in head: share/man/man4/man4.arm sys/arm/conf sys/arm/ti sys/arm/ti/am335x sys/boot/fdt/dts/arm

2014-03-24 Thread Luiz Otavio O Souza
(empty, because file is newly added) +++ head/share/man/man4/man4.arm/ti_adc.4 Mon Mar 24 20:06:27 2014 (r263693) @@ -0,0 +1,119 @@ +.\" +.\" Copyright (c) 2014 Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\" Redistribution and use in source and bina

svn commit: r262562 - head/sys/boot/forth

2014-02-27 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 27 13:31:54 2014 New Revision: 262562 URL: http://svnweb.freebsd.org/changeset/base/262562 Log: Add geom_uncompress to the list of available geom modules on loader.conf. Approved by: adrian (mentor) Modified: head/sys/boot/forth/loader.conf Modified: head/sys

svn commit: r262561 - head/sys/modules/geom/geom_uncompress

2014-02-27 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 27 13:29:26 2014 New Revision: 262561 URL: http://svnweb.freebsd.org/changeset/base/262561 Log: Fix a leftover of r260523. Remove the unnecessary dependency to zlib.h. Approved by: adrian (mentor) Modified: head/sys/modules/geom/geom_uncompress/Makefile Modi

svn commit: r262559 - in head/sys/modules/gpio: gpiobus gpioiic gpioled

2014-02-27 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 27 13:26:41 2014 New Revision: 262559 URL: http://svnweb.freebsd.org/changeset/base/262559 Log: Inspired by r262522, fix make depend. This fixes the build of gpio modules. Approved by: adrian (mentor) Modified: head/sys/modules/gpio/gpiobus/Makefile head/sy

svn commit: r262440 - head/sys/boot/fdt/dts

2014-02-24 Thread Luiz Otavio O Souza
Author: loos Date: Mon Feb 24 12:45:03 2014 New Revision: 262440 URL: http://svnweb.freebsd.org/changeset/base/262440 Log: Enable the second and the third I2C controllers on Beaglebone-black. The first I2C controller is only used to manage the on-board devices (PMIC and HDMI framer) and i

svn commit: r262242 - head/sys/boot/fdt

2014-02-20 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 20 13:09:08 2014 New Revision: 262242 URL: http://svnweb.freebsd.org/changeset/base/262242 Log: Fix the boot on FDT-enabled systems after r261819. While here, don't overwrite the error message on interactive use and add the missing '\n' at end of error message f

svn commit: r262194 - head/sys/dev/gpio

2014-02-18 Thread Luiz Otavio O Souza
Author: loos Date: Tue Feb 18 21:29:30 2014 New Revision: 262194 URL: http://svnweb.freebsd.org/changeset/base/262194 Log: Remove an unnecessary header. Reported by: nwhitehorn Approved by: adrian (mentor, implicit) Modified: head/sys/dev/gpio/ofw_gpiobus.c Modified: head/sys/dev/gp

Re: svn commit: r262125 - head/sys/dev/usb/controller

2014-02-17 Thread Luiz Otavio O Souza
On Mon, Feb 17, 2014 at 5:08 PM, Dimitry Andric wrote: > Author: dim > Date: Mon Feb 17 20:08:11 2014 > New Revision: 262125 > URL: http://svnweb.freebsd.org/changeset/base/262125 > > Log: > In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning > about uss820dci_odevd being

Re: svn commit: r261842 - in head/sys: conf dev/gpio

2014-02-14 Thread Luiz Otavio O Souza
On Feb 13, 2014, at 6:59 PM, Nathan Whitehorn wrote: > On 02/13/14 11:08, Luiz Otavio O Souza wrote: >> Author: loos >> Date: Thu Feb 13 17:08:29 2014 >> New Revision: 261842 >> URL: http://svnweb.freebsd.org/changeset/base/261842 >> >> Log: >> Add

Re: svn commit: r261843 - in head: share/man/man4 sys/dev/gpio

2014-02-14 Thread Luiz Otavio O Souza
On Feb 13, 2014, at 7:01 PM, Nathan Whitehorn wrote: > On 02/13/14 11:58, Luiz Otavio O Souza wrote: >> Author: loos >> Date: Thu Feb 13 17:58:52 2014 >> New Revision: 261843 >> URL: http://svnweb.freebsd.org/changeset/base/261843 >> >> Log: >> A

svn commit: r261846 - in head/sys: arm/conf boot/fdt/dts

2014-02-13 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 13 18:51:37 2014 New Revision: 261846 URL: http://svnweb.freebsd.org/changeset/base/261846 Log: Make the gpioled(4) work out of the box on BBB. Add gpioled(4) to BEAGLEBONE kernel and add the description of the four on-board leds of beaglebone-black to its DTS f

svn commit: r261845 - in head/sys/arm: broadcom/bcm2835 ti

2014-02-13 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 13 18:42:23 2014 New Revision: 261845 URL: http://svnweb.freebsd.org/changeset/base/261845 Log: Allow the use of the OFW GPIO bus for ti_gpio and bcm2835_gpio. With this change the gpio children can be described as directly connected to the GPIO controller without

svn commit: r261844 - in head/sys/dev: iicbus ofw

2014-02-13 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 13 18:22:49 2014 New Revision: 261844 URL: http://svnweb.freebsd.org/changeset/base/261844 Log: Allow the use of OFW I2C bus together with iicbb(4) on OFW-based systems. This change makes ofw_iicbus attach to iicbb(4) controllers in addition to the already suppo

svn commit: r261843 - in head: share/man/man4 sys/dev/gpio

2014-02-13 Thread Luiz Otavio O Souza
Author: loos Date: Thu Feb 13 17:58:52 2014 New Revision: 261843 URL: http://svnweb.freebsd.org/changeset/base/261843 Log: Add OFW support to the in tree gpio compatible devices: gpioiic(4) and gpioled(4). Tested on RPi and BBB (using the hardware I2C controller and gpioiic(4) for the I

svn commit: r261842 - in head/sys: conf dev/gpio

2014-02-13 Thread Luiz Otavio O Souza
= --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/dev/gpio/ofw_gpiobus.c Thu Feb 13 17:08:29 2014 (r261842) @@ -0,0 +1,338 @@ +/*- + * Copyright (c) 2009, Nathan Whitehorn + * Copyright (c) 2013, Luiz Otavio O So

svn commit: r261586 - in head/sys/geom: uncompress uzip

2014-02-07 Thread Luiz Otavio O Souza
Author: loos Date: Fri Feb 7 13:06:48 2014 New Revision: 261586 URL: http://svnweb.freebsd.org/changeset/base/261586 Log: Fix the build with DEBUG enabled. Where possible, fix style(9) issues. Reviewed by: bde Approved by: adrian (mentor) Modified: head/sys/geom/uncompress/g_uncomp

svn commit: r261516 - head/sys/boot/fdt/dts

2014-02-05 Thread Luiz Otavio O Souza
Author: loos Date: Wed Feb 5 17:08:55 2014 New Revision: 261516 URL: http://svnweb.freebsd.org/changeset/base/261516 Log: Add the missing ')' at end of sentence. Reword it to use a more common idiom. Reviewed by: imp (on freebsd-embedded@) Approved by: adrian (mentor, implicit) Mod

svn commit: r261440 - head/sys/geom/uncompress

2014-02-03 Thread Luiz Otavio O Souza
Author: loos Date: Mon Feb 3 17:25:36 2014 New Revision: 261440 URL: http://svnweb.freebsd.org/changeset/base/261440 Log: Fix a logic error. Because of this inflateReset() wasn't being called and the output buffer wasn't being cleared between the inflate() calls, producing zeroed output af

svn commit: r261439 - head/sys/geom/uncompress

2014-02-03 Thread Luiz Otavio O Souza
Author: loos Date: Mon Feb 3 17:21:36 2014 New Revision: 261439 URL: http://svnweb.freebsd.org/changeset/base/261439 Log: Remove some unnecessary code. The offsets read from the first block are overwritten a few lines bellow. Reviewed by: ray Approved by: adrian (mentor) Modified:

svn commit: r260523 - in head/sys: geom/uncompress modules/geom modules/geom/geom_uncompress

2014-01-10 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jan 10 20:29:46 2014 New Revision: 260523 URL: http://svnweb.freebsd.org/changeset/base/260523 Log: Build the geom_uncompress(4) module by default. Fix geom_uncompress(4) module loading. Don't link zlib.c (which is a module itself) directly. The built module w

svn commit: r260522 - head/share/man/man4

2014-01-10 Thread Luiz Otavio O Souza
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/geom_uncompress.4 Fri Jan 10 19:41:01 2014 (r260522) @@ -0,0 +1,107 @@ +.\" Copyright (c) 2014, Luiz Otavio O Souza +.\" All rights reserved. +.\" +.\&

svn commit: r260392 - head/sys/mips/conf

2014-01-07 Thread Luiz Otavio O Souza
Author: loos Date: Tue Jan 7 13:09:35 2014 New Revision: 260392 URL: http://svnweb.freebsd.org/changeset/base/260392 Log: Fix the geom mappings for WR1043ND. The uboot mapping is only 128KiB (0x2) and not 2MiB (0x20). Dynamically adjust kernel and rootfs mappings based on the

svn commit: r259270 - in head/sys/arm: freescale/imx ti

2013-12-12 Thread Luiz Otavio O Souza
Author: loos Date: Thu Dec 12 18:29:36 2013 New Revision: 259270 URL: http://svnweb.freebsd.org/changeset/base/259270 Log: After r256961 ofw_iicbuc.c will be built for any kernel which includes options 'iicbus' and 'fdt'. Remove the (now) unnecessary entries. Verified on BBB (am335x), EF

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Luiz Otavio O Souza
On Dec 10, 2013, at 9:30 AM, Ed Schouten wrote: > 2013/12/10 Aleksandr Rybalko : >> Thanks to Ed, [...] > > No, thanks to you! […] > Can't wait to buy you a beer. +1 ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/sv

svn commit: r259127 - head/sys/arm/broadcom/bcm2835

2013-12-09 Thread Luiz Otavio O Souza
Author: loos Date: Mon Dec 9 12:01:17 2013 New Revision: 259127 URL: http://svnweb.freebsd.org/changeset/base/259127 Log: Bring the RPi I2C driver in line with ti_i2c. Make it treat any slave address as a 7-bit address. Approved by: adrian (mentor) Modified: head/sys/arm/broadcom/bc

svn commit: r259126 - head/sys/arm/ti

2013-12-09 Thread Luiz Otavio O Souza
Author: loos Date: Mon Dec 9 11:51:17 2013 New Revision: 259126 URL: http://svnweb.freebsd.org/changeset/base/259126 Log: Activate the device before attempt to access any of its registers. Without this change we may end up with a panic (Fatal kernel mode data abort: 'External Non-Linefetch

svn commit: r259125 - head/sys/arm/ti/am335x

2013-12-09 Thread Luiz Otavio O Souza
Author: loos Date: Mon Dec 9 11:33:45 2013 New Revision: 259125 URL: http://svnweb.freebsd.org/changeset/base/259125 Log: Fix a few typos on the scm (control module) pin mux definitions. Approved by: adrian (mentor) Modified: head/sys/arm/ti/am335x/am335x_scm_padconf.c Modified: head/

svn commit: r259099 - head/sys/arm/ti/am335x

2013-12-08 Thread Luiz Otavio O Souza
Author: loos Date: Sun Dec 8 13:46:27 2013 New Revision: 259099 URL: http://svnweb.freebsd.org/changeset/base/259099 Log: Similar to r255816, fix the math for the DELAY() calculation. It was off by a really small amount because of the higher timer resolution. Approved by: adrian (mento

svn commit: r259037 - head/sys/arm/ti

2013-12-06 Thread Luiz Otavio O Souza
Author: loos Date: Fri Dec 6 18:09:10 2013 New Revision: 259037 URL: http://svnweb.freebsd.org/changeset/base/259037 Log: Fix the pin value reading on AM335x. Because of the inverted logic it was always returning '0' for all the reads, even for the outputs. It is now known to work with gp

svn commit: r259036 - head/sys/dev/gpio

2013-12-06 Thread Luiz Otavio O Souza
Author: loos Date: Fri Dec 6 17:56:20 2013 New Revision: 259036 URL: http://svnweb.freebsd.org/changeset/base/259036 Log: Move the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4) control callback function. This makes gpioled(4) works even if the pin is accidentally set to an

svn commit: r259034 - head/sys/arm/broadcom/bcm2835

2013-12-06 Thread Luiz Otavio O Souza
Author: loos Date: Fri Dec 6 17:45:14 2013 New Revision: 259034 URL: http://svnweb.freebsd.org/changeset/base/259034 Log: Make the sysctl node read-only. Approved by: adrian (mentor) Modified: head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835

svn commit: r259035 - head/sys/dev/gpio

2013-12-06 Thread Luiz Otavio O Souza
Author: loos Date: Fri Dec 6 17:49:34 2013 New Revision: 259035 URL: http://svnweb.freebsd.org/changeset/base/259035 Log: Remove unnecessary includes and an unused softc variable. While here apply two minor style(9) fixes. Approved by: adrian (mentor) Modified: head/sys/dev/gpio/gpi

Re: svn commit: r258678 - head/sys/boot/fdt/dts

2013-11-27 Thread Luiz Otavio O Souza
On Nov 27, 2013, at 10:21 AM, Alexey Dokuchaev wrote: > On Wed, Nov 27, 2013 at 12:12:37PM +0000, Luiz Otavio O Souza wrote: >> New Revision: 258678 >> URL: http://svnweb.freebsd.org/changeset/base/258678 >> >> Log: >> Fix the led 'gpios' definition t

svn commit: r258679 - head/share/man/man4

2013-11-27 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 27 12:17:05 2013 New Revision: 258679 URL: http://svnweb.freebsd.org/changeset/base/258679 Log: Connect the two recently added man pages to the system's install process. Approved by: adrian (mentor) Modified: head/share/man/man4/Makefile Modified: head/share/

svn commit: r258678 - head/sys/boot/fdt/dts

2013-11-27 Thread Luiz Otavio O Souza
Author: loos Date: Wed Nov 27 12:12:37 2013 New Revision: 258678 URL: http://svnweb.freebsd.org/changeset/base/258678 Log: Fix the led 'gpios' definition to match the description on sys/boot/fdt/dts/bindings-gpio.txt. Make the led pin an output, add the missing flag field. No functional ch

svn commit: r258050 - head/sys/dev/gpio

2013-11-12 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 12 16:08:23 2013 New Revision: 258050 URL: http://svnweb.freebsd.org/changeset/base/258050 Log: Fix gpiobus to return BUS_PROBE_GENERIC insted of BUS_PROBE_SPECIFIC (0) so it can be overriden by its OFW/FDT version. Give a chance for GPIO devices that implement

svn commit: r258047 - head/sys/dev/gpio

2013-11-12 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 12 13:55:19 2013 New Revision: 258047 URL: http://svnweb.freebsd.org/changeset/base/258047 Log: Move the KASSERT() check to the point before the increase of number of pins. Approved by: adrian (mentor) Modified: head/sys/dev/gpio/gpiobus.c Modified: head/sys/

svn commit: r258046 - head/sys/dev/ofw

2013-11-12 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 12 13:44:50 2013 New Revision: 258046 URL: http://svnweb.freebsd.org/changeset/base/258046 Log: Fix a typo on a comment in ofw_bus_if.m, the default method will return -1 when a node doesn't exist. Reviewed by: nwhitehorn Approved by: adrian (mentor) Modifi

svn commit: r258045 - head/sys/arm/broadcom/bcm2835

2013-11-12 Thread Luiz Otavio O Souza
Author: loos Date: Tue Nov 12 13:34:07 2013 New Revision: 258045 URL: http://svnweb.freebsd.org/changeset/base/258045 Log: As all the IIC controllers on system uses the same 'iichb' prefix we cannot rely only on checking the device unit to indentify the BSC unit we are attaching to. Make us

svn commit: r258044 - in head: share/man/man4 usr.sbin/gpioctl

2013-11-12 Thread Luiz Otavio O Souza
, +.Xr gpioled 4 , .Xr iicbus 4 , .Xr gpioctl 8 .Sh HISTORY Added: head/share/man/man4/gpioiic.4 == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/man/man4/gpioiic.4 Tue Nov 12 12:44:59 2013 (r258044) @@ -0,0 +1,96 @@ +.\" Copyright (c) 2

svn commit: r257346 - head/sys/dev/etherswitch/rtl8366

2013-10-29 Thread Luiz Otavio O Souza
Author: loos Date: Tue Oct 29 15:45:11 2013 New Revision: 257346 URL: http://svnweb.freebsd.org/changeset/base/257346 Log: Fix the build of TP-WN1043ND kernel. Provide necessary includes and remove unnecessary includes for rtl8366rb. Approved by: adrian (mentor) Modified: head/sys/de

<    1   2   3   4   5   >