Andrey Utkin | 16 May 2013 22:02
Picon
Gravatar

[PATCH] hdio.txt: fix typos

Example code contained incorrect ioctl call name.

Signed-off-by: Andrey Utkin <andrey.krieger.utkin <at> gmail.com>
---
 Documentation/ioctl/hdio.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/ioctl/hdio.txt b/Documentation/ioctl/hdio.txt
index 18eb98c..69e4ed3 100644
--- a/Documentation/ioctl/hdio.txt
+++ b/Documentation/ioctl/hdio.txt
 <at>  <at>  -453,7 +453,7  <at>  <at>  HDIO_GET_BUSSTATE		get the bus state of the hwif
 	usage:

 	  long state;
-	  ioctl(fd, HDIO_SCAN_HWIF, &state);
+	  ioctl(fd, HDIO_GET_BUSSTATE, &state);

 	inputs:		none

 <at>  <at>  -473,7 +473,7  <at>  <at>  HDIO_SET_BUSSTATE		set the bus state of the hwif

 	  int state;
 	  ...
-	  ioctl(fd, HDIO_SCAN_HWIF, state);
+	  ioctl(fd, HDIO_SET_BUSSTATE, state);

 	inputs:
 	  Desired IDE power state.  One of BUSSTATE_OFF, BUSSTATE_ON,
--

-- 
(Continue reading)

Dan Carpenter | 15 May 2013 19:20
Picon
Favicon

[patch] Documentation: allow multiple return statements per function

A surprising number of newbies interpret this section to mean that only
one return statement is allowed per function.  Part of the problem is
that the "one return statement per function" rule is an actual style
guideline that people are used to from other projects.

Signed-off-by: Dan Carpenter <dan.carpenter <at> oracle.com>

diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index e00b8f0..7fe0546 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
 <at>  <at>  -389,7 +389,8  <at>  <at>  Albeit deprecated by some people, the equivalent of the goto statement is
 used frequently by compilers in form of the unconditional jump instruction.

 The goto statement comes in handy when a function exits from multiple
-locations and some common work such as cleanup has to be done.
+locations and some common work such as cleanup has to be done.  If there is no
+cleanup needed then just return directly.

 The rationale is:

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Lad Prabhakar | 15 May 2013 14:52
Picon
Gravatar

[PATCH RFC] media: OF: add field-active and sync-on-green endpoint properties

From: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>

This patch adds "field-active" and "sync-on-green" as part of
endpoint properties and also support to parse them in the parser.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>
Cc: Hans Verkuil <hans.verkuil <at> cisco.com>
Cc: Laurent Pinchart <laurent.pinchart <at> ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab <at> redhat.com>
Cc: Guennadi Liakhovetski <g.liakhovetski <at> gmx.de>
Cc: Sylwester Nawrocki <s.nawrocki <at> samsung.com>
Cc: Sakari Ailus <sakari.ailus <at> iki.fi>
Cc: Grant Likely <grant.likely <at> secretlab.ca>
Cc: Rob Herring <rob.herring <at> calxeda.com>
Cc: Rob Landley <rob <at> landley.net>
Cc: devicetree-discuss <at> lists.ozlabs.org
Cc: linux-doc <at> vger.kernel.org
Cc: linux-kernel <at> vger.kernel.org
Cc: davinci-linux-open-source <at> linux.davincidsp.com
Cc: Kyungmin Park <kyungmin.park <at> samsung.com>
---
 .../devicetree/bindings/media/video-interfaces.txt |    4 ++++
 drivers/media/v4l2-core/v4l2-of.c                  |    6 ++++++
 include/media/v4l2-mediabus.h                      |    2 ++
 3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/video-interfaces.txt b/Documentation/devicetree/bindings/media/video-interfaces.txt
index e022d2d..6bf87d0 100644
--- a/Documentation/devicetree/bindings/media/video-interfaces.txt
+++ b/Documentation/devicetree/bindings/media/video-interfaces.txt
(Continue reading)

