Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp885916pxb; Wed, 27 Oct 2021 14:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0HOTK+f1ZP5MiistH16OQ114lcE9VXijFHGwwYkTsCH3X9Ws/hhkS3+mEiUS3PzwDHRbP X-Received: by 2002:a17:906:1d51:: with SMTP id o17mr55058ejh.367.1635370104539; Wed, 27 Oct 2021 14:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370104; cv=none; d=google.com; s=arc-20160816; b=EUv07WJS6FHp/XSeiWkaqNRKv49hyTYzc3TwNyPQbL5XIP3qkBE4Xpr3fLLAd86pbc jEZLUDPqez19DXUAnTCgZQLjPbtz1PqRNl5LdpUMfRC7GcmpyeZ4Zp7pqp904QGj0G+N ppu2nS9KsrMs9fQnPUZhoF8YQkMj7+2HB9gF7IJMk9rxphajYDynWq55f87fkc7f5mRj JDh8QIomCQq+wD5kZPVPF0Uh9fexK6Wp0fYx6tTcTqV3bcS7ZT0D2sg3A5+CuLXPQ/cU V9gFd0EYoumLeYXAuqExwTZYE3aIDs50p1qt94/hy4IgsrlwrVzmd4YmsvT6KU9udVNr YaLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=LWbNciancD9wCgQn+UEUeMCv34KbVipFu7orXvb9Xa8=; b=mnVPk6R4NgGzJ9HkJ2Ib66md2cZjXNk/2SEPll1WP+Ck0RpLSI74L71q+Z7aF0xg1R QbdvIW4rz+xaebQkTLKroy1QKv6r7npKpu+yq+2DjeRRp+zqz6lm3HZ9xXVTJfg9tKtm +yjZl6S9r6nMGNVZOouluNyGsoyDPAsiCfds9bi58WB2WkDj2hyIjqGGAhXjfvOaJ1iX zNSTl9Rau7bdBXEONiawDGYcrBp4Ia6lEjTqUbvSVLdWKnPoxX0bZMYYJZ+YaiApue9m HKsP5jHHfFCw/hFzOmNsgLc6UDqqEQbggWpL4HUrOjne7ERL7YnCmHczNQSwd7POvrK/ +uKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga7si1273189ejb.307.2021.10.27.14.28.01; Wed, 27 Oct 2021 14:28:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238942AbhJ0Okd convert rfc822-to-8bit (ORCPT + 97 others); Wed, 27 Oct 2021 10:40:33 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:33708 "EHLO mail-qv1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237549AbhJ0Okc (ORCPT ); Wed, 27 Oct 2021 10:40:32 -0400 Received: by mail-qv1-f43.google.com with SMTP id kd16so1930294qvb.0; Wed, 27 Oct 2021 07:38:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IIc3VM+0QP6tW1izmsIwRCOe4zK0xch73rEnQe2rldc=; b=bZRL694X7ag7gRm4SDz2tWTMYt6k0l087Ca7LvU3tgMTKFAi3HyF0SbFCTUEye2hPp 4VQZSy86N/WDzEuwLmHyQ6klEYGfaOCVJPNc+MEaSOsp/R+cu1ORKDSnCMFuWBVHfbMb dgGubVm1fc7jARx+bt3eL9uT5s2oGI4lVXlzkxNMkxAXQCENIX6YtGlL4aUaLGHBv8Ys eHmrrtJ9LM7yn1+bCqi+I8sSREUbr0O44yHPp0Ehq9ay7GVaNX2cJS56e45ygkliIqhI HgpIX/6FHCfU2c+tEXa3SIhriI5T4vCxzQlFfHc436RcXRdHmszOycMfUppYslwj0k1E VGfw== X-Gm-Message-State: AOAM5337qJDkO4lI5Z5WeyA96QewIkCuqI9qVqs2idLLaWLFGfDXc3Ro 9DRQ1gK4IaBCybdMx8I8QA3el6czwfM= X-Received: by 2002:ad4:5b81:: with SMTP id 1mr21374587qvp.48.1635345486439; Wed, 27 Oct 2021 07:38:06 -0700 (PDT) Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com. [209.85.219.46]) by smtp.gmail.com with ESMTPSA id bq30sm137481qkb.6.2021.10.27.07.38.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 07:38:05 -0700 (PDT) Received: by mail-qv1-f46.google.com with SMTP id gh1so1875555qvb.8; Wed, 27 Oct 2021 07:38:05 -0700 (PDT) X-Received: by 2002:a0c:fe8c:: with SMTP id d12mr25332323qvs.19.1635345485575; Wed, 27 Oct 2021 07:38:05 -0700 (PDT) MIME-Version: 1.0 References: <20211027080849.3276289-1-geert@linux-m68k.org> In-Reply-To: <20211027080849.3276289-1-geert@linux-m68k.org> From: Li Yang Date: Wed, 27 Oct 2021 09:37:54 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit To: Geert Uytterhoeven Cc: Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linuxppc-dev , lkml , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 5:25 AM Geert Uytterhoeven wrote: > > On 64-bit: > > drivers/usb/gadget/udc/fsl_qe_udc.c: In function ‘qe_ep0_rx’: > drivers/usb/gadget/udc/fsl_qe_udc.c:842:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 842 | vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); > | ^ > In file included from drivers/usb/gadget/udc/fsl_qe_udc.c:41: > drivers/usb/gadget/udc/fsl_qe_udc.c:843:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > 843 | frame_set_data(pframe, (u8 *)vaddr); > | ^ > > The driver assumes physical and virtual addresses are 32-bit, hence it > cannot work on 64-bit platforms. The device is truly only used in legacy 32-bit PowerPC chips and never tested with 64-bit. Thanks. > > Signed-off-by: Geert Uytterhoeven Acked-by: Li Yang > --- > One more casualty of CONFIG_WERROR=y. > http://kisskb.ellerman.id.au/kisskb/buildresult/14652936/ > --- > drivers/usb/gadget/udc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig > index 8c614bb86c665c77..69394dc1cdfb6436 100644 > --- a/drivers/usb/gadget/udc/Kconfig > +++ b/drivers/usb/gadget/udc/Kconfig > @@ -330,6 +330,7 @@ config USB_AMD5536UDC > config USB_FSL_QE > tristate "Freescale QE/CPM USB Device Controller" > depends on FSL_SOC && (QUICC_ENGINE || CPM) > + depends on !64BIT || BROKEN > help > Some of Freescale PowerPC processors have a Full Speed > QE/CPM2 USB controller, which support device mode with 4 > -- > 2.25.1 >