(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
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
==
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
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
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
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
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
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
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.
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
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
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
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/
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
===
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
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
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/
="Kevin Lo\nke...@freebsd.or
kib [label="Konstantin Belousov\n...@freebsd.org\n2006/06/03"]
kmacy [label="Kip Macy\nkm...@freebsd.org\n2005/06/01"]
le [label="Lukas Ertl\n...@freebsd.org\n2004/02/02"]
+loos [label="Luiz Otavio O Souza\nl...@freebsd.org\
Author: loos
Date: Tue Jul 23 13:40:26 2013
New Revision: 253568
URL: http://svnweb.freebsd.org/changeset/base/253568
Log:
Fix the usage error message. The valid range is up to max. vlan - 1 since
vlangroups starts at 0.
Approved by: adrian (mentor)
Modified:
head/sbin/etherswitchcfg/
Author: loos
Date: Tue Jul 23 13:56:38 2013
New Revision: 253569
URL: http://svnweb.freebsd.org/changeset/base/253569
Log:
Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.
This fix the case when etherswitch is printing the information of port 0
vlan group (in port ba
Author: loos
Date: Tue Jul 23 14:02:38 2013
New Revision: 253570
URL: http://svnweb.freebsd.org/changeset/base/253570
Log:
Fix the arswitch instability problem. It turns out that the
arswitch_writereg() routine was writing the registers in the wrong order.
Revert -r241918 as the root pro
s, vid);
+ break;
+ default:
+ err = -1;
+ }
+ ARSWITCH_UNLOCK(sc);
+ return (err);
+}
+
+int
+arswitch_get_pvid(struct arswitch_softc *sc, int port, int *pvid)
+{
+ uint32_t reg;
+
+ ARSWITCH_LOCK_ASSERT(sc, MA_OWNED);
+ reg = arswi
=
--- /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
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
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
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
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
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
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
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
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
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
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
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
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
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
Author: loos
Date: Wed Aug 28 14:39:24 2013
New Revision: 254988
URL: http://svnweb.freebsd.org/changeset/base/254988
Log:
Properly free gpiobus ivars when gpiobus_parse_pins() fails and also on
gpiobus detachment.
Suggested by: imp
Approved by: adrian (mentor)
Modified:
head/sys/de
Author: loos
Date: Wed Aug 28 14:43:04 2013
New Revision: 254989
URL: http://svnweb.freebsd.org/changeset/base/254989
Log:
Add the default hints to make the GPIO pins, rf led and reset switch work
out of the box on RouterStation.
PR: 177832
Submitted by: Petko Bordjukov (bordju...@gma
Author: loos
Date: Wed Aug 28 14:46:15 2013
New Revision: 254990
URL: http://svnweb.freebsd.org/changeset/base/254990
Log:
Make ar71xx_spi attach the next free unit of spibus and not only spibus0.
Approved by: adrian (mentor)
Modified:
head/sys/mips/atheros/ar71xx_spi.c
Modified: head/
Author: loos
Date: Wed Aug 28 14:49:36 2013
New Revision: 254991
URL: http://svnweb.freebsd.org/changeset/base/254991
Log:
Fix a few typos for s25fl types.
Approved by: adrian (mentor)
Modified:
head/sys/dev/flash/mx25l.c
Modified: head/sys/dev/flash/mx25l.c
===
Author: loos
Date: Thu Aug 29 12:48:12 2013
New Revision: 255021
URL: http://svnweb.freebsd.org/changeset/base/255021
Log:
Prevent the full restart cycle every time arge_start() is called. Only
(re)start the interface when it is down. This change fix a race with
BOOTP where the response pa
Author: loos
Date: Fri Sep 6 12:47:14 2013
New Revision: 255300
URL: http://svnweb.freebsd.org/changeset/base/255300
Log:
Fix the leakage of dma tags on if_arge. The leak occur when arge_start()
add some packet(s) to tx ring and arge_stop() is called before receive the
sent packet interrup
Author: loos
Date: Fri Sep 6 23:39:56 2013
New Revision: 255334
URL: http://svnweb.freebsd.org/changeset/base/255334
Log:
Fix an off-by-one bug in ar71xx_gpio and bcm2835_gpio which makes the last
pin unavailable.
Reported and tested by: sbruno (ar71xx)
Approved by: adrian (ment
Author: loos
Date: Fri Sep 6 23:47:50 2013
New Revision: 255335
URL: http://svnweb.freebsd.org/changeset/base/255335
Log:
Remove the hardcoded limit for the number of gpio_pins that can be used.
Allocate it dynamically.
Approved by: adrian (mentor)
Modified:
head/sys/mips/atheros/ar7
Author: loos
Date: Sat Sep 7 18:48:15 2013
New Revision: 255370
URL: http://svnweb.freebsd.org/changeset/base/255370
Log:
Export a function to allow BCM2835's peripheral devices to enable their
altenate pin function (from GPIO pins) as needed.
Approved by: adrian (mentor)
Added:
head
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
Author: loos
Date: Thu Jan 9 18:28:58 2014
New Revision: 260489
URL: http://svnweb.freebsd.org/changeset/base/260489
Log:
MFC r257064:
Add an OFW SPI compatible bus. Fix the spibus probe to return
BUS_PROBE_GENERIC and not BUS_PROBE_SPECIFIC (0) so the OFW SPI bus can
attach when enab
==
--- /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.
+.\"
+.\&
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
Author: loos
Date: Thu Jan 23 12:02:04 2014
New Revision: 261077
URL: http://svnweb.freebsd.org/changeset/base/261077
Log:
MFC r257127:
Remove all the instances of '#undef DEBUG' from kernel.
Suggested by: rpaulo
Approved by: adrian (mentor)
Modified:
stable/10/sys/arm/broadcom/b
stable/10/sys/arm/broadcom/bcm2835/bcm2835_bscreg.h Thu Jan 23 12:32:30
2014(r261078, copy of r256959,
head/sys/arm/broadcom/bcm2835/bcm2835_bscreg.h)
@@ -0,0 +1,61 @@
+/*-
+ * Copyright (c) 2012 Oleksandr Tymoshenko
+ * Copyright (c) 2013 Luiz Otavio O Souza
+ * All rights reserved.
+ *
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:
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
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
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
,
+.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
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
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
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/
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
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
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/
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
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
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
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
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
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
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/
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
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
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-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn
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
Author: loos
Date: Mon Sep 23 14:00:18 2013
New Revision: 255816
URL: http://svnweb.freebsd.org/changeset/base/255816
Log:
Fix DELAY() on RPi, the wrong math was making it take twice it should.
Reported by: Alexander
Approved by: adrian (mentor)
Approved by: re (gjb)
Modified:
he
+1,485 @@
+/*-
+ * Copyright (c) 2001 Tsubai Masanari.
+ * Copyright (c) 2012 Oleksandr Tymoshenko
+ * Copyright (c) 2013 Luiz Otavio O Souza
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the
Author: loos
Date: Wed Oct 23 13:09:57 2013
New Revision: 256961
URL: http://svnweb.freebsd.org/changeset/base/256961
Log:
Enable the build of OFW I2C bus for FDT systems.
Approved by: adrian (mentor)
Modified:
head/sys/conf/files
Modified: head/sys/conf/files
=
@@
+/*-
+ * Copyright (c) 2012 Oleksandr Tymoshenko
+ * Copyright (c) 2013 Luiz Otavio O Souza
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of
Author: loos
Date: Thu Oct 24 16:56:38 2013
New Revision: 257064
URL: http://svnweb.freebsd.org/changeset/base/257064
Log:
Add an OFW SPI compatible bus. Fix the spibus probe to return
BUS_PROBE_GENERIC and not BUS_PROBE_SPECIFIC (0) so the OFW SPI bus can
attach when enabled. Export the s
Author: loos
Date: Fri Oct 25 18:38:44 2013
New Revision: 257127
URL: http://svnweb.freebsd.org/changeset/base/257127
Log:
Remove all the instances of '#undef DEBUG' from kernel.
Suggested by: rpaulo
Approved by: adrian (mentor)
Modified:
head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
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
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
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
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
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/
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
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
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
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
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
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
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).
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
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
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.
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
==
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
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_
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
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
Oct 27 12:18:07 2014
(r273735)
@@ -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,13 +58,14 @
1 - 100 of 521 matches
Mail list logo