From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuDX3-0006ML-Pe for barebox@lists.infradead.org; Mon, 27 Aug 2018 09:10:58 +0000 Date: Mon, 27 Aug 2018 11:09:45 +0200 From: Sascha Hauer Message-ID: <20180827090945.xxae7l6k2s2rug7v@pengutronix.de> References: <20180821152001.5747-1-aleksander@aleksander.es> <20180821152001.5747-2-aleksander@aleksander.es> <20180822074635.wfst65srfuqne7l6@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 1/4] ratp: implement i2c read/write support To: Aleksander Morgado Cc: barebox@lists.infradead.org On Thu, Aug 23, 2018 at 10:54:58PM +0200, Aleksander Morgado wrote: > >> +struct ratp_bb_i2c_read_request { > >> + struct ratp_bb header; > >> + uint16_t buffer_offset; > >> + uint8_t bus; > >> + uint8_t addr; > > > > I wonder how we see the RATP support. If it's for adhoc debugging then > > bus/addr is fine. The caller should have no expectations that the bus > > number is constant though. Likewise for the address which might change > > across different board revisions. > > > > Should we have support for resolving names, which could be provided by > > aliases in dt? > > > > We could still add name resolving support later as a separate call, I > > just thought that now is the time to think how we proceed. > > > > I truly have no opinion here, but if name resolving is added at some > point I can either update this operation or even add a new one. Ok, as said, we can add the name resolving functionality later. So, as long as you don't see such numbering issues with the things you want to do with RATP then I am fine with adding this when it's needed. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox