Macbook air one port not charging
I have Macbook air (2020) which has 2 usb-c ports. Both were working fine till yesterday, but now one of them isn't charging the device. i have already tried shutting it down (while connected to power) and pressing shift+option+ctrl+power button.It still doesn't charge.
To be noted that other port is identifying my iphone i.e it works when connected to a connector to which i connect by iphone via usb. The problem appears to be with the charging system. The charging cable and adapter apparently are working because the other port is able to charge. What to do next?
MacBook Air 13″, macOS 10.15