From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932816AbcFCPQM (ORCPT ); Fri, 3 Jun 2016 11:16:12 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:35959 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbcFCPQK (ORCPT ); Fri, 3 Jun 2016 11:16:10 -0400 MIME-Version: 1.0 In-Reply-To: References: <1464626798-1334-1-git-send-email-navam@xilinx.com> From: Shubhrajyoti Datta Date: Fri, 3 Jun 2016 20:46:08 +0530 Message-ID: Subject: Re: [PATCH v4] Axi-usb: Add support for 64-bit addressing. To: Nava kishore Manne Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Michal Simek , Soren Brinkmann , "balbi@ti.com" , "gregkh@linuxfoundation.org" , Hyun Kwon , Radhey Shyam Pandey , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 31, 2016 at 10:45 AM, Nava kishore Manne wrote: > Hi Shubhrajyoti, > > > Thanks for the review... > >> > /** >> > + * xudc_write64 - write 64bit value to device registers >> > + * @ep: pointer to the usb device endpoint structure. >> > + * @offset: register offset >> > + * @val: data to be written >> > + **/ >> > +static void xudc_write64(struct xusb_ep *ep, u32 offset, u64 val) { >> > + struct xusb_udc *udc = ep->udc; >> > + >> > + udc->write_fn(udc->addr, offset, lower_32_bits(val)); >> > + udc->write_fn(udc->addr, offset+0x04, upper_32_bits(val)); >> >> can we move this to a single 64 bit write? > > Initially I sent the patches with writeq() ,lo_hi_writeq() later we decided to replace with write_fun(). > The reason for this is lo_hi_writeq() always assumes a little-endian register, so it's broken if anyone builds this device with big-endian registers. > So replaced the 64bit calls with write_fun() as suggested by Arnd Bergmann. Hope it clears your query. > Please refer to the below thread > > http://lkml.iu.edu/hypermail/linux/kernel/1604.2/02046.html missed that discurssion. thanks > > > Regards, > Navakishore. >