<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/drivers/mailbox, branch v4.8.6</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=v4.8.6</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=v4.8.6'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2016-08-29T13:13:39+00:00</updated>
<entry>
<title>fix:mailbox:bcm-pdc-mailbox:mark symbols static where possible</title>
<updated>2016-08-29T13:13:39+00:00</updated>
<author>
<name>Baoyou Xie</name>
<email>baoyou.xie@linaro.org</email>
</author>
<published>2016-08-27T17:15:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=a75e4a85f49e7f5d71cf0e425bc009c15ad3b5c4'/>
<id>urn:sha1:a75e4a85f49e7f5d71cf0e425bc009c15ad3b5c4</id>
<content type='text'>
We get 2 warnings when biuld kernel with W=1:
drivers/mailbox/bcm-pdc-mailbox.c:472:6: warning: no previous prototype for 'pdc_setup_debugfs' [-Wmissing-prototypes]
drivers/mailbox/bcm-pdc-mailbox.c:488:6: warning: no previous prototype for 'pdc_free_debugfs' [-Wmissing-prototypes]

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie &lt;baoyou.xie@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: bcm-pdc: potential NULL dereference in pdc_shutdown()</title>
<updated>2016-08-29T13:11:15+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2016-08-04T05:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=068cf29eca4ef25556496635b978143b170b862c'/>
<id>urn:sha1:068cf29eca4ef25556496635b978143b170b862c</id>
<content type='text'>
We can't pass NULL pointers to pdc_ring_free() so I moved the check for
NULL.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: Add HAS_DMA Kconfig dependency to BCM_PDC_MBOX</title>
<updated>2016-08-29T13:09:46+00:00</updated>
<author>
<name>Rob Rice</name>
<email>rrice@broadcom.com</email>
</author>
<published>2016-08-01T17:03:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=e0c6fba45ab730afc22fa01ac1c42459893252ec'/>
<id>urn:sha1:e0c6fba45ab730afc22fa01ac1c42459893252ec</id>
<content type='text'>
Add HAS_DMA Kconfig dependency to BCM_PDC_MBOX to avoid link
error on some platforms.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Rob Rice &lt;rrice@broadcom.com&gt;
Acked-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: Fix format and type mismatches in Broadcom PDC driver</title>
<updated>2016-07-28T15:57:31+00:00</updated>
<author>
<name>Rob Rice</name>
<email>rrice@broadcom.com</email>
</author>
<published>2016-07-28T15:54:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=a68b216676e89fa959a23b583b56f9ce7df81b37'/>
<id>urn:sha1:a68b216676e89fa959a23b583b56f9ce7df81b37</id>
<content type='text'>
Fix format and type mismatches in a couple debug prints in the
Broadcom PDC driver. Use %pad for dma_addr_t and %pa for
resource_size_t.

Signed-off-by: Rob Rice &lt;rob.rice@broadcom.com&gt;
Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: Add Broadcom PDC mailbox driver</title>
<updated>2016-07-28T04:04:47+00:00</updated>
<author>
<name>Rob Rice</name>
<email>rrice@broadcom.com</email>
</author>
<published>2016-06-30T19:59:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=a24532f8d17b7211dfb0259920edfcffc8306606'/>
<id>urn:sha1:a24532f8d17b7211dfb0259920edfcffc8306606</id>
<content type='text'>
The Broadcom PDC mailbox driver is a mailbox controller that
manages data transfers to and from one or more offload engines.

Signed-off-by: Rob Rice &lt;rob.rice@broadcom.com&gt;
Reviewed-by: Scott Branden &lt;scott.branden@broadcom.com&gt;
Reviewed-by: Ray Jui &lt;ray.jui@broadcom.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: pl320: remove __raw IO</title>
<updated>2016-06-24T08:02:31+00:00</updated>
<author>
<name>Ben Dooks</name>
<email>ben.dooks@codethink.co.uk</email>
</author>
<published>2016-06-22T09:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9ac3e85a5c5c33ac99b6f093e886ecb8849919d2'/>
<id>urn:sha1:9ac3e85a5c5c33ac99b6f093e886ecb8849919d2</id>
<content type='text'>
The use of __raw IO accesors is not endian safe and should be used
sparingly. The relaxed variants should be as lightweight and also
are endian safe.

