s6y Sunoco LP S-3

Sunoco LP S-3, filed Mar 30, 2016: Consent of experts

Exhibit 23.2

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption “Experts” in this Registration Statement (Form S-3) and related Prospectus of Sunoco LP for the registration of common units representing limited partner interests and to the incorporation by reference therein of our report dated February 25, 2016, with respect to the consolidated financial statements of Sunoco LP, included in its Annual Report (Form 10-K) for the year ended December 31, 2015, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

Houston, Texas

March 29, 2016