Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881366pxb; Wed, 27 Oct 2021 14:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx4/u4PuNNnYAQi8UNaPSfaJmZBryfBkDU4JWVkr4eU8xmpHFLagZODC5rswPDbRQdJsKg X-Received: by 2002:a17:907:8a16:: with SMTP id sc22mr64980ejc.502.1635369786096; Wed, 27 Oct 2021 14:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369786; cv=none; d=google.com; s=arc-20160816; b=oHSfMgdszKgU/3Peu8Y/IRy5rs7S6f+1ea1LXZwfMfwkEsJfiBUBqK1Ie9IpAIrvC7 EROmFtup9wRinO06a/GjQrMrcvGRjNMXL4XGbsi6eJeOHt6C0huyI70HN+K+UmRBD4/m 7YJVjFpiU3MyYT9LC3Wh6MYlxvzsW5en7kQgbcXINb1/OIX3jFVOr3rSXsXIX1anQg4T uHYIiQxvQ+mXhPaccPIoG+849mgt0FUgtHDqZ0oayqEtq5V9QbryGmfIv6lMmI3L9hAN 9//u5L9cApzQC50GeD1uQAQ61X5BUKFdr1z2/8JDYYDT8xFEz/hN3Wsb9Ku+lN80nDLW rrfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=APuzr1h5VCM6eIl7pvEjPUBWy/8e+Ex21jaDbP6u+z0=; b=XQEcoLe58TBDfU1lpFcFHRjjTJ+K3hzXdvcXxKsTOVfE21LD0+P+IReAgUWsZgl41H dRkDlmVRsnuOAQ/LvjXbjNVv5U0gn+36vk4guD9jpSBq6Oli+XUaamuHGh2GJ6E7mObg Q+oxEBJbBH+GScn9OY8FsdUp6NWFesYTxhB8itx6+yppajedZb8skp6/F5Hatv2gPrX+ h6U23s/ciM8tSaPRC6DxYPLCa1oN7aH92Hw7FjB+CsbepzXz2oqUJuWSjRz0IPXjCTrh t1FcOwTBEsnqZJrLPi4uL0/wfpzDIPUg99tb1ACCFuhvLlYaJu3KoqEE5Ui12DYX6ass F1CQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si1358670eds.339.2021.10.27.14.22.42; Wed, 27 Oct 2021 14:23:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241343AbhJ0KRo (ORCPT + 97 others); Wed, 27 Oct 2021 06:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241014AbhJ0KRo (ORCPT ); Wed, 27 Oct 2021 06:17:44 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F51CC061570 for ; Wed, 27 Oct 2021 03:15:18 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:441:6c1a:bc30:46e]) by andre.telenet-ops.be with bizsmtp id AyFE260042hfXWm01yFEen; Wed, 27 Oct 2021 12:15:14 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mffiU-008HRd-LB; Wed, 27 Oct 2021 11:59:30 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mfdzN-00DkK9-St; Wed, 27 Oct 2021 10:08:49 +0200 From: Geert Uytterhoeven To: Li Yang , Felipe Balbi , Greg Kroah-Hartman Cc: Arnd Bergmann , linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit Date: Wed, 27 Oct 2021 10:08:49 +0200 Message-Id: <20211027080849.3276289-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Geert Uytterhoeven --- 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