All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/33] fsi: Interrupt support
@ 2024-02-15 22:07 Eddie James
  2024-02-15 22:07 ` [PATCH 01/33] dt-bindings: clock: ast2600: Add FSI clock Eddie James
                   ` (32 more replies)
  0 siblings, 33 replies; 45+ messages in thread
From: Eddie James @ 2024-02-15 22:07 UTC (permalink / raw)
  To: linux-fsi
  Cc: linux-kernel, linux-i2c, linux-clk, devicetree, andi.shyti,
	eajames, alistair, joel, jk, sboyd, mturquette, robh,
	krzysztof.kozlowski+dt, conor+dt

This series primarily adds interrupt support to the FSI driver subsystem.
The series first improves the clocking model in the FSI core to provide
real clock rates to the engine drivers. Then there are various quality,
trace, and organizational improvements.
Another substantial part of the series is to make some master code common
through the use of a regmap to access master structures. This will prove
more useful as additional FSI master drivers are added.
Finally, interrupt support is added to the I2C driver as an alternative to
polling.

Eddie James (33):
  dt-bindings: clock: ast2600: Add FSI clock
  clk: ast2600: Add FSI parent clock with correct rate
  fsi: Move slave definitions to fsi-slave.h
  fsi: Improve master indexing
  fsi: Use a defined value for default echo delay
  fsi: Expose master-specific local bus clock divider
  ARM: dts: aspeed: p10 and tacoma: Set FSI clock frequency
  fsi: core: Improve master read/write/error traces
  fsi: core: Add slave error trace
  fsi: aspeed: Add AST2700 support
  fsi: core: Add slave spinlock
  fsi: core: Allow cfam device type aliases
  fsi: core: Add common regmap master functions
  fsi: hub: Use common initialization and link enable
  fsi: aspeed: Use common initialization and link enable
  fsi: aspeed: Remove cfam reset sysfs file in error path and remove
  fsi: aspeed: Refactor trace functions
  fsi: aspeed: Don't clear all IRQs during OPB transfers
  fsi: aspeed: Only read result register for successful read
  fsi: aspeed: Switch to spinlock
  fsi: aspeed: Disable relative addressing and IPOLL for cfam reset
  fsi: aspeed: Use common master error handler
  fsi: core: Add interrupt support
  fsi: aspeed: Add interrupt support
  fsi: hub: Add interrupt support
  ARM: dts: aspeed: FSI interrupt support
  i2c: fsi: Calculate clock divider from local bus frequency
  i2c: fsi: Improve formatting
  i2c: fsi: Change fsi_i2c_write_reg to accept data instead of a pointer
  i2c: fsi: Remove list structure of ports
  i2c: fsi: Define a function to check status error bits
  i2c: fsi: Add boolean for skip stop command on abort
  i2c: fsi: Add interrupt support

 .../boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts |   1 +
 arch/arm/boot/dts/aspeed/aspeed-g6.dtsi       |   4 +
 .../arm/boot/dts/aspeed/ibm-power10-dual.dtsi |   3 +
 drivers/clk/clk-ast2600.c                     |   7 +-
 drivers/fsi/Kconfig                           |   2 +
 drivers/fsi/fsi-core.c                        | 528 ++++++++++++++----
 drivers/fsi/fsi-master-aspeed.c               | 391 +++++++------
 drivers/fsi/fsi-master-hub.c                  | 231 ++++----
 drivers/fsi/fsi-master.h                      |  27 +
 drivers/fsi/fsi-slave.h                       |  89 +++
 drivers/i2c/busses/i2c-fsi.c                  | 464 ++++++++++-----
 include/dt-bindings/clock/ast2600-clock.h     |   1 +
 include/linux/fsi.h                           |   3 +
 include/trace/events/fsi.h                    | 190 ++++---
 include/trace/events/fsi_master_aspeed.h      |  86 ++-
 include/trace/events/i2c_fsi.h                |  45 ++
 16 files changed, 1432 insertions(+), 640 deletions(-)
 create mode 100644 include/trace/events/i2c_fsi.h

-- 
2.39.3


^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: [PATCH 28/33] i2c: fsi: Improve formatting
@ 2024-02-17 13:27 kernel test robot
  0 siblings, 0 replies; 45+ messages in thread
From: kernel test robot @ 2024-02-17 13:27 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20240215220759.976998-29-eajames@linux.ibm.com>
References: <20240215220759.976998-29-eajames@linux.ibm.com>
TO: Eddie James <eajames@linux.ibm.com>
TO: linux-fsi@lists.ozlabs.org
CC: linux-kernel@vger.kernel.org
CC: linux-i2c@vger.kernel.org
CC: linux-clk@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: andi.shyti@kernel.org
CC: eajames@linux.ibm.com
CC: alistair@popple.id.au
CC: joel@jms.id.au
CC: jk@ozlabs.org
CC: sboyd@kernel.org
CC: mturquette@baylibre.com
CC: robh@kernel.org
CC: krzysztof.kozlowski+dt@linaro.org
CC: conor+dt@kernel.org

