Re: [PATCH 0/5] Convert more books to ReST

2017-05-15 Thread Boris Brezillon
On Sat, 13 May 2017 08:10:53 -0300 Mauro Carvalho Chehab wrote: > This patch series convert the following books to ReST: > - librs > - mtdnand > - sh > > And it is based on my previous series of conversion patches. > > After this series, there will be just one DocBook pending

Re: [PATCH 0/5] Convert more books to ReST

2017-05-16 Thread Boris Brezillon
Hi Jonathan, On Mon, 15 May 2017 11:15:19 -0600 Jonathan Corbet wrote: > On Mon, 15 May 2017 14:09:12 +0200 > Boris Brezillon wrote: > > > > mtd: adjust kernel-docs to avoid Sphinx/kerneldoc warnings > > > > Not sure how you plan to merge these changes

Re: [PATCH v2 37/53] docs-rst: convert mtdnand book to ReST

2017-05-16 Thread Boris Brezillon
On Tue, 16 May 2017 09:16:29 -0300 Mauro Carvalho Chehab wrote: > Use pandoc to convert documentation to ReST by calling > Documentation/sphinx/tmplcvt script. > > The tables were manually adjusted to fit into 80 columns. > > Signed-off-by: Mauro Carvalho Chehab Acked-b

Re: [PATCH v2 38/53] mtdnand.rst: group the "::" with previous line

2017-05-16 Thread Boris Brezillon
t; by: > OR-ed > > To reflect its true meaning. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Boris Brezillon > --- > Documentation/driver-api/mtdnand.rst | 24 +++- > 1 file changed, 7 insertions(+), 17 deletions(-) > > diff --git

Re: [PATCH v2 39/53] mtd: adjust kernel-docs to avoid Sphinx/kerneldoc warnings

2017-05-16 Thread Boris Brezillon
; blank line; unexpected unindent. > ./drivers/mtd/nand/nand_base.c:1161: ERROR: Unexpected indentation. > ./drivers/mtd/nand/nand_base.c:1162: WARNING: Block quote ends without a > blank line; unexpected unindent. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Boris Brezill

Re: [RFC 0/5] Add I3C subsystem

2017-12-12 Thread Boris Brezillon
On Mon, 31 Jul 2017 21:17:45 +0200 Wolfram Sang wrote: > Hi Boris, > > > This patch series is a proposal for a new I3C [1] subsystem. > > Nice. Good luck with that! > > Some hi-level comments from me related to I2C. I can't say a lot more > because the specs are not public :( > > > - the bu

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-12-13 Thread Boris Brezillon
Hi Greg, On Tue, 1 Aug 2017 19:13:27 -0700 Greg Kroah-Hartman wrote: > > > > Unless you see a good reason to not use a R/W lock, I'd like to keep it > > > > this way because master IPs are likely to implement advanced queuing > > > > mechanism (allows one to queue new transfers even if the maste

[PATCH v2 6/7] i3c: master: Add driver for Cadence IP

2017-12-14 Thread Boris Brezillon
Add a driver for Cadence I3C master IP. Signed-off-by: Boris Brezillon --- Changes in v2: - Add basic IBI support. Note that the IP is not really reliable with regards to IBI because you can't extract IBI payloads as soon as you have more than one IBI waiting in the HW queue. Th

[PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-14 Thread Boris Brezillon
A new I3C subsystem has been added and a generic description has been created to represent the I3C bus and the devices connected on it. Document this generic representation. Signed-off-by: Boris Brezillon --- Changes in v2: - Define how to describe I3C devices in the DT and when it should be

[PATCH v2 1/7] i2c: Export of_i2c_get_board_info()

2017-12-14 Thread Boris Brezillon
to let the I3C core parse the I2C device nodes by itself and initialize the bus. Signed-off-by: Boris Brezillon --- Changes in v2: - fix memset() call - rebase on v4.15-rc1 --- drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-core-of.c | 66 ++--- incl

[PATCH v2 0/7] Add the I3C subsystem

2017-12-14 Thread Boris Brezillon
x27;ll let you find the link in the doc, this way maybe I'll have reviews on the doc itself :-). Thanks, Boris Boris Brezillon (7): i2c: Export of_i2c_get_board_info() i3c: Add core I3C infrastructure docs: driver-api: Add I3C documentation i3c: Add sysfs ABI spec dt-bindings: i3c

[PATCH v2 7/7] dt-bindings: i3c: Document Cadence I3C master bindings

2017-12-14 Thread Boris Brezillon
Document Cadence I3C master DT bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/i3c/cdns,i3c-master.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt diff --git a/Documentation

[PATCH v2 3/7] docs: driver-api: Add I3C documentation

2017-12-14 Thread Boris Brezillon
Add the I3C documentation describing the protocol, the master driver API and the device driver API. Signed-off-by: Boris Brezillon --- Changes in v2: - Moved out of patch "i3c: Add core I3C infrastructure" - Add link to the I3C spec - Move rst files in Documentation/driv

[PATCH v2 4/7] i3c: Add sysfs ABI spec

2017-12-14 Thread Boris Brezillon
Document sysfs files/directories/symlinks exposed by the I3C subsystem. Signed-off-by: Boris Brezillon --- Changes in v2: - new patch --- Documentation/ABI/testing/sysfs-bus-i3c | 95 + 1 file changed, 95 insertions(+) create mode 100644 Documentation/ABI

Re: [PATCH v2 6/7] i3c: master: Add driver for Cadence IP

2017-12-14 Thread Boris Brezillon
Hi Randy, On Thu, 14 Dec 2017 11:54:16 -0800 Randy Dunlap wrote: > On 12/14/2017 07:16 AM, Boris Brezillon wrote: > > Add a driver for Cadence I3C master IP. > > > > Signed-off-by: Boris Brezillon > > --- > > Changes in v2: > > - Add basic IBI support.

Re: [PATCH v2 6/7] i3c: master: Add driver for Cadence IP

2017-12-14 Thread Boris Brezillon
On Thu, 14 Dec 2017 12:25:14 -0800 Randy Dunlap wrote: > On 12/14/2017 12:17 PM, Boris Brezillon wrote: > >>> + events.events = I3C_CCC_EVENT_HJ | I3C_CCC_EVENT_MR; > >>> + ret = i3c_master_enec_locked(m, I3C_BROADCAST_ADDR, &events); > >>> + if (ret) &

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-16 Thread Boris Brezillon
On Sat, 16 Dec 2017 11:20:40 -0600 Rob Herring wrote: > On Thu, Dec 14, 2017 at 04:16:08PM +0100, Boris Brezillon wrote: > > A new I3C subsystem has been added and a generic description has been > > created to represent the I3C bus and the devices connected on it. > > >

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-18 Thread Boris Brezillon
On Sun, 17 Dec 2017 14:32:04 -0800 Randy Dunlap wrote: > On 12/14/17 07:16, Boris Brezillon wrote: > > Add core infrastructure to support I3C in Linux and document it. > > > > Signed-off-by: Boris Brezillon > > --- > > drivers/Kconfig

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 09:52:50 +0100 Greg Kroah-Hartman wrote: > On Thu, Dec 14, 2017 at 04:16:05PM +0100, Boris Brezillon wrote: > > +/** > > + * i3c_device_match_id() - Find the I3C device ID entry matching an I3C dev > > + * @i3cdev: the I3C device we're searching a m

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 10:09:00 +0100 Boris Brezillon wrote: > On Tue, 19 Dec 2017 09:52:50 +0100 > Greg Kroah-Hartman wrote: > > > On Thu, Dec 14, 2017 at 04:16:05PM +0100, Boris Brezillon wrote: > > > +/** > > > + * i3c_device_match_id() - Find the I3

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2017-12-19 Thread Boris Brezillon
On Tue, 19 Dec 2017 10:21:19 +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 19, 2017 at 10:13:36AM +0100, Boris Brezillon wrote: > > On Tue, 19 Dec 2017 10:09:00 +0100 > > Boris Brezillon wrote: > > > > > On Tue, 19 Dec 2017 09:52:50 +0100 > > > Greg Kr

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2017-12-21 Thread Boris Brezillon
On Wed, 20 Dec 2017 12:06:45 -0600 Rob Herring wrote: > On Sat, Dec 16, 2017 at 07:35:37PM +0100, Boris Brezillon wrote: > > On Sat, 16 Dec 2017 11:20:40 -0600 > > Rob Herring wrote: > > > > > On Thu, Dec 14, 2017 at 04:16:08PM +0100, Boris Brezillon wrote: &

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2018-01-07 Thread Boris Brezillon
Hi Rob, On Tue, 26 Dec 2017 12:29:34 -0600 Rob Herring wrote: > >> > > > +Optional properties > >> > > > +--- > >> > > > +- reg: static address. Only valid is the device has a static > >> > > > address. > >> > > > +- i3c-dynamic-address: dynamic address to be assigned to this >

Re: [PATCH v2 5/7] dt-bindings: i3c: Document core bindings

2018-01-22 Thread Boris Brezillon
Hi Rob, On Sun, 7 Jan 2018 15:14:25 +0100 Boris Brezillon wrote: > Hi Rob, > > On Tue, 26 Dec 2017 12:29:34 -0600 > Rob Herring wrote: > > > >> > > > +Optional properties > > >> > > > +--- > > >>

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-21 Thread Boris Brezillon
Hi Greg, On Tue, 19 Dec 2017 10:36:43 +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 19, 2017 at 10:28:58AM +0100, Boris Brezillon wrote: > > On Tue, 19 Dec 2017 10:21:19 +0100 > > Greg Kroah-Hartman wrote: > > > > > On Tue, Dec 19, 2017 at 10:13:36A

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-23 Thread Boris Brezillon
Hi Vitor, On Fri, 23 Feb 2018 16:56:14 + Vitor Soares wrote: > Hi Boris, > > Às 3:16 PM de 12/14/2017, Boris Brezillon escreveu: > > + > > +enum i3c_addr_slot_status i3c_bus_get_addr_slot_status(struct i3c_bus *bus, > > +

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-23 Thread Boris Brezillon
hat is the addr? It's the payload passed to SETDASA and SETNEWDA, hence the generic _setda suffix. addr is the new dynamic address assigned to the device. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -- To unsu

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-26 Thread Boris Brezillon
d that be okay if we pass an i3c_device object to ->priv_xfers()? > > > >> This could be also applied to i2c transfers. > > Not really. The max SCL frequency is something that applies to the > > whole bus, because all I2C devices have to decode the addres

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-26 Thread Boris Brezillon
On Mon, 26 Feb 2018 21:36:07 +0100 Boris Brezillon wrote: > > >>> + > > >>> +/** > > >>> + * struct i3c_master_controller_ops - I3C master methods > > >>> + * @bus_init: hook responsible for the I3C bus initialization. This > >

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-26 Thread Boris Brezillon
On Mon, 26 Feb 2018 21:40:32 +0100 Boris Brezillon wrote: > On Mon, 26 Feb 2018 21:36:07 +0100 > Boris Brezillon wrote: > > > > >>> + > > > >>> +/** > > > >>> + * struct i3c_master_controller_ops - I3C master methods > >

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-27 Thread Boris Brezillon
e can automate things even more > > and completely implement DAA from the core? I doubt it, because the way > > the core will trigger DAA, expose discovered devices or allow you to > > declare manually assigned addresses is likely to be > > controller-dependent. >

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-27 Thread Boris Brezillon
ority (WRT IBIs). But honestly, that's the only use case I can think of, and to me, it sounds like an advanced feature we may want to support at some point, but don't need in the initial implementation. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineer

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-27 Thread Boris Brezillon
; As we can see 2nd approach is more generic and do not see any reason to add > special handling for SETDASA unless there is any reasonable reason to do > otherwise. I agree on one thing: as long as you don't have to reserve a specific dynamic address, SETDASA is not required. At least,

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-27 Thread Boris Brezillon
it cannot be considered as utility to > define priorities for all devices before ENTDAA. We have SETNEWDA for other use cases: say you want one of your device to have an higher priority, you can just manually set a new dynamic address that is lower than any other devices on the bus (I plan to ex

Re: [PATCH 00/47] arch-removal: device drivers

2018-03-14 Thread Boris Brezillon
o take the mtd patches through the MTD tree. As you've probably noticed, nand code has been moved around and it's easier for me to carry those 2 simple changes in my tree than creating an immutable branch. Let me know if this is a problem. Regards, Boris -- Boris Brezillon, B

[PATCH v3 03/11] docs: driver-api: Add I3C documentation

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon Add the I3C documentation describing the protocol, the master driver API and the device driver API. Signed-off-by: Boris Brezillon --- Changes in v2: - Moved out of patch "i3c: Add core I3C infrastructure" - Add link to the I3C spec - Move rst files in Doc

[PATCH v3 10/11] gpio: Add a driver for Cadence I3C GPIO expander

2018-03-23 Thread Boris Brezillon
Add a driver for Cadence I3C GPIO expander. Signed-off-by: Boris Brezillon --- drivers/gpio/Kconfig | 11 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-cdns-i3c.c | 380 +++ 3 files changed, 392 insertions(+) create mode 100644

[PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander

2018-03-23 Thread Boris Brezillon
Document the Cadence I3C gpio expander bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/gpio/gpio-cdns-i3c.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-cdns-i3c.txt diff --git a

[PATCH v3 08/11] i3c: master: Add driver for Cadence IP

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon Add a driver for Cadence I3C master IP. Signed-off-by: Boris Brezillon --- Changes in v3: - Adjust to match I3C framework changes - Implement support the CMD RESPONSE QUEUE and IBI QUEUE added in the latest revision of Cadence master IP - Remove support for HDR modes

[PATCH v3 09/11] dt-bindings: i3c: Document Cadence I3C master bindings

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon Document Cadence I3C master DT bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/i3c/cdns,i3c-master.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt

[PATCH v3 00/11] Add the I3C subsystem

2018-03-23 Thread Boris Brezillon
, this way maybe I'll have reviews on the doc itself :-). Thanks, Boris Boris Brezillon (11): i2c: Export of_i2c_get_board_info() i3c: Add core I3C infrastructure docs: driver-api: Add I3C documentation i3c: Add sysfs ABI spec dt-bindings: i3c: Document core bindings dt-bi

[PATCH v3 07/11] MAINTAINERS: Add myself as the I3C subsystem maintainer

2018-03-23 Thread Boris Brezillon
Create an entry for the I3C subsystem and mark it as maintained by me. There's no official git repository, patchwork instance, mailing list or website yet, but this will be added after the subsystem has been accepted. Signed-off-by: Boris Brezillon --- MAINTAINERS | 9 + 1 file ch

[PATCH v3 01/11] i2c: Export of_i2c_get_board_info()

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon I3C busses have to know about all I2C devices connected on the I3C bus to properly initialize the I3C master, and I2C frames can't be sent on the bus until this initialization is done. We can't let the I2C core parse the DT and instantiate I2C devices as p

[PATCH v3 06/11] dt-bindings: i3c: Add macros to help fill I3C/I2C device's reg property

2018-03-23 Thread Boris Brezillon
The reg property of devices connected to an I3C bus have 3 cells, and filling them manually is not trivial. Provides macros to help doing that. Signed-off-by: Boris Brezillon --- include/dt-bindings/i3c/i3c.h | 28 1 file changed, 28 insertions(+) create mode

[PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon A new I3C subsystem has been added and a generic description has been created to represent the I3C bus and the devices connected on it. Document this generic representation. Signed-off-by: Boris Brezillon --- Changes in v3: - Rename {i2c,i3c}-scl-frequency DT prop into

[PATCH v3 04/11] i3c: Add sysfs ABI spec

2018-03-23 Thread Boris Brezillon
From: Boris Brezillon Document sysfs files/directories/symlinks exposed by the I3C subsystem. Signed-off-by: Boris Brezillon --- Changes in v2: - new patch --- Documentation/ABI/testing/sysfs-bus-i3c | 95 + 1 file changed, 95 insertions(+) create mode 100644

Re: [PATCH v3 00/11] Add the I3C subsystem

2018-03-23 Thread Boris Brezillon
On Fri, 23 Mar 2018 12:00:09 +0100 Boris Brezillon wrote: > This patch series is a proposal for a new I3C [1] subsystem. > > This infrastructure is not complete yet and will be extended over > time. > > There are a few design choices that are worth mentioning because they &g

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-23 Thread Boris Brezillon
ot;; > > + i2c-scl-frequency = <10>; > > Another s/frequency/hz/ instance, similar to those reported by Thomas. Will fix it in v4. Thanks, Boris -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.co

Re: [PATCH v3 09/11] dt-bindings: i3c: Document Cadence I3C master bindings

2018-03-23 Thread Boris Brezillon
On Fri, 23 Mar 2018 12:10:35 +0100 Thomas Petazzoni wrote: > Hello, > > On Fri, 23 Mar 2018 12:00:18 +0100, Boris Brezillon wrote: > > > +Optional properties defined by the generic binding (see > > +Documentation/devicetree/bindings/i3c/i3c.txt for more details): > &

Re: [PATCH v3 01/11] i2c: Export of_i2c_get_board_info()

2018-03-25 Thread Boris Brezillon
ut any further modification, and leaving info->archdata to NULL has the exact same effect (see [1]). Regards, Boris [1]https://elixir.bootlin.com/linux/v4.16-rc6/source/drivers/i2c/i2c-core-base.c#L711 -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http

Re: [PATCH v3 01/11] i2c: Export of_i2c_get_board_info()

2018-03-25 Thread Boris Brezillon
closer look and it seems the only user of info->archdata is i2c-core-of.c, so we can even remove the info->archdata field. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -- To unsubscribe from this list: send the line "

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-26 Thread Boris Brezillon
Hi Geert, On Mon, 26 Mar 2018 12:22:24 +0200 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Mar 23, 2018 at 12:00 PM, Boris Brezillon > wrote: > > From: Boris Brezillon > > > > A new I3C subsystem has been added and a generic description has been > >

Re: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander

2018-03-26 Thread Boris Brezillon
Hi Geert, On Mon, 26 Mar 2018 12:17:26 +0200 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Mar 23, 2018 at 12:00 PM, Boris Brezillon > wrote: > > Document the Cadence I3C gpio expander bindings. > > > > Signed-off-by: Boris Brezillon > > Thanks

Re: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander

2018-03-26 Thread Boris Brezillon
On Mon, 26 Mar 2018 12:12:54 +0200 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Mar 23, 2018 at 12:00 PM, Boris Brezillon > wrote: > > Document the Cadence I3C gpio expander bindings. > > > > Signed-off-by: Boris Brezillon > > Thanks for your p

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-28 Thread Boris Brezillon
tic address. */ > > + thermal_sensor: sensor@68,39200144004 { > > + reg = <0x68 0x392 0x144004>; > > + assigned-address = <0xa>; > > + }; > > + > > + /* > > +* I3C de

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-28 Thread Boris Brezillon
EV() macros in the bindings doc? > > And if I do, should I use them my example? > > Well, I don't want to see "device@I3C_DEV(...)" for unit-addresses. That wouldn't work anyway. > You can use them for reg property, but it's somewhat pointless to

[PATCH v4 02/10] docs: driver-api: Add I3C documentation

2018-03-30 Thread Boris Brezillon
Add the I3C documentation describing the protocol, the master driver API and the device driver API. Signed-off-by: Boris Brezillon --- Changes in v2: - Moved out of patch "i3c: Add core I3C infrastructure" - Add link to the I3C spec - Move rst files in Documentation/driv

[PATCH v4 09/10] gpio: Add a driver for Cadence I3C GPIO expander

2018-03-30 Thread Boris Brezillon
Add a driver for Cadence I3C GPIO expander. Signed-off-by: Boris Brezillon --- drivers/gpio/Kconfig | 11 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-cdns-i3c.c | 380 +++ 3 files changed, 392 insertions(+) create mode 100644

[PATCH v4 10/10] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander

2018-03-30 Thread Boris Brezillon
Document the Cadence I3C gpio expander bindings. Signed-off-by: Boris Brezillon --- Changes in v4: - Use GPIO_ and IRQ_TYPE_ macros instead of raw numbers - Fix the unit-address in the example --- .../devicetree/bindings/gpio/gpio-cdns-i3c.txt | 39 ++ 1 file changed, 39

[PATCH v4 07/10] i3c: master: Add driver for Cadence IP

2018-03-30 Thread Boris Brezillon
Add a driver for Cadence I3C master IP. Signed-off-by: Boris Brezillon --- Changes in v4: - Fix potential unsigned integer underflow - Add missing static specific on IBI related functions Changes in v3: - Adjust to match I3C framework changes - Implement support the CMD RESPONSE QUEUE and IBI

[PATCH v4 08/10] dt-bindings: i3c: Document Cadence I3C master bindings

2018-03-30 Thread Boris Brezillon
Document Cadence I3C master DT bindings. Signed-off-by: Boris Brezillon --- Changes in v4: - Fix example to match the new representation --- .../devicetree/bindings/i3c/cdns,i3c-master.txt| 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation

[PATCH v4 06/10] MAINTAINERS: Add myself as the I3C subsystem maintainer

2018-03-30 Thread Boris Brezillon
Create an entry for the I3C subsystem and mark it as maintained by me. There's no official git repository, patchwork instance, mailing list or website yet, but this will be added after the subsystem has been accepted. Signed-off-by: Boris Brezillon --- MAINTAINERS | 9 + 1 file ch

[PATCH v4 05/10] dt-bindings: i3c: Add macros to help fill I3C/I2C device's reg property

2018-03-30 Thread Boris Brezillon
The reg property of devices connected to an I3C bus have 3 cells, and filling them manually is not trivial. Provides macros to help doing that. Signed-off-by: Boris Brezillon Reviewed-by: Rob Herring --- include/dt-bindings/i3c/i3c.h | 28 1 file changed, 28

[PATCH v4 03/10] i3c: Add sysfs ABI spec

2018-03-30 Thread Boris Brezillon
Document sysfs files/directories/symlinks exposed by the I3C subsystem. Signed-off-by: Boris Brezillon --- Changes in v2: - new patch --- Documentation/ABI/testing/sysfs-bus-i3c | 95 + 1 file changed, 95 insertions(+) create mode 100644 Documentation/ABI

[PATCH v4 00/10] Add the I3C subsystem

2018-03-30 Thread Boris Brezillon
tchwork.ozlabs.org/project/linux-i2c/list/?series=35687 Boris Brezillon (10): i3c: Add core I3C infrastructure docs: driver-api: Add I3C documentation i3c: Add sysfs ABI spec dt-bindings: i3c: Document core bindings dt-bindings: i3c: Add macros to help fill I3C/I2C device's reg

[PATCH v4 04/10] dt-bindings: i3c: Document core bindings

2018-03-30 Thread Boris Brezillon
A new I3C subsystem has been added and a generic description has been created to represent the I3C bus and the devices connected on it. Document this generic representation. Signed-off-by: Boris Brezillon --- Changes in v4: - Clarify the fact that static address == I3C address and dynamic

Re: [PATCH v4 04/10] dt-bindings: i3c: Document core bindings

2018-03-30 Thread Boris Brezillon
On Fri, 30 Mar 2018 09:55:22 +0200 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Mar 30, 2018 at 9:47 AM, Boris Brezillon > wrote: > > A new I3C subsystem has been added and a generic description has been > > created to represent the I3C bus and the

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-11 Thread Boris Brezillon
Hi Greg, On Sun, 11 Nov 2018 09:39:32 -0800 Greg Kroah-Hartman wrote: > On Fri, Oct 26, 2018 at 04:43:24PM +0200, Boris Brezillon wrote: > > Hi Greg, > > > > I think we've reached a point where we can eventually consider the I3C > > framework for inclusion i

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-11 Thread Boris Brezillon
On Sun, 11 Nov 2018 11:10:20 -0800 Greg Kroah-Hartman wrote: > On Sun, Nov 11, 2018 at 07:10:17PM +0100, Boris Brezillon wrote: > > Hi Greg, > > > > On Sun, 11 Nov 2018 09:39:32 -0800 > > Greg Kroah-Hartman wrote: > > > > > On Fri, Oct 26, 2018

Re: [PATCH v3 0/3] Add driver for Synopsys DesignWare I3C master IP

2018-11-12 Thread Boris Brezillon
On Thu, 8 Nov 2018 17:14:08 + Vitor soares wrote: > This patch series is a proposal for the I3C master driver for Synopsys IP. > This patch is to be applied on top of I3C subsystem RFC V10 submitted by > Boris Brezillon. The patch series looks to me. I'm just waiting an ack f

Re: [PATCH v3 2/3] dt-bindings: i3c: Document Synopsys DesignWare I3C master bindings

2018-11-12 Thread Boris Brezillon
On Thu, 8 Nov 2018 17:14:10 + Vitor soares wrote: > Document Synopsys DesignWare I3C master module > > Signed-off-by: Vitor soares > --- > Changes in v3: > - Remove dummy characters > > Changes in v2: > - Address the changes in Documentation/devicetree/bindings/i3c/i3c.txt > - Add control

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-15 Thread Boris Brezillon
+Mark Brown for the question about /dev/spidev Hi Vitor, On Thu, 15 Nov 2018 12:14:37 + vitor wrote: > Hi Boris, > > Given the current state of the subsystem I think it might worth start to > think how to expose the devices under /dev. Thanks for starting this discussion. I'm not against

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 16:01:37 +0100 Wolfram Sang wrote: > Hi Boris, > > > What we could do though, is expose I3C devices that do not have a > > driver in kernel space, like spidev does. > > ... > > > Mark, Wolfram, Arnd, Greg, any opinion? > > Is there a benefit for having drivers in users

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 18:03:47 + vitor wrote: > Hi Boris, > > > On 15/11/18 15:28, Boris Brezillon wrote: > > On Thu, 15 Nov 2018 16:01:37 +0100 > > Wolfram Sang wrote: > > > >> Hi Boris, > >> > >>> What we could do though, is

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-15 Thread Boris Brezillon
On Thu, 15 Nov 2018 15:25:11 + vitor wrote: > Hi Arnd, > > On 15/11/18 14:25, Arnd Bergmann wrote: > > I agree about better not exposing the bus as a /dev/i3c* node, and that we > > probably do need to expose individual devices in some form to allow > > writing complete user space drivers th

Re: [PATCH v4 0/3] Add driver for Synopsys DesignWare I3C master IP

2018-11-15 Thread Boris Brezillon
On Tue, 13 Nov 2018 14:09:50 + Vitor Soares wrote: > This patch series is a proposal for the I3C master driver for Synopsys IP. > This patch is to be applied on top of I3C subsystem RFC V10 submitted by > Boris Brezillon. > > Supported features: > Regular CCC command

Re: [PATCH 3/9] drm: replace "drm_dev_unref" function with "drm_dev_put"

2018-11-15 Thread Boris Brezillon
> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 4 ++-- For the Atmel HLCDC driver Acked-by: Boris Brezillon > drivers/gpu/drm/etnaviv/etnaviv_drv.c| 4 ++-- > drivers/gpu/drm/mxsfb/mxsfb_drv.c| 4 ++-- > drivers/gpu/drm/rcar-du/rcar_du_drv.c| 2

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-16 Thread Boris Brezillon
On Fri, 16 Nov 2018 12:31:42 + vitor wrote: > Hi Boris, > > > On 15/11/18 19:00, Boris Brezillon wrote: > > On Thu, 15 Nov 2018 18:03:47 + > > vitor wrote: > > > >> Hi Boris, > >> > >> > >> On 15/11/18 15:28,

Re: [PATCH v10 0/9] Add the I3C subsystem

2018-11-19 Thread Boris Brezillon
On Mon, 19 Nov 2018 12:35:42 + vitor wrote: > Hi Boris, > > On 16/11/18 13:16, Boris Brezillon wrote: > > On Fri, 16 Nov 2018 12:31:42 + > > vitor wrote: > > > >> Hi Boris, > >> > >> > >> On 15/11/18 19:00, Boris Brezillo

Re: [PATCH] kbuild: announce removal of SUBDIRS if used

2018-11-20 Thread Boris Brezillon
| 4 > drivers/mtd/maps/scx200_docflash.c | 7 --- For the docflash driver Acked-by: Boris Brezillon > drivers/watchdog/scx200_wdt.c | 7 --- > samples/connector/Makefile | 2 +- > 5 files changed, 6 insertions(+), 21 deletions(-) >

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-22 Thread Boris Brezillon
On Thu, 22 Nov 2018 17:54:54 + Vitor Soares wrote: > From: Vitor Soares > > This patch slipts dw-i3c-master.c into three pieces: > dw-i3c-master.c - contains the code that interacts directly with the > core in master mode. > > dw-i3c-platdrv.c - contains the code specific

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-23 Thread Boris Brezillon
On Fri, 23 Nov 2018 12:39:31 + vitor wrote: > Hi Boris, > > > On 22/11/18 20:02, Boris Brezillon wrote: > > On Thu, 22 Nov 2018 17:54:54 + > > Vitor Soares wrote: > > > >> From: Vitor Soares > >> > >> This patch slipts d

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-26 Thread Boris Brezillon
On Mon, 26 Nov 2018 12:06:24 + vitor wrote: > Hi Boris, > > > On 23/11/18 12:50, Boris Brezillon wrote: > > On Fri, 23 Nov 2018 12:39:31 + > > vitor wrote: > > > >> Hi Boris, > >> > >> > >> On 22/11/18 20:02,

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-26 Thread Boris Brezillon
On Mon, 26 Nov 2018 18:33:37 + vitor wrote: > On 26/11/18 12:35, Boris Brezillon wrote: > > On Mon, 26 Nov 2018 12:06:24 + > > vitor wrote: > > > >> Hi Boris, > >> > >> > >> On 23/11/18 12:50, Boris Brezillon wrote: &g

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-26 Thread Boris Brezillon
On Mon, 26 Nov 2018 19:56:18 +0100 Boris Brezillon wrote: > > > >     - for the others it will easy the SoC integration avoiding > > duplicated work and doing things from scratch. > > What would be duplicated? You want to support a new SoC, just add a new > entr

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-26 Thread Boris Brezillon
On Mon, 26 Nov 2018 19:28:02 + vitor wrote: > On 26/11/18 19:08, Boris Brezillon wrote: > > On Mon, 26 Nov 2018 19:56:18 +0100 > > Boris Brezillon wrote: > > > >>>     - for the others it will easy the SoC integration avoiding > >>>

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-26 Thread Boris Brezillon
On Mon, 26 Nov 2018 20:11:39 + vitor wrote: > >>> I prefer that we keep the driver as is until we actually need to split > >>> things up. > >> This is already done and will benefit everyone: > >> > >>     - for me is better do it now than the secondary master and slave > >> development.

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-11-27 Thread Boris Brezillon
Hi Vitor, On Tue, 27 Nov 2018 11:50:53 + vitor wrote: > Hi Boris > > On 26/11/18 21:33, Boris Brezillon wrote: > > On Mon, 26 Nov 2018 20:11:39 + > > vitor wrote: > > > > Look at the bus discovery mechanism, the notion of DCR (close to the > >

Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts

2018-12-04 Thread Boris Brezillon
On Tue, 4 Dec 2018 00:34:20 + vitor wrote: > >>> What I call a slave controller would be something that lets you reply to > >>> SDR/DDR transactions or fill a generic regmap that would be exposed to > >>> other masters on the bus. This way we could implement generic slave > >>> drivers in L

Re: [PATCH] mtd: nand: fix kernel-doc warnings

2019-01-28 Thread Boris Brezillon
; > ../drivers/mtd/nand/raw/nand_bbt.c:173: warning: Function parameter or member > 'this' not described in 'read_bbt' > ../drivers/mtd/nand/raw/nand_bbt.c:173: warning: Excess function parameter > 'chip' description in 'read_bbt' > > S

Re: mtd: nand: fix kernel-doc warnings

2019-01-31 Thread Boris Brezillon
; > ../drivers/mtd/nand/raw/nand_bbt.c:173: warning: Function parameter or member > 'this' not described in 'read_bbt' > ../drivers/mtd/nand/raw/nand_bbt.c:173: warning: Excess function parameter > 'chip' description in 'read_bbt' > > Signed-

[RFC 1/5] i2c: Export of_i2c_get_board_info()

2017-07-31 Thread Boris Brezillon
to let the I3C core parse the I2C device nodes by itself and initialize the bus. Signed-off-by: Boris Brezillon --- drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-core-of.c | 64 ++--- include/linux/i2c.h | 10 +++ 3 files changed, 48 in

[RFC 5/5] dt-bindings: i3c: Document Cadence I3C master bindings

2017-07-31 Thread Boris Brezillon
Document Cadence I3C master DT bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/i3c/cdns,i3c-master.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt diff --git a/Documentation

[RFC 4/5] i3c: master: Add driver for Cadence IP

2017-07-31 Thread Boris Brezillon
Add a driver for Cadence I3C master IP. Signed-off-by: Boris Brezillon --- drivers/i3c/master/Kconfig |4 + drivers/i3c/master/Makefile |1 + drivers/i3c/master/i3c-master-cdns.c | 1382 ++ 3 files changed, 1387 insertions(+) create

[RFC 0/5] Add I3C subsystem

2017-07-31 Thread Boris Brezillon
s (in terms of speed), device status, etc. However, I don't know if those information are relevant to user-space applications. If you know other people that might be interested by this patchset, just let me know and I'll Cc them on the next version. Thanks, Boris [1]https://www.mipi.or

[RFC 3/5] dt-bindings: i3c: Document core bindings

2017-07-31 Thread Boris Brezillon
A new I3C subsystem has been added and a generic description has been created to represent the I3C bus and the devices connected on it. Document this generic representation. Signed-off-by: Boris Brezillon --- Documentation/devicetree/bindings/i3c/i3c.txt | 90 +++ 1

Re: [RFC 0/5] Add I3C subsystem

2017-07-31 Thread Boris Brezillon
Hi Wolfram, Le Mon, 31 Jul 2017 21:17:45 +0200, Wolfram Sang a écrit : > Hi Boris, > > > This patch series is a proposal for a new I3C [1] subsystem. > > Nice. Good luck with that! > > Some hi-level comments from me related to I2C. I can't say a lot more > because the specs are not public

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-07-31 Thread Boris Brezillon
Le Mon, 31 Jul 2017 21:17:21 +0200, Wolfram Sang a écrit : > > +This document is just a brief introduction to the I3C protocol and the > > concepts > > +it brings on the table. If you need more information, please refer to the > > MIPI > > +I3C specification. > > I wish I could. > > > + > >

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-07-31 Thread Boris Brezillon
Hi Arnd, Le Mon, 31 Jul 2017 22:16:42 +0200, Arnd Bergmann a écrit : > On Mon, Jul 31, 2017 at 6:24 PM, Boris Brezillon > wrote: > > Add core infrastructure to support I3C in Linux and document it. > > > - I2C backward compatibility has been designed to be transparent

Re: [RFC 2/5] i3c: Add core I3C infrastructure

2017-08-01 Thread Boris Brezillon
Hello Greg, On Mon, 31 Jul 2017 18:40:21 -0700 Greg Kroah-Hartman wrote: > On Mon, Jul 31, 2017 at 06:24:47PM +0200, Boris Brezillon wrote: > > Add core infrastructure to support I3C in Linux and document it. > > > > This infrastructure is not complete yet and will be e

  1   2   3   >