Note, this has not been run-time tested.

Signed-off-by: Ben Dooks &lt;ben.dooks@codethink.co.uk&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: mailbox-test: set tdev-&gt;signal to NULL after freeing</title>
<updated>2016-06-12T09:43:04+00:00</updated>
<author>
<name>Sudeep Holla</name>
<email>sudeep.holla@arm.com</email>
</author>
<published>2016-05-24T16:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9ef3c5112139cc5c5666ee096e05bc1e00e94015'/>
<id>urn:sha1:9ef3c5112139cc5c5666ee096e05bc1e00e94015</id>
<content type='text'>
tdev-&gt;signal is not set NULL after it's freed. This will cause random
exceptions when the stale pointer is accessed after tdev-&gt;signal is
freed. Also, since tdev-&gt;signal allocation is skipped the next time
it's written, this leads to continuous fault finally leading to the
total death of the system.

Fixes: d1c2f87c9a8f ("mailbox: mailbox-test: Prevent memory leak")
Signed-off-by: Sudeep Holla &lt;sudeep.holla@arm.com&gt;
Acked-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox: Fix devm_ioremap_resource error detection code</title>
<updated>2016-05-08T17:14:46+00:00</updated>
<author>
<name>Amitoj Kaur Chawla</name>
<email>amitoj1606@gmail.com</email>
</author>
<published>2016-05-05T12:20:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=c430cf376fee0b03d9c9293615f9737649de1b12'/>
<id>urn:sha1:c430cf376fee0b03d9c9293615f9737649de1b12</id>
<content type='text'>
devm_ioremap_resource returns an ERR_PTR value, not NULL,
on failure.

The Coccinelle semantic patch used to make this change is
as follows:
@@
expression e,e1;
statement S;
@@

*e = devm_ioremap_resource(...);
if (!e1) S

Signed-off-by: Amitoj Kaur Chawla &lt;amitoj1606@gmail.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox/omap: kill omap_mbox_{save/restore}_ctx() functions</title>
<updated>2016-04-26T04:49:38+00:00</updated>
<author>
<name>Suman Anna</name>
<email>s-anna@ti.com</email>
</author>
<published>2016-04-06T23:37:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=dd28216528cf67339cd4f5854166fbd4eefd7fa8'/>
<id>urn:sha1:dd28216528cf67339cd4f5854166fbd4eefd7fa8</id>
<content type='text'>
The omap_mbox_save_ctx() and omap_mbox_restore_ctx() API were
previously provided to OMAP mailbox clients to save and restore
the mailbox context during system suspend/resume. The save and
restore functionality is now implemented through System PM driver
callbacks, and there is no need for these functions, so kill these
API.

Signed-off-by: Suman Anna &lt;s-anna@ti.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
<entry>
<title>mailbox/omap: check for any unread messages during suspend</title>
<updated>2016-04-26T04:49:38+00:00</updated>
<author>
<name>Suman Anna</name>
<email>s-anna@ti.com</email>
</author>
<published>2016-04-06T23:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9f0cee984a25a34c169dac67a11d9c951727e47a'/>
<id>urn:sha1:9f0cee984a25a34c169dac67a11d9c951727e47a</id>
<content type='text'>
The OMAP mailbox driver is used by clients to communicate with remote
processors in general. The mailbox clients are expected to have stopped
communicating with these remote processors during a system suspend. The
OMAP mailbox fifos are expected to not have any messages as such. Add a
check for any pending unprocessed messages in the suspend callback, to
detect any communication protocol issues of the mailbox clients. The
system suspend is aborted if any messages are found.

Signed-off-by: Suman Anna &lt;s-anna@ti.com&gt;
Signed-off-by: Jassi Brar &lt;jaswinder.singh@linaro.org&gt;
</content>
</entry>
</feed>
