Commit Graph

2143 Commits

Author SHA1 Message Date
Greg Kroah-Hartman a239f67c5d greybus: start parsing descriptor structures 2014-09-01 14:39:49 -07:00
Greg Kroah-Hartman d94a44a54e greybus: export gb_new_ap_msg so that the es1 module can use it 2014-09-01 14:39:34 -07:00
Greg Kroah-Hartman ec909874c7 greybus: turn off warnings for es1-ap-usb.c to make it easier to build for now... 2014-09-01 14:39:14 -07:00
Greg Kroah-Hartman 6dca7b97c7 greybus: get field names right for descriptors 2014-09-01 13:42:43 -07:00
Greg Kroah-Hartman 6584c8af70 greybus: s/greybus_device_id/greybus_module_id/g 2014-09-01 13:31:31 -07:00
Greg Kroah-Hartman d58778002b greybus: more changes due to name changes in the greybus document 2014-09-01 10:59:08 -07:00
Greg Kroah-Hartman 712d65915a greybus: greybus.h: tiny movement around 2014-09-01 09:51:51 -07:00
Greg Kroah-Hartman 3772f1610f greybus: header file s/u8/__u8/g 2014-09-01 09:51:33 -07:00
Greg Kroah-Hartman 80ebe8a631 greybus: greybus_desc.h created 2014-08-31 18:08:52 -07:00
Greg Kroah-Hartman b9b2a46265 greybus: split svc msg out into separate header file 2014-08-31 17:43:38 -07:00
Greg Kroah-Hartman 2ecd536de7 greybus: more structure definitions added 2014-08-31 17:25:22 -07:00
Greg Kroah-Hartman be1e2e9cd1 greybus: structures added 2014-08-31 16:21:33 -07:00
Greg Kroah-Hartman de536e3094 greybus: ap message loop added. 2014-08-31 16:17:04 -07:00
Greg Kroah-Hartman 27fb83109a greybus: register the bus with the driver core and add framework for debugfs files. 2014-08-31 13:54:59 -07:00
Greg Kroah-Hartman 6f83ab76b8 greybus: es1-ap-usb: more init framework added. 2014-08-30 17:30:04 -07:00
Greg Kroah-Hartman f1eec30ac8 greybus: first framework for the es1 ap controller 2014-08-30 17:18:14 -07:00
Greg Kroah-Hartman 8bf23e84d7 greybus: actually get the devm() change to build... 2014-08-30 17:18:04 -07:00
Greg Kroah-Hartman e5f167f1df greybus: can't use devm anymore, we aren't tieing into the driver model lifecycle :( 2014-08-30 17:11:41 -07:00
Greg Kroah-Hartman ba4468d464 greybus: initial framework for ES1 usb AP driver 2014-08-30 17:06:54 -07:00
Greg Kroah-Hartman eca17c5203 greybus: uart: tie into gb core properly 2014-08-30 16:54:05 -07:00
Greg Kroah-Hartman 56f10573be greybus: sdio: tie into gb core properly 2014-08-30 16:52:18 -07:00
Greg Kroah-Hartman 426f29d6be greybus: gpio: tie into gb core properly 2014-08-30 16:51:21 -07:00
Greg Kroah-Hartman 3d9efaaea3 greybus: i2c: use same naming convention everywhere 2014-08-30 16:49:59 -07:00
Greg Kroah-Hartman e7e0782c41 greybus: i2c: tie to the proper place on the greybus_device 2014-08-30 16:49:05 -07:00
Greg Kroah-Hartman db6e1fd264 greybus: hook up sdio, gpio, and tty into the greybus core. 2014-08-30 16:47:26 -07:00
Greg Kroah-Hartman 503c1cdbfb greybus: static module_init/exit functions 2014-08-30 16:21:03 -07:00
Greg Kroah-Hartman 199d68d4a8 greybus: start moving the function types into the greybus core 2014-08-30 16:20:22 -07:00
Alex Elder caaa8a838d greybus: uart-gb: a few minor bug fixes
Here are a few small bug fixes in uart-gb.c:
    - In wait_serial_change():
        - Return -EINVAL if *none* of the relevant flags are set in
          the "arg" parameter.
        - Balance the spin_lock_irq() with an unlock call (not
          another lock).
        - Rearrange a nested if structure (not a bug fix).
    - In tty_gb_probe():
        - Reset the greybus_device driver data in case of error.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-19 05:10:43 -05:00
Alex Elder ff5f0b3822 greybus: uart-gb: improve minor device number error checking
When alloc_minor() finds an available minor device number it
does not constrain the highest number desired.  Instead, it
relies on its caller, tty_gb_probe() to see if the returned
number indicates all minor numbers have been exhausted.

There are a couple problems with this--or rather with this
code.

First, if an allocation is attempted *after* GB_NUM_MINORS
is returned, a new number greater than (but not equal to)
GB_NUM_MINORS will be allocated, and that won't produce
any error condition.

Second, alloc_minor() can return an error code (like -ENOMEM).  And
its caller is only checking for GB_NUM_MINORS.  If an error code
is returned, tty_gb_probe() simply uses it.

Change alloc_minor() so it requests minor device numbers in the
range 0..(GB_NUM_MINORS-1), and use an error return to detect
when the minor device numbers have been exhausted.

If alloc_minor() returns -ENOSPC (from idr_alloc()), translate that
to -ENODEV.  The only other error we might see is -ENOMEM, and if
we get that, return it.

Finally, zero gb_tty->minor when it's released.  (If this is
actually important a reserved value like GB_NUM_MINORS should
be used instead to signify a gb_tty with no minor assigned.)

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-08-19 05:10:42 -05:00
Greg Kroah-Hartman e68453ed28 greybus: uart-gb: now builds, more framework added 2014-08-15 19:44:32 +08:00
Greg Kroah-Hartman a18e151757 greybus: more uart work 2014-08-15 18:54:11 +08:00
Greg Kroah-Hartman ff45c265f8 greybus: uart-gb: more work on tty functions 2014-08-15 18:33:33 +08:00
Greg Kroah-Hartman 79c822be7b greybus: uart framework added, doesn't build 2014-08-15 16:01:23 +08:00
Greg Kroah-Hartman e9023d227a greybus: gpio-gb.c: it now builds properly 2014-08-12 14:41:49 +08:00
Greg Kroah-Hartman c16854c3bf greybus: gpio driver 2014-08-12 12:00:16 +08:00
Greg Kroah-Hartman d5d1903dcd greybus: add framework for 'struct gbuf'
This is the equlivant of sk_buf or urbs for Greybus.
2014-08-11 19:03:20 +08:00
Greg Kroah-Hartman 83ddaaab01 greybus: Greybus SD/MMC host driver
Need to add specifics, but this should be enough to hook up to the mmc
framework.
2014-08-11 17:27:22 +08:00
Greg Kroah-Hartman 776f136c75 greybus: greybus.h: tiny coding style cleanups 2014-08-11 17:27:07 +08:00
Greg Kroah-Hartman 53419e07cc greybus: i2c-gb: actually add the i2c adapter properly... 2014-08-11 17:01:15 +08:00
Greg Kroah-Hartman 4c009fada1 greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
Greg Kroah-Hartman 06823c3eb9 greybus: README and .gitignore updates 2014-08-11 15:32:12 +08:00
Greg Kroah-Hartman c8a797a98c greybus: Import most recent greybus code to new repo. 2014-08-11 15:30:45 +08:00
Greg Kroah-Hartman cd26f1bd6b greybus: Initial commit 2014-08-11 15:29:23 +08:00