From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 4 Aug 2014 16:09:21 +0200 Subject: [U-Boot] [PATCH 03/18] sf: fix sf probe In-Reply-To: <20140804140242.GE19374@bill-the-cat> References: <1407051288-17324-1-git-send-email-nikita@compulab.co.il> <53DF8E95.1000702@compulab.co.il> <20140804140242.GE19374@bill-the-cat> Message-ID: <201408041609.21417.marex@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 Monday, August 04, 2014 at 04:02:42 PM, Tom Rini wrote: [...] > Eeep. That seems very likely to be gotten incorrect by users. > > Can we do something like: > mxc_spi.c: > __weak int board_map_spi_cs_value(int desired_cs) { return -EINVAL; } > > fooboard.c: > board_map_spi_cs_value(int desired_cs) { > if (desired_cs == 0) > return IMX_GPIO_NR(2, 30); > else > return -EINVAL; > } > > I think it'll be very bad if the user has to type 'sf probe 0:15872' or > 'sf probe 15872' since that's a programming detail rather than saying > bank 2, gpio 30 (which I assume is what IMX_GPIO_NR means). I'm worried about the user scripts which depend on this original behavior. Do we care about compatibility there ? Best regards, Marek Vasut