summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* fs: introduce get_mounted_path to get the path where a file is mountedJean-Christophe PLAGNIOL-VILLARD2012-09-051-0/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fs: implement statJean-Christophe PLAGNIOL-VILLARD2012-09-051-4/+2
| | | | | | stat() stats the file pointed to by path and fills in buf. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fs: add symlink supportJean-Christophe PLAGNIOL-VILLARD2012-09-051-0/+3
| | | | | | Limit it's support to existing file only Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fs: rename stat to lstat as we implement lstatJean-Christophe PLAGNIOL-VILLARD2012-09-051-1/+5
| | | | | | | For compatibility put a inline on lstat for stat until we have the symlink support. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fs: add readlink supportJean-Christophe PLAGNIOL-VILLARD2012-09-051-0/+5
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/reset-source'Sascha Hauer2012-08-011-0/+27
|\
| * Enable a way to provide the reason for "being here"Juergen Beisert2012-07-181-0/+27
| | | | | | | | | | | | | | | | | | | | Many architectures support a way to detect why the bootloader is running. This patch adds a global variable to be able to use the cause in some kind of shell code to do special things on demand. For example to do an emergency boot, when the last boot fails and the watchdog reactivate the hanging system. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/randconfig'Sascha Hauer2012-08-011-0/+13
|\ \
| * | gpio: add static inlines for gpio_request/gpio_freeSascha Hauer2012-07-251-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Some drivers use gpio_request/gpio_free. Currently no architecture has code behind these functions. Provide static inline functions for these and remvoe the at91 specific inline functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/pcm038'Sascha Hauer2012-08-011-1/+22
|\ \ \
| * | | mc13xxx: Added dummy definitions if CONFIG_MFD_MC13XXX is not setAlexander Shiyan2012-07-241-1/+22
| | |/ | |/| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/onfi'Sascha Hauer2012-08-013-4/+80
|\ \ \
| * | | nand_base: add ONFI flash detectionEric Bénard2012-07-052-4/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the code is taken from linux & u-boot implementations Validated on an i.MX53 which gives the following log : ONFI flash detected ... ONFI param page 0 valid NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP), page size: 4096, OOB size: 224 Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | string: add strim for ONFI codeEric Bénard2012-07-051-0/+3
| |/ / | | | | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2012-08-011-1/+1
|\ \ \
| * | | serial_ns16550: change the driver's nameAntony Pavlov2012-07-201-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The name "serial_ns16550" is not handy because the devices will have the names like "serial_ns165500", "serial_ns165501", "serial_ns165502" etc. The names like "ns16550_serial0" and "ns16550_serial1" look much better. Also it is reasonable to make serial driver's names unification. E.g. see the names for drivers in drivers/serial directory: "netx_serial", "mpc5xxx_serial", "altera_serial", "s3c_serial", "imx_serial", "pxa_serial", "blackfin_serial", "stm_serial", "pl010_serial", and even "g_serial" in ./drivers/usb/gadget/serial.c Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx-keypad'Sascha Hauer2012-08-011-0/+59
|\ \ \
| * | | input: Add i.MX matrix keypad driverChristian Kapeller2012-07-171-0/+59
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/i2c'Sascha Hauer2012-08-011-0/+1
|\ \ \
| * | | i2c: add platform_data for i2c_board_infoMarc Reilly2012-07-301-0/+1
| |/ / | | | | | | | | | | | | | | | Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/depend'Sascha Hauer2012-08-011-3/+17
|\ \ \ | | |/ | |/|
| * | kconfig: fix IS_ENABLED to not require all options to be definedSascha Hauer2012-07-251-3/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Linux commit 69349c2dc01c489eccaa4c472542c08e370c6d7e: Using IS_ENABLED() within C (vs. within CPP #if statements) in its current form requires us to actually define every possible bool/tristate Kconfig option twice (__enabled_* and __enabled_*_MODULE variants). This results in a huge autoconf.h file, on the order of 16k lines for a x86_64 defconfig. Fixing IS_ENABLED to be able to work on the smaller subset of just things that we really have defined is step one to fixing this. Which means it has to not choke when fed non-enabled options, such as: include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef] The original prototype of how to implement a C and preprocessor compatible way of doing this came from the Google+ user "comex ." in response to Linus' crowdsourcing challenge for a possible improvement on his earlier C specific solution: #define config_enabled(x) (__stringify(x)[0] == '1') In this implementation, I've chosen variable names that hopefully make how it works more understandable. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM ep93xx: Get rid of special handling in linker fileSascha Hauer2012-07-231-1/+2
| | | | | | | | | | | | | | | | The ep93xx needs a special value at offset 0x1000. Rather than do special handling in the linker file add aa header section as done on i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | lzo: Allow for static inliningSascha Hauer2012-07-231-2/+6
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: fix standard zero, full devicesSascha Hauer2012-07-042-0/+2
| | | | | | | | | | | | | | | | The standard devices are currently broken since they have the size ~0. As now files use loff_t as file size which is a signed type the read implementation gets confused and now returns -1. The current implementation also has the (somewhat theorical) problem that we do not have real streaming devices, so /dev/zero went out of zeroes after reading 4GB (or now LLONG_MAX). This patch introduces a new cdev flag DEVFS_IS_CHARACTER_DEV and a new file size flag FILE_SIZE_STREAM which makes it possible to create real stream devices instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-size'Sascha Hauer2012-07-021-4/+4
|\ | | | | | | | | | | Conflicts: drivers/base/resource.c fs/fs.c
| * resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-4/+4
| | | | | | | | | | | | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/poweroff'Sascha Hauer2012-07-021-0/+1
|\ \
| * | add 'poweroff' commandAntony Pavlov2012-06-301-0/+1
| |/ | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips-clocksource'Sascha Hauer2012-07-022-151/+3
|\ \
| * | clocksource: move the NSEC_PER_SEC constant to common headerAntony Pavlov2012-06-292-0/+4
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | include/linux/time.h: remove dead codeSascha Hauer2012-06-291-152/+0
| |/ | | | | | | | | | | | | | | include/linux/time.h contains several unused functions derived from U-Boot code. Since this is a file under include/linux/ it should contain only code from the kernel, so remove all this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ethernet'Sascha Hauer2012-07-022-4/+8
|\ \
| * | eth: eth MAC addresses are six bytesJohannes Stezenbach2012-06-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Reduce confusion by making clear six bytes are passed, not a string. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | miidev: add support for 1000MbitJohannes Stezenbach2012-06-301-0/+4
| |/ | | | | | | | | Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/size-decrease'Sascha Hauer2012-07-021-3/+0
|\ \
| * | menu: factor out a function to print an entrySascha Hauer2012-06-281-3/+0
| |/ | | | | | | | | | | To save a few bytes of binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net-designware'Sascha Hauer2012-07-021-0/+9
|\ \
| * | drivers/net: add designware driverJohannes Stezenbach2012-06-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Straight forward port of Synopsys Designware ethernet driver from u-boot v2012.04.01. Signed-off-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/watchdog'Sascha Hauer2012-07-021-0/+24
|\ \ \
| * | | Add a simple watchdog frameworkJuergen Beisert2012-06-291-0/+24
| | |/ | |/| | | | | | | | | | | | | | | | | | | This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/sparse'Sascha Hauer2012-07-023-2/+4
|\ \ \
| * | | define __user emptySascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no seperate user address space, so do not generate sparse warnings for this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Do not use iomem space for dev_get_mem_regionSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It is mostly used for mmapping sdram which is no iomem. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | qsort: declare strcmp_compar publicallySascha Hauer2012-06-301-0/+2
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2012-07-021-1/+1
|\ \ \
| * | | common: fix typo cammand_var_completeSteffen Trumtrar2012-06-301-1/+1
| |/ / | | | | | | | | | | | | | | | | | | Change function name to command_var_complete in all calls and its declaration. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/dma-cache-align'Sascha Hauer2012-07-022-1/+32
|\ \ \
| * | | USB core: device descriptor using dma_allocSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The device descriptor needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | USB core: allocate setup_packet using dma_allocSascha Hauer2012-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The setup packet needs to be dma save. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>