The ongoing dispute between BlackBerry and Qualcomm is finally over. The popular chipmaker has agreed to pay BlackBerry $940 million to settle a royalty dispute. The company needs to pay the whole amount by May 31, 2017, the same day when the BlackBerry KEYone will launch in the US.

The dispute started back in 2016 to find out whether BlackBerry really overpaid royalty fees between 2010 and 2015.

This isn't over for Qualcomm, as the company is still facing other similar lawsuits, including the one from Apple. The Cupertino company is accusing the chipmaker of overcharging for its chips and withholding nearly $1 billion in contractual payments. Until the dispute is over, Apple has decided to withhold royalty payments to contract manufacturers.