OSDN Git Service

staging: mt7621-pci: enable clock bit for each port
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 10 Mar 2020 11:34:59 +0000 (12:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 07:08:48 +0000 (08:08 +0100)
commit5ca61dffc7da1ca0ac63256b5713000229dc8f1e
treecfdaa4e9e27d81c885715be0118c243994fbc99e
parent05ffb11ca7e2c24364cb353265d6ce586fd83990
staging: mt7621-pci: enable clock bit for each port

The clock related code concerns me from the very beginning because
there are some set ups got from legacy driver that are not documented
anywhere. According to the programming guide 0x7c is 'CPE_ROSC_SEL1'
register and 0x80 is 'CPU_CPE_CN'. I do think this set up is not needed
at all and the proper thing to do is just enable the clock bit for each
pcie port. Hence remove useless code and do the right thing which is
setting up the clock bit for each port enabled.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200310113459.30539-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c