<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/sysdev/qe_lib/qe.c, branch linux-2.6.34.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-11-12T03:43:27Z</updated>
<entry>
<title>powerpc/qe: Implement QE driver for handling resume on MPC85xx</title>
<updated>2009-11-12T03:43:27Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2009-09-15T21:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fdfde24e108b49373f8702d5b9981217f35315d8'/>
<id>urn:sha1:fdfde24e108b49373f8702d5b9981217f35315d8</id>
<content type='text'>
So far the driver is used to reset QE upon resume, which is needed on
85xx. Later we can move some QE initialization steps into probe().

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: QE also shuts down on MPC8568</title>
<updated>2009-11-12T03:43:15Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2009-09-15T21:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46d2293470c18c1bb632083bf0b589deff30ccae'/>
<id>urn:sha1:46d2293470c18c1bb632083bf0b589deff30ccae</id>
<content type='text'>
It appears that QE shuts down on all MPC85xx CPUs (i.e. MPC8568 and
MPC8569) and thus needs reset upon resume.

So modify qe_alive_during_sleep() to account that.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: Make qe_reset() code path safe for repeated invocation</title>
<updated>2009-11-12T03:43:13Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2009-09-15T21:43:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c7b87b0857f0e17be982fd840046444a83c3996'/>
<id>urn:sha1:0c7b87b0857f0e17be982fd840046444a83c3996</id>
<content type='text'>
For MPC8569 CPUs we'll need to reset QE after each suspend, so make
qe_reset() code path suitable for repeated invocation, that is:

- Don't initialize rheap structures if already initialized;
- Don't allocate muram for SDMA if already allocated, just reinitialize
  registers with previously allocated muram offset;
- Remove __init attributes from qe_reset() and cpm_muram_init();

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: Increase MAX_QE_RISC to 4</title>
<updated>2009-11-12T03:43:09Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2009-08-27T17:30:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=98eaa0987afdcab0929dc205edb5c492cf66a370'/>
<id>urn:sha1:98eaa0987afdcab0929dc205edb5c492cf66a370</id>
<content type='text'>
MPC8569 CPUs have four QE RISCs, so we need to increase MAX_QE_RISC
constant, otherwise qe_upload_firmware() fails at sanity checking.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: Implement qe_alive_during_sleep() helper function</title>
<updated>2009-08-31T04:51:33Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2009-08-27T07:35:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed24157ede901608e00f28b4897398a373e1e926'/>
<id>urn:sha1:ed24157ede901608e00f28b4897398a373e1e926</id>
<content type='text'>
In some CPUs (i.e. MPC8569) QE shuts down completely during sleep,
drivers may want to know that to reinitialize registers and buffer
descriptors.

This patch implements qe_alive_during_sleep() helper function, so far
it just checks if MPC8569-compatible power management controller is
present, which is a sign that QE turns off during sleep.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: add polling timeout to qe_issue_cmd()</title>
<updated>2009-06-23T13:09:41Z</updated>
<author>
<name>Timur Tabi</name>
</author>
<published>2009-05-26T15:21:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f49156ea1bf3bccf45a01351cf3db2b5f6a8597e'/>
<id>urn:sha1:f49156ea1bf3bccf45a01351cf3db2b5f6a8597e</id>
<content type='text'>
The qe_issue_cmd() function (Freescale PowerPC QUICC Engine library) polls
on a register until a status bit changes, but does not include a timeout
to handle the situation if the bit never changes.  Change the code to use
the new spin_event_timeout() macro, which simplifies polling on a register
without a timeout.

Signed-off-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: update QE Serial Number</title>
<updated>2009-05-19T05:50:24Z</updated>
<author>
<name>Haiying Wang</name>
</author>
<published>2009-05-01T19:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=98ca77af23da6682bb3e34961a3f32e2c064a4ce'/>
<id>urn:sha1:98ca77af23da6682bb3e34961a3f32e2c064a4ce</id>
<content type='text'>
The latest QE chip may have more Serial Number(SNUM)s of thread to use. We
will get the number of SNUMs from device tree by reading the new property
"fsl,qe-num-snums", and set 28 as the default number of SNUMs so that it is
compatible with the old QE chips' device trees which don't have this new
property. The macro QE_NUM_OF_SNUM is defined as the maximum number in QE
snum table which is 256.

Also we update the snum_init[] array with 18 more new SNUMs which are
confirmed to be useful on new chip.

Signed-off-by: Haiying Wang &lt;Haiying.Wang@freescale.com&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: update risc allocation for QE</title>
<updated>2009-05-19T05:50:22Z</updated>
<author>
<name>Haiying Wang</name>
</author>
<published>2009-05-01T19:40:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06c4435021f4856261edd01e2691071edeb8fa51'/>
<id>urn:sha1:06c4435021f4856261edd01e2691071edeb8fa51</id>
<content type='text'>
Change the RISC allocation to macros instead of enum, add function to read
the number of risc engines from the new property "fsl,qe-num-riscs" under
the qe node in dts. Add new property "fsl,qe-num-riscs" description in
qe.txt

Signed-off-by: Haiying Wang &lt;Haiying.Wang@freescale.com&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc/qe: Move cmxgcr_lock definition from the ucc.c into the qe.c</title>
<updated>2008-12-03T16:47:36Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2008-11-11T15:31:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=09a3fba8c132a55f153fd65fc1085b717a6193c8'/>
<id>urn:sha1:09a3fba8c132a55f153fd65fc1085b717a6193c8</id>
<content type='text'>
With this patch we can compile the qe_lib/usb.c without the UCC
support (that is, without UCC_GETH and/or SERIAL_QE).

Fixes following link error (CONFIG_SMP should be =y to trigger this):

arch/powerpc/sysdev/built-in.o: In function `qe_usb_clock_set':
(.text+0x3cae): undefined reference to `cmxgcr_lock'
make: *** [.tmp_vmlinux1] Error 1

While at it, also add missing spinlock.h includes.

Signed-off-by: Anton Vorontsov &lt;avorontsov@ru.mvista.com&gt;
Acked-By: Timur Tabi &lt;timur@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>powerpc: Fix a bunch of sparse warnings in the qe_lib</title>
<updated>2008-07-16T22:57:45Z</updated>
<author>
<name>Andy Fleming</name>
</author>
<published>2008-05-07T18:19:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7e1cc9c55a2a4af62f30fade62fb612a243def39'/>
<id>urn:sha1:7e1cc9c55a2a4af62f30fade62fb612a243def39</id>
<content type='text'>
Mostly having to do with not marking things __iomem.  And some failure
to use appropriate accessors to read MMIO regs.

Signed-off-by: Andy Fleming &lt;afleming@freescale.com&gt;
Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
</entry>
</feed>
