{"push_id":740390779,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"d9b7a127aa1ed3e0f63451ed66ae07d52d52f1c9","before":"b90317ed0c0cedcc605aa53e346b40b3600bb19d","commits":[{"sha":"d9b7a127aa1ed3e0f63451ed66ae07d52d52f1c9","author":{"email":"35e491f5b70a779e5455b1f9617e0073292369ca@leaflabs.com","name":"Marti Bolivar"},"message":"apps: svc: linktest: allow user to specify interfaces by name.\n\nOther svc app commands have learned to search for interfaces by name,\nbut LINKTEST still wants switch ports, which is inconvenient. To make\nthings nicer, teach dme_io() about interfaces.\n\nTesting Done: tested on BDB2B for valid and invalid cases:\n\n              nsh> svc l -m pwm -g 1 -i apb1\n              Port=0, mode=PWM, gear=1, nlanes=2, flags=0x0, series=<unchanged>\n              nsh> svc l -m pwm -g 1 -i apb2\n              Port=1, mode=PWM, gear=1, nlanes=2, flags=0x0, series=<unchanged>\n              nsh> svc l -m pwm -g 1 -i apb3\n              Port=2, mode=PWM, gear=1, nlanes=2, flags=0x0, series=<unchanged>\n              nsh> svc l -m pwm -g 1 -i gpb1\n              Port=3, mode=PWM, gear=1, nlanes=2, flags=0x0, series=<unchanged>\n              nsh> svc l -m pwm -g 1 -i gpb2\n              Port=4, mode=PWM, gear=1, nlanes=2, flags=0x0, series=<unchanged>\n              nsh> svc l -m pwm -g 1 -i nonsense\n              Invalid interface nonsense\n              svc linktest: usage:\n                  -h: print this message and exit\n\n              Options for testing a single port:\n                  -p <port>   : Port to test, starting from 0.\n                  -i <interface>: Interface to read attribute on (e.g. \"apb1\", etc.)\n                                  If set, overrides -p.\n                  -m <mode>   : UniPro power mode to set <port> to.\n                                One of \"hs\" or \"pwm\"; defaults to \"hs\".\n                  -g <gear>   : pwm or hs gear. For pwm, <gear> is from 1-7.\n                                For hs, <gear> is from 1-3. Default is 1.\n                  -l <lanes>  : Number of lanes for TX/RX. Default is 2.\n                  -a          : Use \"auto\" <mode> variant. This alternates\n                                the link between BURST and SLEEP M-PHY states.\n                                If not given, the default is non-auto.\n                  -s <series> : M-PHY high speed RATE series (\"A\" or \"B\")\n                                to use. If not given, the default is to\n                                leave this unchanged.\n\n              Options for testing all builtin ports:\n                  -t       : \"Torture test\": test all builtin ports, with\n                             various mode, gear, and \"auto\" mode settings.\n                             The output details the test parameters.\n\n                             If set, other options are ignored.\n\n              nsh> svc dme r -a d093 -p 0 -i apb2\n              Port=1, peer=no, sel=0, TSB_DEBUGRXBYTECOUNT (0xd093) = 0x0 (0)\n              nsh> svc dme r -a d093 -p 0\n              Port=0, peer=no, sel=0, TSB_DEBUGRXBYTECOUNT (0xd093) = 0x0 (0)\nBug Number: trivial\nReview URL: https://reviews.leaflabs.com/r/1227/\nReviewed by: Fabien Parent, Mark Greer\n\nSigned-off-by: Marti Bolivar <mbolivar@leaflabs.com>","distinct":true,"url":"https://api.github.com/repos/projectara/nuttx/commits/d9b7a127aa1ed3e0f63451ed66ae07d52d52f1c9"}]}