From: Stefano Babic Date: Mon, 2 Oct 2017 15:16:28 +0200 Subject: [U-Boot] [PATCH V4 11/12] imx: mx6sabresd: enable dm drivers In-Reply-To: References: <1504073693-16900-1-git-send-email-peng.fan@nxp.com> <1504073693-16900-11-git-send-email-peng.fan@nxp.com> Message-ID: <7a358dd0-90aa-e9ff-4855-22714834d8ec@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 28/09/2017 07:34, Peng Fan wrote: > Hi Stefano, > >> -----Original Message----- >> From: Peng Fan >> Sent: Tuesday, September 26, 2017 10:04 AM >> To: 'Stefano Babic' >> Cc: van.freenix at gmail.com; u-boot at lists.denx.de; Fabio Estevam >> >> Subject: RE: [PATCH V4 11/12] imx: mx6sabresd: enable dm drivers >> >> Hi Stefano, >> >> >>> -----Original Message----- >>> From: Stefano Babic [mailto:sbabic at denx.de] >>> Sent: Monday, September 25, 2017 10:12 PM >>> To: Peng Fan ; sbabic at denx.de >>> Cc: van.freenix at gmail.com; u-boot at lists.denx.de; Fabio Estevam >>> >>> Subject: Re: [PATCH V4 11/12] imx: mx6sabresd: enable dm drivers >>> >>> Hi Peng, >>> >>> On 30/08/2017 08:14, Peng Fan wrote: >>>> Enable DM MMC/I2C/PMIC/GPIO/REGULATOR. >>>> >>>> Signed-off-by: Peng Fan >>>> Cc: Fabio Estevam >>>> Cc: Stefano Babic >>>> --- >>>> >>>> V2->V4: none >>>> >> [..........] >> >>>> >>> >>> Enabling DM drivers seems to break sabresd: >>> >>> arm: + mx6sabresd >>> +common/usb_storage.c: In function 'usb_stor_probe_device': >>> +common/usb_storage.c:218:30: error: 'struct usb_device' has no member >>> named 'dev' >>> + data = dev_get_platdata(udev->dev); >>> + ^ >>> +common/usb_storage.c:228:32: error: 'struct usb_device' has no member >>> named 'dev' >>> + ret = blk_create_devicef(udev->dev, "usb_storage_blk", str, >>> + ^ >>> >>> >>> Can you take a look ? >> >> I build mx6sabresd_defconfig, I met the following warning based on imx >> master branch, but did not met the build error. >> CC spl/common/spl/spl_fit.o >> common/spl/spl_fit.c: In function 'spl_load_fit_image': >> common/spl/spl_fit.c:201:7: warning: passing argument 4 of 'gunzip' from >> incompatible pointer type [enabled by default] >> src, &length)) { >> ^ >> In file included from common/spl/spl_fit.c:8:0: >> include/common.h:627:5: note: expected 'long unsigned int *' but argument is >> of type 'size_t *' >> int gunzip(void *, int, unsigned char *, unsigned long *); > > Missed to say that this is not introduced by my patch. Yes, it is not - it is due to concurrent mergfe of several patches. > Did not meet that error when build mx6sabresd_defconfig? I did not meet that error based on > master or imx master branch. I got some further errors because I have already merged Fabio's (and someone patch). Fixes look trivial, but I do not want to do this as I cannot test. Could you please take a look and rebase your set on top of current u-boot.imx ? Thanks ! Stefano -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================