summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-09-20 13:41:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-20 13:49:53 +0200
commitae1cca3fa3478be92948dbbcd722390272032ade (patch)
tree5ec79e710a172f5bcb4766664ceafb72771dae01 /drivers/iommu
parentb1078c355d76769b5ddefc67d143fbd9b6e52c05 (diff)
downloadlinux-stable-ae1cca3fa3478be92948dbbcd722390272032ade.tar.gz
linux-stable-ae1cca3fa3478be92948dbbcd722390272032ade.tar.bz2
linux-stable-ae1cca3fa3478be92948dbbcd722390272032ade.zip
serial: uartps: Change uart ID port allocation
For IPs which have alias algorightm all the time using that alias and minor number. It means serial20 alias ends up as ttyPS20. If alias is not setup for probed IP instance the first unused position is used but that needs to be checked if it is really empty because another instance doesn't need to be probed at that time. of_alias_get_alias_list() fills alias bitmap which exactly shows which ID is free. If alias pointing to different not compatible IP, it is free to use. cdns_get_id() call is placed below structure allocation to simplify error path. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions