]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: dwc3: Drop support for "snps, ref-clock-period-ns" DT property
authorMarek Vasut <marex@denx.de>
Sun, 27 Nov 2022 14:31:56 +0000 (15:31 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 27 Nov 2022 14:34:56 +0000 (15:34 +0100)
Drop support for quickly deprecated DT property "snps,ref-clock-period-ns"
to prevent its proliferation.

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Marek Vasut <marex@denx.de>
drivers/usb/dwc3/core.c

index 6e0876d2c4590722acadc9903b5683d955b91212..49f6a1900b014d9d8476d04fa1b4ccfc53e30057 100644 (file)
@@ -141,9 +141,6 @@ static void dwc3_ref_clk_period(struct dwc3 *dwc)
                if (!rate)
                        return;
                period = NSEC_PER_SEC / rate;
-       } else if (dwc->ref_clk_per) {
-               period = dwc->ref_clk_per;
-               rate = NSEC_PER_SEC / period;
        } else {
                return;
        }
@@ -1121,7 +1118,6 @@ void dwc3_of_parse(struct dwc3 *dwc)
                | (dwc->is_utmi_l1_suspend << 4);
 
        dev_read_u32(dev, "snps,quirk-frame-length-adjustment", &dwc->fladj);
-       dev_read_u32(dev, "snps,ref-clock-period-ns", &dwc->ref_clk_per);
 
        /*
         * Handle property "snps,incr-burst-type-adjustment".