<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/goldfish, branch master</title>
<subtitle>Linux Kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/linux.git/atom?h=master</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/'/>
<updated>2016-03-12T06:09:09+00:00</updated>
<entry>
<title>staging: goldfish: audio: fix compiliation on arm</title>
<updated>2016-03-12T06:09:09+00:00</updated>
<author>
<name>Greg Hackmann</name>
<email>ghackmann@google.com</email>
</author>
<published>2016-02-26T19:00:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=4532150762ceb0d6fd765ebcb3ba6966fbb8faab'/>
<id>urn:sha1:4532150762ceb0d6fd765ebcb3ba6966fbb8faab</id>
<content type='text'>
We do actually need slab.h, by luck we get it on other platforms but not
always on ARM. Include it properly.

Signed-off-by: Greg Hackmann &lt;ghackmann@google.com&gt;
Signed-off-by: Jin Qian &lt;jinqian@android.com&gt;
Signed-off-by: Alan &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: audio: add devicetree bindings</title>
<updated>2016-03-12T06:09:09+00:00</updated>
<author>
<name>Greg Hackmann</name>
<email>ghackmann@google.com</email>
</author>
<published>2016-02-26T19:00:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=283ded10312a3b75e384313f6f529ec2c636cf2c'/>
<id>urn:sha1:283ded10312a3b75e384313f6f529ec2c636cf2c</id>
<content type='text'>
Introduce devicetree bindings to the Goldfish staging audio driver.

Signed-off-by: Greg Hackmann &lt;ghackmann@google.com&gt;
Signed-off-by: Jin Qian &lt;jinqian@android.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: (coding style) Rewrite comparisons to NULL as "!data-&gt;reg_base"</title>
<updated>2016-02-08T02:29:00+00:00</updated>
<author>
<name>Christian Colic</name>
<email>colic.christian@gmail.com</email>
</author>
<published>2015-11-19T08:47:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=269ad6e018146dafb70c9a40e546f73752d44db2'/>
<id>urn:sha1:269ad6e018146dafb70c9a40e546f73752d44db2</id>
<content type='text'>
Rewrite comparisons to NULL "data-&gt;reg_base == NULL" as "!data-&gt;reg_base" to conform to checkpatch.

Signed-off-by: Christian Colic &lt;colic.christian@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: (coding style) Add spaces around the "+" to conform to checkpatch</title>
<updated>2016-02-08T02:29:00+00:00</updated>
<author>
<name>Christian Colic</name>
<email>colic.christian@gmail.com</email>
</author>
<published>2015-11-19T08:38:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=2ce601b033376905d585e0825d5499616a22b565'/>
<id>urn:sha1:2ce601b033376905d585e0825d5499616a22b565</id>
<content type='text'>
Added a space around the "+" at: "reg_base+addr2" to clear up a checkpatch check.

Signed-off-by: Christian Colic &lt;colic.christian@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: use div64_s64 instead of do_div</title>
<updated>2016-02-08T02:26:36+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2016-02-01T10:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=b0e302b40873c0418aacaad2aa455bf867c9d1a2'/>
<id>urn:sha1:b0e302b40873c0418aacaad2aa455bf867c9d1a2</id>
<content type='text'>
The goldfish nand driver divides a signed 64-bit number (loff_t)
in multiple places using the do_div() function. This has always
been unreliable but now produces a compiler warning (since 4.5-rc1):

goldfish/goldfish_nand.c: In function 'goldfish_nand_erase':
goldfish/goldfish_nand.c:107:91: error: comparison of distinct pointer types lacks a cast [-Werror]
goldfish/goldfish_nand.c: In function 'goldfish_nand_read_oob':
goldfish/goldfish_nand.c:145:91: error: comparison of distinct pointer types lacks a cast [-Werror]

This changes the code to the equivalent div_s64{,_rem} that
works correctly for negative numbers (which we should never
get here).

The warning has shown up on ARM allmodconfig builds after the goldfish
bus driver has become visible on ARM.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Fixes: bd2f348db503 ("goldfish: refactor goldfish platform configs")
Acked-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: goldfish: goldfish_nand: Add DMA Support using dmam_alloc_coherent</title>
<updated>2016-01-29T07:56:47+00:00</updated>
<author>
<name>Shraddha Barke</name>
<email>shraddha.6596@gmail.com</email>
</author>
<published>2016-01-20T21:08:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=3e2fbc7feec4426feba609b94aa89a147e02c67e'/>
<id>urn:sha1:3e2fbc7feec4426feba609b94aa89a147e02c67e</id>
<content type='text'>
Function nand_setup_cmd_params has 2 goals-

