]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: ralink: mt7621: introduce 'soc_device' initialization
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 12 Mar 2020 11:29:15 +0000 (12:29 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 23 Mar 2020 14:44:04 +0000 (15:44 +0100)
commit1d3efd931d30ecea2aacdfc350ddcc8c0d0ca094
tree8183de4f5782f74b8bfe991f9c979ed57a205d99
parentb84db7f771bac46e9cab9beef834f92a3089b307
MIPS: ralink: mt7621: introduce 'soc_device' initialization

mt7621 SoC has its own 'ralink_soc_info' structure with some
information about the soc itself. Pcie controller and pcie phy
drivers for this soc which are still in staging git tree make uses
of 'soc_device_attribute' looking for revision 'E2' in order to
know if reset lines are or not inverted. This way of doing things
seems to be necessary in order to make things clean and properly.
Hence, introduce this 'soc_device' to be able to properly use those
attributes in drivers. Also set 'data' pointer points to the struct
'ralink_soc_info' to be able to export also current soc information
using this mechanism.

Cc: Paul Burton <paul.burton@mips.com>
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: john@phrozen.org
Cc: NeilBrown <neil@brown.name>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/mt7621.c