Hi Eddie,

kernel test robot noticed the following build warnings:

[auto build test WARNING on andi-shyti/i2c/i2c-host]
[also build test WARNING on robh/for-next clk/clk-next linus/master v6.8-rc4 next-20240216]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Eddie-James/dt-bindings-clock-ast2600-Add-FSI-clock/20240216-061934
base:   git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host
patch link:    https://lore.kernel.org/r/20240215220759.976998-29-eajames%40linux.ibm.com
patch subject: [PATCH 28/33] i2c: fsi: Improve formatting
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: nios2-randconfig-r081-20240217 (https://download.01.org/0day-ci/archive/20240217/202402172147.pnwECcyo-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 13.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202402172147.pnwECcyo-lkp@intel.com/

smatch warnings:
drivers/i2c/busses/i2c-fsi.c:337 fsi_i2c_get_scl() error: uninitialized symbol 'stat'.
drivers/i2c/busses/i2c-fsi.c:358 fsi_i2c_get_sda() error: uninitialized symbol 'stat'.

vim +/stat +337 drivers/i2c/busses/i2c-fsi.c

504b82773c074e Eddie James 2018-07-17  329  
720d5ce9309d55 Eddie James 2018-07-17  330  static int fsi_i2c_get_scl(struct i2c_adapter *adap)
720d5ce9309d55 Eddie James 2018-07-17  331  {
720d5ce9309d55 Eddie James 2018-07-17  332  	struct fsi_i2c_port *port = adap->algo_data;
d2fec1f8a58643 Eddie James 2024-02-15  333  	u32 stat;
720d5ce9309d55 Eddie James 2018-07-17  334  
d2fec1f8a58643 Eddie James 2024-02-15  335  	fsi_i2c_read_reg(port->master->fsi, I2C_FSI_STAT, &stat);
720d5ce9309d55 Eddie James 2018-07-17  336  
720d5ce9309d55 Eddie James 2018-07-17 @337  	return !!(stat & I2C_STAT_SCL_IN);
720d5ce9309d55 Eddie James 2018-07-17  338  }
720d5ce9309d55 Eddie James 2018-07-17  339  
720d5ce9309d55 Eddie James 2018-07-17  340  static void fsi_i2c_set_scl(struct i2c_adapter *adap, int val)
720d5ce9309d55 Eddie James 2018-07-17  341  {
720d5ce9309d55 Eddie James 2018-07-17  342  	struct fsi_i2c_port *port = adap->algo_data;
d2fec1f8a58643 Eddie James 2024-02-15  343  	u32 dummy = 0;
720d5ce9309d55 Eddie James 2018-07-17  344  
720d5ce9309d55 Eddie James 2018-07-17  345  	if (val)
d2fec1f8a58643 Eddie James 2024-02-15  346  		fsi_i2c_write_reg(port->master->fsi, I2C_FSI_SET_SCL, &dummy);
720d5ce9309d55 Eddie James 2018-07-17  347  	else
d2fec1f8a58643 Eddie James 2024-02-15  348  		fsi_i2c_write_reg(port->master->fsi, I2C_FSI_RESET_SCL, &dummy);
720d5ce9309d55 Eddie James 2018-07-17  349  }
720d5ce9309d55 Eddie James 2018-07-17  350  
720d5ce9309d55 Eddie James 2018-07-17  351  static int fsi_i2c_get_sda(struct i2c_adapter *adap)
720d5ce9309d55 Eddie James 2018-07-17  352  {
720d5ce9309d55 Eddie James 2018-07-17  353  	struct fsi_i2c_port *port = adap->algo_data;
d2fec1f8a58643 Eddie James 2024-02-15  354  	u32 stat;
720d5ce9309d55 Eddie James 2018-07-17  355  
d2fec1f8a58643 Eddie James 2024-02-15  356  	fsi_i2c_read_reg(port->master->fsi, I2C_FSI_STAT, &stat);
720d5ce9309d55 Eddie James 2018-07-17  357  
720d5ce9309d55 Eddie James 2018-07-17 @358  	return !!(stat & I2C_STAT_SDA_IN);
720d5ce9309d55 Eddie James 2018-07-17  359  }
720d5ce9309d55 Eddie James 2018-07-17  360  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2024-02-22 12:33 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-15 22:07 [PATCH 00/33] fsi: Interrupt support Eddie James
2024-02-15 22:07 ` [PATCH 01/33] dt-bindings: clock: ast2600: Add FSI clock Eddie James
2024-02-16  8:07   ` Krzysztof Kozlowski
2024-02-22  5:45   ` Stephen Boyd
2024-02-15 22:07 ` [PATCH 02/33] clk: ast2600: Add FSI parent clock with correct rate Eddie James
2024-02-22  5:46   ` Stephen Boyd
2024-02-15 22:07 ` [PATCH 03/33] fsi: Move slave definitions to fsi-slave.h Eddie James
2024-02-15 22:07 ` [PATCH 04/33] fsi: Improve master indexing Eddie James
2024-02-15 22:07 ` [PATCH 05/33] fsi: Use a defined value for default echo delay Eddie James
2024-02-15 22:07 ` [PATCH 06/33] fsi: Expose master-specific local bus clock divider Eddie James
2024-02-15 22:07 ` [PATCH 07/33] ARM: dts: aspeed: p10 and tacoma: Set FSI clock frequency Eddie James
2024-02-16  8:08   ` Krzysztof Kozlowski
2024-02-16 19:14     ` Eddie James
2024-02-22 12:33       ` Joel Stanley
2024-02-15 22:07 ` [PATCH 08/33] fsi: core: Improve master read/write/error traces Eddie James
2024-02-15 22:07 ` [PATCH 09/33] fsi: core: Add slave error trace Eddie James
2024-02-15 22:07 ` [PATCH 10/33] fsi: aspeed: Add AST2700 support Eddie James
2024-02-16  8:09   ` Krzysztof Kozlowski
2024-02-16 19:18     ` Eddie James
2024-02-15 22:07 ` [PATCH 11/33] fsi: core: Add slave spinlock Eddie James
2024-02-15 22:07 ` [PATCH 12/33] fsi: core: Allow cfam device type aliases Eddie James
2024-02-20  8:31   ` Dan Carpenter
2024-02-15 22:07 ` [PATCH 13/33] fsi: core: Add common regmap master functions Eddie James
2024-02-15 22:07 ` [PATCH 14/33] fsi: hub: Use common initialization and link enable Eddie James
2024-02-15 22:07 ` [PATCH 15/33] fsi: aspeed: " Eddie James
2024-02-15 22:07 ` [PATCH 16/33] fsi: aspeed: Remove cfam reset sysfs file in error path and remove Eddie James
2024-02-15 22:07 ` [PATCH 17/33] fsi: aspeed: Refactor trace functions Eddie James
2024-02-15 22:07 ` [PATCH 18/33] fsi: aspeed: Don't clear all IRQs during OPB transfers Eddie James
2024-02-15 22:07 ` [PATCH 19/33] fsi: aspeed: Only read result register for successful read Eddie James
2024-02-15 22:07 ` [PATCH 20/33] fsi: aspeed: Switch to spinlock Eddie James
2024-02-15 22:07 ` [PATCH 21/33] fsi: aspeed: Disable relative addressing and IPOLL for cfam reset Eddie James
2024-02-15 22:07 ` [PATCH 22/33] fsi: aspeed: Use common master error handler Eddie James
2024-02-15 22:07 ` [PATCH 23/33] fsi: core: Add interrupt support Eddie James
2024-02-15 22:07 ` [PATCH 24/33] fsi: aspeed: " Eddie James
2024-02-15 22:07 ` [PATCH 25/33] fsi: hub: " Eddie James
2024-02-15 22:07 ` [PATCH 26/33] ARM: dts: aspeed: FSI " Eddie James
2024-02-16  8:11   ` Krzysztof Kozlowski
2024-02-15 22:07 ` [PATCH 27/33] i2c: fsi: Calculate clock divider from local bus frequency Eddie James
2024-02-15 22:07 ` [PATCH 28/33] i2c: fsi: Improve formatting Eddie James
2024-02-15 22:07 ` [PATCH 29/33] i2c: fsi: Change fsi_i2c_write_reg to accept data instead of a pointer Eddie James
2024-02-15 22:07 ` [PATCH 30/33] i2c: fsi: Remove list structure of ports Eddie James
2024-02-15 22:07 ` [PATCH 31/33] i2c: fsi: Define a function to check status error bits Eddie James
2024-02-15 22:07 ` [PATCH 32/33] i2c: fsi: Add boolean for skip stop command on abort Eddie James
2024-02-15 22:07 ` [PATCH 33/33] i2c: fsi: Add interrupt support Eddie James
  -- strict thread matches above, loose matches on Subject: below --
2024-02-17 13:27 [PATCH 28/33] i2c: fsi: Improve formatting kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.