Could the Ottoman Empire conquer Morocco during the reign of Suleiman the Magnificent, assuming he has fewer enemies to deal with in other fronts (say Vienna is taken and sacked in 1529), and if so, can the empire control it for a long period of time? What would a Morocco Eyalet look like? Could the Barbary Pirates operate in the Atlantic?
Conquest is not realistic. An Algeria analogue might be possible, with the Ottoman Forces eventually deposing the Wattasid/Saadi Sultans and become the rulers like Algiers, Tunis and Tripoli.
Vienna sack in 1529 doesn't mean much. The city wasn't too important in 1529 as in 1683. The Habsburg rulers would depart for Linz until the Ottomans depart the city. If Louis II of Hungary lives or Ferdinand and his wife and offspring (if he has any) die due to some illness, there isn't much for Charles V to do to save Hungary in the name of the Habsburgs. Louis II living means no Habsburg intervention at all. Ferdinand and his family dying means less will from the Habsburg side to start wars over the Hungarian throne and more success for Zapolya.
What it would result? The Barbary Pirates were usually moving beyond the Mediterranean. Otherwise the whole "Turkish abductions" in Iceland would be fiction. Ottoman Morocco would just be Northern Morocco at first, around the Rif region and Fez, Meknes, Rabat, mostly targeting the Portuguese and Spanish Settlements on the Coasts (Melilla, Ceut, Tanger, Mazagao). The South, around Marrakech would be ruled by locals, probably at war every now and then with the Ottoman Vassal in the North.
Ottoman Morocco depends on the situation. If the Ottoman ruler over Morocco subjugates all of it over time he will only nominally consider himself as a vassla of the Ottoman Empire, and no longer at all if that is a better option.
What it means for the rest? No Iberian Union as the Portuguese King will not move to Morocco to support the pro-Portuguese pretender. The Songhai live a bit longer. Spain will be forced to fight the Ottomans beyond the Battle of Tunis (1573) to avoid the Ottomans consolidating all of North Africa and maybe use it as a springboard for the invasion of Iberia (not gonna happen but Spain won't be sure of that). The English might be more persuaded to support the Ottoman Moroccan Vassal to invade Iberia, if only it is just to raid Cadiz and/or the Silver Fleet.