-Initialize the cmd_params field so that it can be used to send and read
commands from the device.
-Get a bus address for the allocated memory to transfer to the device.

Replace the combination of devm_kzalloc and _pa() with dmam_alloc_coherent.
Coherent mapping guarantees that the device and CPU are in sync.

Signed-off-by: Shraddha Barke &lt;shraddha.6596@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: Prefer kernel type u32 over uint32_t</title>
<updated>2015-09-13T01:24:38+00:00</updated>
<author>
<name>Ravi Teja Darbha</name>
<email>ravi2j@gmail.com</email>
</author>
<published>2015-09-02T20:01:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=768e66bd0b2ab33f294fec51c3a0820c616ae283'/>
<id>urn:sha1:768e66bd0b2ab33f294fec51c3a0820c616ae283</id>
<content type='text'>
Prefer kernel type u32 over uint32_t to maintain uniformity.

Signed-off-by: Ravi Teja Darbha &lt;ravi2j@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: Fix NULL comparison style</title>
<updated>2015-09-13T01:24:38+00:00</updated>
<author>
<name>Ravi Teja Darbha</name>
<email>ravi2j@gmail.com</email>
</author>
<published>2015-09-02T17:11:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=10d7108466f91edac408c568defd0863965d34ea'/>
<id>urn:sha1:10d7108466f91edac408c568defd0863965d34ea</id>
<content type='text'>
Fixed NULL comparison style as suggested by checkpatch.pl with --strict
option.

Signed-off-by: Ravi Teja Darbha &lt;ravi2j@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: goldfish: Fix pointer cast for 32 bits</title>
<updated>2015-05-31T02:40:14+00:00</updated>
<author>
<name>Peter Senna Tschudin</name>
<email>peter.senna@gmail.com</email>
</author>
<published>2015-05-19T09:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=07d783fd830a49008f3b2764ae7b6033ee1bf329'/>
<id>urn:sha1:07d783fd830a49008f3b2764ae7b6033ee1bf329</id>
<content type='text'>
As the first argument of gf_write64() was of type unsigned long, and as
some calls to gf_write64() were casting the first argument from void *
to u64 the compiler and/or sparse were printing warnings for casts of
wrong sizes when compiling for i386.

This patch changes the type of the first argument of gf_write64() to
const void *, and update calls to the function. This change fixed the
warnings and allowed to remove casts from 3 calls to gf_write64().

In addition gf_write64() was renamed to gf_write_ptr() as the name was
misleading because it only writes 32 bits on 32 bit systems.

gf_write_dma_addr() was added to handle dma_addr_t values which is
used at drivers/staging/goldfish/goldfish_audio.c.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Peter Senna Tschudin &lt;peter.senna@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging/goldfish/goldfish_audio: Fix annotations</title>
<updated>2015-03-20T13:13:17+00:00</updated>
<author>
<name>Ricardo Ribalda Delgado</name>
<email>ricardo.ribalda@gmail.com</email>
</author>
<published>2015-03-16T22:01:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=82fdb8dd11851b4c12da78c4626740c83bc3fc2d'/>
<id>urn:sha1:82fdb8dd11851b4c12da78c4626740c83bc3fc2d</id>
<content type='text'>
dmam_alloc_coherent does not return a __iomem pointer.
here is its prototype:

void * dmam_alloc_coherent(struct device *dev, size_t size,
			   dma_addr_t *dma_handle, gfp_t gfp)

This fixes these sparse warnings:

drivers/staging/goldfish/goldfish_audio.c:134:43: warning: incorrect
type in argument 2 (different address spaces)
drivers/staging/goldfish/goldfish_audio.c:134:43:    expected void const
*from
drivers/staging/goldfish/goldfish_audio.c:134:43:    got char [noderef]
&lt;asn:2&gt;*read_buffer
drivers/staging/goldfish/goldfish_audio.c:167:36: warning: incorrect
type in argument 1 (different address spaces)
drivers/staging/goldfish/goldfish_audio.c:167:36:    expected void *to
drivers/staging/goldfish/goldfish_audio.c:167:36:    got char [noderef]
&lt;asn:2&gt;*[assigned] kbuf
drivers/staging/goldfish/goldfish_audio.c:296:27: warning: incorrect
type in assignment (different address spaces)
drivers/staging/goldfish/goldfish_audio.c:296:27:    expected char
[noderef] &lt;asn:2&gt;*buffer_virt
drivers/staging/goldfish/goldfish_audio.c:296:27:    got void *

Signed-off-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
