summaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2018-01-18 13:31:42 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-22 10:57:04 -0500
commitbf147153d7f4b0d7337b28040837d9272c1a99fe (patch)
tree388d9c4826cf7565260c2d6ac96cdef1c72ded5e /kernel/resource.c
parent3395de96ae5998692bd86024d0d5e4dd55cd6cc3 (diff)
downloadop-kernel-dev-bf147153d7f4b0d7337b28040837d9272c1a99fe.zip
op-kernel-dev-bf147153d7f4b0d7337b28040837d9272c1a99fe.tar.gz
net: mvpp2: simplify maintaining enabled ports' list
'port_count' field of the mvpp2 structure holds an overall amount of available ports, based on DT nodes status. In order to be prepared to support other HW description, obtain the value by incrementing it upon each successful port initialization. This allowed for simplifying port indexing in the controller's private array, whose size is now not dynamically allocated, but fixed to MVPP2_MAX_PORTS. This patch simplifies creating and filling list of enabled ports and is a part of the preparation for adding ACPI support in the mvpp2 driver. Signed-off-by: Marcin Wojtas <mw@semihalf.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud