<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/media/v4l2-cci.h, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-12-13T12:21:19Z</updated>
<entry>
<title>media: v4l2-cci: Add support for little-endian encoded registers</title>
<updated>2023-12-13T12:21:19Z</updated>
<author>
<name>Alexander Stein</name>
</author>
<published>2023-11-02T09:50:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d92e7a013ff33f4e0b31bbf768d0c85a8acefebf'/>
<id>urn:sha1:d92e7a013ff33f4e0b31bbf768d0c85a8acefebf</id>
<content type='text'>
Some sensors, e.g. Sony IMX290, are using little-endian registers. Add
support for those by encoding the endianness into Bit 20 of the register
address.

Fixes: af73323b9770 ("media: imx290: Convert to new CCI register access helpers")
Cc: stable@vger.kernel.org
Signed-off-by: Alexander Stein &lt;alexander.stein@ew.tq-group.com&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
[Sakari Ailus: Fixed commit message.]
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: v4l: cci: Add macros to obtain register width and address</title>
<updated>2023-12-04T10:21:46Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2023-11-07T15:42:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd93cc245dfe334c38da98c14b34f9597e1b4ea6'/>
<id>urn:sha1:cd93cc245dfe334c38da98c14b34f9597e1b4ea6</id>
<content type='text'>
Add CCI_REG_WIDTH() macro to obtain register width in bits and similarly,
CCI_REG_WIDTH_BYTES() to obtain it in bytes.

Also add CCI_REG_ADDR() macro to obtain the address of a register.

Use both macros in v4l2-cci.c, too.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: v4l: cci: Add driver-private bit definitions</title>
<updated>2023-12-04T10:21:46Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2023-11-07T09:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94ed00981b5167e22f66fd5bfedcc7cc7fd72551'/>
<id>urn:sha1:94ed00981b5167e22f66fd5bfedcc7cc7fd72551</id>
<content type='text'>
Provide a few bits for drivers to store private information on register
definitions.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: v4l: cci: Include linux/bits.h</title>
<updated>2023-12-04T10:21:46Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2023-11-07T08:45:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eba5058633b4d11e2a4d65eae9f1fce0b96365d9'/>
<id>urn:sha1:eba5058633b4d11e2a4d65eae9f1fce0b96365d9</id>
<content type='text'>
linux/bits.h is needed for GENMASK(). Include it.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
</content>
</entry>
<entry>
<title>media: Add MIPI CCI register access helper functions</title>
<updated>2023-08-10T05:58:38Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2023-06-27T12:51:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=613cbb91e9cee7cf5a61f0816d2acab7bc117407'/>
<id>urn:sha1:613cbb91e9cee7cf5a61f0816d2acab7bc117407</id>
<content type='text'>
The CSI2 specification specifies a standard method to access camera sensor
registers called "Camera Control Interface (CCI)".

This uses either 8 or 16 bit (big-endian wire order) register addresses
and supports 8, 16, 24 or 32 bit (big-endian wire order) register widths.

Currently a lot of Linux camera sensor drivers all have their own custom
helpers for this, often copy and pasted from other drivers.

Add a set of generic helpers for this so that all sensor drivers can
switch to a single common implementation.

These helpers take an extra optional "int *err" function parameter,
this can be used to chain a bunch of register accesses together with
only a single error check at the end, rather than needing to error
check each individual register access. The first failing call will
set the contents of err to a non 0 value and all other calls will
then become no-ops.

Link: https://lore.kernel.org/linux-media/59aefa7f-7bf9-6736-6040-39551329cd0a@redhat.com/

Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Tested-by: Tommaso Merciai &lt;tomm.merciai@gmail.com&gt;
Reviewed-by: Tommaso Merciai &lt;tomm.merciai@gmail.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
</content>
</entry>
</feed>