Lad Prabhakar | 14 May 2013 13:00
Picon
Gravatar

[PATCH v3] media: i2c: tvp514x: add OF support

From: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>

add OF support for the tvp514x driver. Alongside this patch
removes unnecessary header file inclusion and sorts them alphabetically.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>
Cc: Hans Verkuil <hans.verkuil <at> cisco.com>
Cc: Laurent Pinchart <laurent.pinchart <at> ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab <at> redhat.com>
Cc: Guennadi Liakhovetski <g.liakhovetski <at> gmx.de>
Cc: Sylwester Nawrocki <s.nawrocki <at> samsung.com>
Cc: Sakari Ailus <sakari.ailus <at> iki.fi>
Cc: Grant Likely <grant.likely <at> secretlab.ca>
Cc: Rob Herring <rob.herring <at> calxeda.com>
Cc: Rob Landley <rob <at> landley.net>
Cc: devicetree-discuss <at> lists.ozlabs.org
Cc: linux-doc <at> vger.kernel.org
Cc: linux-kernel <at> vger.kernel.org
Cc: davinci-linux-open-source <at> linux.davincidsp.com
---
Tested on da850-evm.

 RFC v1: https://patchwork.kernel.org/patch/2030061/
 RFC v2: https://patchwork.kernel.org/patch/2061811/

 Changes for current version from RFC v2:
 1: Fixed review comments pointed by Sylwester.

 Changes for v2:
 1: Listed all the compatible property values in the documentation text file.
(Continue reading)

Illia Smyrnov | 14 May 2013 11:53
Picon
Favicon

Re: [PATCH] spi: spi-omap2-mcspi.c: Add dts for slave device configuration.


