A method for maximizing DC power transferred by a power management unit to an electronic device comprising the steps of: providing a power management unit comprising means to sense an input voltage (Vin) and an output voltage (Vout), means to sense an input current, and means to compare voltages; connecting a power source to said power management unit; setting a maximal allowable Input current limit to a default value; enabling power transfer between a power source and a load if the input voltage (Vin) is higher than a defined input threshold voltage (Vin_low) and there is sufficient overhead (Voff) between input voltage (Vin) and output voltage (Vout); ramping up the input current; performing a first checking step, a second checking step and a third checking step executed in parallel; wherein said first checking step being a check if the input current is lower than the defined maximal allowable input current limit, and if said first checking is positive then executing said third checking step, otherwise decreasing the input current and go back to said first checking step again; said second checking step being a check if the Input voltage (Vin) is higher than the defined input threshold voltage (Vin_low), and if said second checking is negative decreasing the maximal allowable input current limit and then go back to said second checking step again; and if said second checking is positive then go to a further checking step which is a check if the actual allowable input current limit is lower than Its default value and, if negative, then go back to said second checking step, otherwise go to a step wherein the maximal allowable input current limit is increased and then go back to said second checking step; said third checking step being a check if the Input voltage (Vin) is lower than the output voltage (Vout) of the power management unit and lower than the Input threshold voltage (Vin_low) and, if said third check is negative then go back to said third checking step again, otherwise disabling the management unit. providing a power management unit comprising means to sense an input voltage (Vin) and an output voltage (Vout), means to sense an input current, and means to compare voltages; connecting a power source to said power management unit; setting a maximal allowable Input current limit to a default value; enabling power transfer between a power source and a load if the input voltage (Vin) is higher than a defined input threshold voltage (Vin_low) and there is sufficient overhead (Voff) between input voltage (Vin) and output voltage (Vout); ramping up the input current; performing a first checking step, a second checking step and a third checking step executed in parallel; wherein said first checking step being a check if the input current is lower than the defined maximal allowable input current limit, and if said first checking is positive then executing said third checking step, otherwise decreasing the input current and go back to said first checking step again; said second checking step being a check if the Input voltage (Vin) is higher than the defined input threshold voltage (Vin_low), and if said second checking is negative decreasing the maximal allowable input current limit and then go back to said second checking step again; and if said second checking is positive then go to a further checking step which is a check if the actual allowable input current limit is lower than Its default value and, if negative, then go back to said second checking step, otherwise go to a step wherein the maximal allowable input current limit is increased and then go back to said second checking step; said third checking step being a check if the Input voltage (Vin) is lower than the output voltage (Vout) of the power management unit and lower than the Input threshold voltage (Vin_low) and, if said third check is negative then go back to said third checking step again, otherwise disabling the management unit.