Preparation Put oven rack in middle position and preheat oven to 375°F. Lightly butter baking dish. Heat 1 tablespoon oil in a 12-inch heavy skillet over moderately high heat until hot but not smoking, then sauté chorizo, stirring occasionally, until browned, 6 to 8 minutes. Transfer with a slotted spoon to paper towels to drain briefly, then transfer chorizo to baking dish. Reserve fat in skillet. Add remaining tablespoon oil to fat in skillet and heat over moderately high heat, then sauté mushrooms, stirring occasionally, until liquid mushrooms give off is evaporated and mushrooms are browned, about 8 minutes. Add chile and sauté, stirring, until softened, about 1 minute. Transfer to baking dish with chorizo. Purée 2 cups corn with cream cheese, cornmeal, and sugar in a food processor until as smooth as possible (mixture will still be grainy). Whisk together eggs, milk, and salt in a large bowl until combined well. Whisk in corn purée, scallions, 1 1/2 cups cheese, and remaining 2 cups corn until combined. Pour mixture into baking dish and sprinkle evenly with remaining cup cheese. Bake until puffed, set, and golden, 50 minutes to 1 hour. Cool slightly before serving. Serve warm or at room temperature. Cooks' note:Custard can be baked 1 day ahead, though texture will not be as light or creamy. Cool completely, uncovered, then chill, covered. Reheat, uncovered, in a 350°F oven 20 to 25 minutes.
Preparation Put oven rack in middle position and preheat oven to 375°F. Lightly butter baking dish. Heat 1 tablespoon oil in a 12-inch heavy skillet over moderately high heat until hot but not smoking, then sauté chorizo, stirring occasionally, until browned, 6 to 8 minutes. Transfer with a slotted spoon to paper towels to drain briefly, then transfer chorizo to baking dish. Reserve fat in skillet. Add remaining tablespoon oil to fat in skillet and heat over moderately high heat, then sauté mushrooms, stirring occasionally, until liquid mushrooms give off is evaporated and mushrooms are browned, about 8 minutes. Add chile and sauté, stirring, until softened, about 1 minute. Transfer to baking dish with chorizo. Purée 2 cups corn with cream cheese, cornmeal, and sugar in a food processor until as smooth as possible (mixture will still be grainy). Whisk together eggs, milk, and salt in a large bowl until combined well. Whisk in corn purée, scallions, 1 1/2 cups cheese, and remaining 2 cups corn until combined. Pour mixture into baking dish and sprinkle evenly with remaining cup cheese. Bake until puffed, set, and golden, 50 minutes to 1 hour. Cool slightly before serving. Serve warm or at room temperature. Cooks' note:Custard can be baked 1 day ahead, though texture will not be as light or creamy. Cool completely, uncovered, then chill, covered. Reheat, uncovered, in a 350°F oven 20 to 25 minutes.