>  <at>  <at>  -745,6 +781,11  <at>  <at>  static int omap2_mcspi_setup_transfer(struct
> spi_device *spi,
>          mcspi = spi_master_get_devdata(spi->master);
>          spi_cntrl = mcspi->master;
>
> +       if (!cd && spi->dev.of_node) {
> +               cd = omap2_mcspi_get_slave_ctrldata(spi);
 > +               spi->controller_data = cd;

Here you call omap2_mcspi_get_slave_ctrldata function that allocate 
memory for cd structure, but this memory never freed.

Also, why do you read DT data in omap2_mcspi_setup_transfer function?
Under certain conditions the omap2_mcspi_setup_transfer function may be 
calling for each transfer and each call it will check (!cd && 
spi->dev.of_node) condition.

Consider to move DT data read code from omap2_mcspi_setup_transfer to
omap2_mcspi_setup function and free spi->controller_data pointer in 
omap2_mcspi_cleanup function.

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Lad Prabhakar | 14 May 2013 10:06
Picon
Gravatar

[PATCH v2] media: i2c: tvp514x: add OF support

From: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>

add OF support for the tvp514x driver. Alongside this patch
removes unnecessary header file inclusion and sorts them alphabetically.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>
Cc: Hans Verkuil <hans.verkuil <at> cisco.com>
Cc: Laurent Pinchart <laurent.pinchart <at> ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab <at> redhat.com>
Cc: Guennadi Liakhovetski <g.liakhovetski <at> gmx.de>
Cc: Sylwester Nawrocki <s.nawrocki <at> samsung.com>
Cc: Sakari Ailus <sakari.ailus <at> iki.fi>
Cc: Grant Likely <grant.likely <at> secretlab.ca>
Cc: Rob Herring <rob.herring <at> calxeda.com>
Cc: Rob Landley <rob <at> landley.net>
Cc: devicetree-discuss <at> lists.ozlabs.org
Cc: linux-doc <at> vger.kernel.org
Cc: linux-kernel <at> vger.kernel.org
Cc: davinci-linux-open-source <at> linux.davincidsp.com
---
 Tested on da850-evm.

 RFC v1: https://patchwork.kernel.org/patch/2030061/
 RFC v2: https://patchwork.kernel.org/patch/2061811/

 Changes for current version from RFC v2:
 1: Fixed review comments pointed by Sylwester.

 Changes for v2:
 1: Listed all the compatible property values in the documentation text file.
(Continue reading)

Dongjin Kim | 13 May 2013 20:25
Picon
Gravatar

[PATCH] usb: phy: samsung: adding usbphy for Exynos4X12

This patch adds usb host phy (USB 2.0 PHY) support for Samsung Exynos4X12 SoC.
New functions, samsung_exynos4x12_usb2phy_enable/_disable and selecting
reference clock, for Exynos4X12 are added. Since it has different register
set up with Exynos4210 or Exynos5250, "samsung,exynos4x12-usb2phy" is added.

Signed-off-by: Dongjin Kim <tobetter <at> gmail.com>
---
 .../devicetree/bindings/usb/samsung-usbphy.txt     |    5 ++
 drivers/usb/phy/phy-samsung-usb.c                  |   30 ++++++-
 drivers/usb/phy/phy-samsung-usb.h                  |   18 ++++
 drivers/usb/phy/phy-samsung-usb2.c                 |   90 ++++++++++++++++++++
 4 files changed, 140 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/samsung-usbphy.txt b/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
index 33fd354..f805878 100644
--- a/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
+++ b/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
 <at>  <at>  -18,6 +18,11  <at>  <at>  Exynos4210:
 - clock-names: names of clock correseponding IDs clock property as requested
 	       by the controller driver.

+Exynos4x12:
+- compatible : should be "samsung,exynos4x12-usb2phy"
+- reg : base physical address of the phy registers and length of memory mapped
+	region.
+
 Exynos5250:
 - compatible : should be "samsung,exynos5250-usb2phy"
 - reg : base physical address of the phy registers and length of memory mapped
diff --git a/drivers/usb/phy/phy-samsung-usb.c b/drivers/usb/phy/phy-samsung-usb.c
(Continue reading)

Lad Prabhakar | 13 May 2013 07:17
Picon
Gravatar

[PATCH RFC V4 FINAL] media: i2c: mt9p031: add OF support

From: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>

add OF support for the mt9p031 sensor driver.
Alongside this patch sorts the header inclusion alphabetically.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg <at> gmail.com>
Cc: Hans Verkuil <hans.verkuil <at> cisco.com>
Cc: Laurent Pinchart <laurent.pinchart <at> ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab <at> redhat.com>
Cc: Guennadi Liakhovetski <g.liakhovetski <at> gmx.de>
Cc: Sylwester Nawrocki <s.nawrocki <at> samsung.com>
Cc: Sakari Ailus <sakari.ailus <at> iki.fi>
Cc: Grant Likely <grant.likely <at> secretlab.ca>
Cc: Sascha Hauer <s.hauer <at> pengutronix.de>
Cc: Rob Herring <rob.herring <at> calxeda.com>
Cc: Rob Landley <rob <at> landley.net>
Cc: Arnd Bergmann <arnd <at> arndb.de>
Cc: devicetree-discuss <at> lists.ozlabs.org
Cc: davinci-linux-open-source <at> linux.davincidsp.com
Cc: linux-doc <at> vger.kernel.org
Cc: linux-kernel <at> vger.kernel.org
---
 Changes for v4:
 1: Renamed "gpio-reset" property to "reset-gpios".
 2: Dropped assigning the driver data from the of node.

 Changes for v3:
 1: Dropped check if gpio-reset is valid.
 2: Fixed some code nits.
 3: Included a reference to the V4L2 DT bindings documentation.
(Continue reading)

Tanya Brokhman | 12 May 2013 12:34

[PATCH/RESEND v6 3/3] block: Adding ROW scheduling algorithm

This patch adds the implementation of a new scheduling algorithm - ROW.
The policy of this algorithm is to prioritize READ requests over WRITE
as much as possible without starving the WRITE requests.
The requests are kept in queues according to their priority. The dispatch
is done in a Round Robin manner with a different slice for each queue.
READ request queues get bigger dispatch quantum than the write requests.

Signed-off-by: Tatyana Brokhman <tlinder <at> codeaurora.org>

diff --git a/Documentation/block/row-iosched.txt b/Documentation/block/row-iosched.txt
new file mode 100644
index 0000000..0d794ee
--- /dev/null
+++ b/Documentation/block/row-iosched.txt
 <at>  <at>  -0,0 +1,134  <at>  <at> 
+Introduction
+============
+
+The ROW scheduling algorithm will be used in mobile devices as default
+block layer IO scheduling algorithm. ROW stands for "READ Over WRITE"
+which is the main requests dispatch policy of this algorithm.
+
+The ROW IO scheduler was developed with the mobile devices needs in
+mind. In mobile devices we favor user experience upon everything else,
+thus we want to give READ IO requests as much priority as possible.
+The main idea of the ROW scheduling policy is just that:
+- If there are READ requests in pipe - dispatch them, while write
+starvation is considered.
+
+Software description
(Continue reading)

James Hogan | 10 May 2013 14:44
James Hogan <james.hogan <at> imgtec.com>

Subject: [PATCH] clk: add specified-rate clock

[PATCH] clk: add specified-rate clock

The frequency of some SoC's external oscillators (for example TZ1090's
XTAL1) are configured by the board using pull-ups/pull-downs of
configuration pins, the logic values of which are automatically latched
on reset and available in an SoC register. Add a generic clock component
and DT bindings to handle this.

It behaves similar to a fixed rate clock (read-only), except it needs
information about a register field (reg, shift, width), and the
clock-frequency is a mapping from register field values to clock
frequencies.

Signed-off-by: James Hogan <james.hogan <at> imgtec.com>
Cc: Mike Turquette <mturquette <at> linaro.org>
Cc: Grant Likely <grant.likely <at> secretlab.ca>
Cc: Rob Herring <rob.herring <at> calxeda.com>
Cc: Rob Landley <rob <at> landley.net>
Cc: Arnd Bergmann <arnd <at> arndb.de>
Cc: Linus Walleij <linus.walleij <at> linaro.org>
Cc: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
Cc: Lars-Peter Clausen <lars <at> metafoo.de>
---
 .../devicetree/bindings/clock/specified-clock.txt  |  39 ++++
 drivers/clk/Makefile                               |   1 +
 drivers/clk/clk-specified-rate.c                   | 201 +++++++++++++++++++++
 include/linux/clk-provider.h                       |  37 ++++
 4 files changed, 278 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/specified-clock.txt
 create mode 100644 drivers/clk/clk-specified-rate.c

diff --git a/Documentation/devicetree/bindings/clock/specified-clock.txt b/Documentation/devicetree/bindings/clock/specified-clock.txt
(Continue reading)

Christian Daudt | 9 May 2013 07:55
Favicon

[PATCH] ARM: mmc: bcm281xx SDHCI driver

Add SDHCI driver for the Broadcom 281xx SoCs. Also
add bindings for it into bcm281xx dts files.
Still missing:
 - power managemement

Signed-off-by: Christian Daudt <csd <at> broadcom.com>

diff --git a/Documentation/devicetree/bindings/mmc/bcm,kona-sdhci.txt b/Documentation/devicetree/bindings/mmc/bcm,kona-sdhci.txt
new file mode 100644
index 0000000..ad1c4bd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/bcm,kona-sdhci.txt
 <at>  <at>  -0,0 +1,16  <at>  <at> 
+Broadcom BCM281xx SDHCI driver
+
+This file documents differences between the core properties in mmc.txt
+and the properties in the bcm281xx driver.
+
+Required properties:
+- compatible : Should be "bcm,kona-sdhci"
+
+Example:
+
+sdio2: sdio <at> 0x3f1a0000 {
+	compatible = "bcm,kona-sdhci";
+	reg = <0x3f1a0000 0x10000>;
+	interrupts = <0x0 74 0x4>;
+};
+
diff --git a/arch/arm/boot/dts/bcm11351-brt.dts b/arch/arm/boot/dts/bcm11351-brt.dts
(Continue reading)


Gmane