From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 26 May 2020 23:03:15 +0200 Subject: [PATCH] video: ipuv3: remove some useless code to reduce binary size In-Reply-To: <20200525160514.GT26741@bill-the-cat> References: <20200525123417.15968-1-agust@denx.de> <20200525160514.GT26741@bill-the-cat> Message-ID: <20200526230315.3eefe8f4@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 25 May 2020 12:05:14 -0400 Tom Rini trini at konsulko.com wrote: > On Mon, May 25, 2020 at 02:34:17PM +0200, Anatolij Gustschin wrote: > > > To enable DM_VIDEO we must decrease binary size to fix build > > breakage for some boards, so drop not needed code. Also add > > !DM_VIDEO guards which can be later removed when last non DM > > users will be converted. > > > > Signed-off-by: Anatolij Gustschin > > Given that the migration deadline for non-DM video boards was the > v2019.07 release, what's the case for not: > 1. Perform the changes here, to save size. I've submitted more patches to save size, changes here were not enough to fix building tbs2910 board with DM video enabled. > 2. Enable conversions that can now be enabled. All boards using ipuv3 driver are now converted, I'll submit a pull request to merge the changes. > 3. Disable video/drop platforms on unconverted boards. For boards with only DM video conversion missing, it makes sense to disable video, but I don't know is this can be done for all such boards (some do not have serial console and rely on working display output). Some boards do not even enable DM, these are candidates to drop. > 4. Drop non-DM code here. Patch already submitted to drop non-DM code here. -- Anatolij