; =========================================================================== ; Copyright (c) 1998-2000, The Santa Cruz Operation ; All rights reserved. ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; *Redistributions of source code must retain the above copyright notice, ; this list of conditions and the following disclaimer. ; *Redistributions in binary form must reproduce the above copyright notice, ; this list of conditions and the following disclaimer in the documentation ; and/or other materials provided with the distribution. ; *Neither name of The Santa Cruz Operation nor the names of its contributors ; may be used to endorse or promote products derived from this software ; without specific prior written permission. ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS ; IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE ; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ; INTERRUPTION) ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH ; DAMAGE. ; ========================================================================= ; $Id: gmacs.ml,v 1.1 2000/04/27 16:33:47 petr Exp $ ; cscope.ml (s.cscope.ml) - 1.4 (2/21/84 14:53:58) ; ; Macro to handle invocation of gmacs by cscope from the ; experimental tools. Cscope invokes gmacs with two arguments: ; ; gmacs +line file ; ; This macro gobbles the line number, visits the specified file, ; and moves to the specified line number. (progn args pluses (setq pluses 0) (setq args (argc)) (if (> args 1) (progn (if (= (string-to-char "+") (string-to-char (argv 1))) (setq pluses 1) ) (setq args (- args 1)) (while (> args pluses) (visit-file (argv args)) (setq args (- args 1)) ) (if (= (> (argc) 2) (> pluses 0)) (goto-line (argv 1)) ) ) ) )
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2016-11-20 21:26:03 +0000
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-02 10:55:28 +0200
commitde02238d6a7982a71682fe8da2996993a5a5eee7 (patch)
tree19438576fd7a42914a006560dae1b9749f9f86f4
parentf3419735279564d40467ebe4147d8a41cef00685 (diff)
usb: dwc2: fix dwc2_get_device_property for u8 and u16
According to the Devicetree ePAPR [1] the datatypes u8 and u16 are not defined. So using device_property_read_u16() would result in a partial read of a 32-bit big-endian integer which is not intended. So we better read the complete 32-bit value. This fixes a regression on bcm2835 where the values for g-rx-fifo-size and g-np-tx-fifo-size always read as zero: Invalid value 0 for param g-rx-fifo-size Invalid value 0 for param g-np-tx-fifo-size [1] - http://elinux.org/images/c/cf/Power_ePAPR_APPROVED_v1.1.pdf Fixes: 05ee799f202 ("usb: dwc2: Move gadget settings into core_params") Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat