/* * Mausezahn - A fast versatile traffic generator * Copyright (C) 2008-2010 Herbert Haas * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html * */ #include "mz.h" #include "cli.h" #include "mops.h" // Enter interface config mode: // int enter_interface (struct cli_def *cli, const char *command, char *argv[], int argc) { int i, j=0; char prompt[10]; if ( (strcmp(argv[argc-1],"?")==0) || (argc>1) ) { cli_print(cli, "Specify an interface to configure\n"); return CLI_OK; } if (argc) { for (i=0; i1) ) { cli_print(cli, "A.B.C.D Specify a default interface IP address\n"); return CLI_OK; } if (argc) { if (mops_pdesc_ip (device_list[clidev].ip_mops, argv[0])) { cli_print(cli,"Invalid IP address (use format: A.B.C.D)\n"); } } else cli_print(cli, "A.B.C.D Specify a default interface IP address\n"); return CLI_OK; } int conf_mac_address (struct cli_def *cli, const char *command, char *argv[], int argc) { if ( (strcmp(argv[argc-1],"?")==0) || (argc>1) ) { cli_print(cli, "XX:XX:XX:XX:XX:XX Configure a default interface MAC address\n"); return CLI_OK; } if (argc) { if (mops_pdesc_mac (device_list[clidev].mac_mops, argv[0])) { cli_print(cli,"Invalid MAC address (use format: XX:XX:XX:XX:XX:XX)\n"); } } else cli_print(cli, "A.B.C.D Specify a default interface IP address\n"); return CLI_OK; } int conf_tag_dot1q (struct cli_def *cli, const char *command, char *argv[], int argc) { if ( (strcmp(argv[argc-1],"?")==0) || (argc>1) ) { cli_print(cli, "Specify one or more 802.1Q (and optionally 802.1P) tags\n"); return CLI_OK; } cli_print(cli, "Not supported in this version\n"); return CLI_OK; } int conf_tag_mpls (struct cli_def *cli, const char *command, char *argv[], int argc) { if ( (strcmp(argv[argc-1],"?")==0) || (argc>1) ) { cli_print(cli, "Specify one or more MPLS labels (and parameters)\n"); return CLI_OK; } cli_print(cli, "Not supported in this version\n"); return CLI_OK; } n>space:mode:
authorHans de Goede <hdegoede@redhat.com>2016-03-09 20:38:59 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-03-27 16:13:51 +0200
commitdcf5341f0150bc4c5bf37786e1198d2ff8fc2c38 (patch)
tree6db6dbfeacbd5824d47770dea9ee305be1bbfe29 /Documentation
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
ARM: dts: sun8i-q8-common: Do not set constraints on dc1sw regulator
dc1sw is an on/off only regulator and as such it cannot have constraints. This is a limitation of the kernel regulator implementation which resolves supplies on the first regulator_get(), which is done after applying constraints, and applying the constrains will fail because it calls _regulator_get_voltage() and _regulator_do_set_voltage() both of which will fail on a switch regulator when there is no supply (yet). This causes registering of all axp22x regulators to fail with the following errors: [ 1.395249] vcc-lcd: failed to get the current voltage(-22) [ 1.405131] axp20x-regulator axp20x-regulator: Failed to register dc1sw [ 1.412436] axp20x-regulator: probe of axp20x-regulator failed with error -22 This commit removes the constrains on dc1sw / vcc-lcd fixing this problem note that dcdc1 itself is contrained to the exact same values, so this does not change anything. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'Documentation')