From patchwork Thu Oct 27 12:11:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 619478 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9864ECAAA1 for ; Thu, 27 Oct 2022 12:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233867AbiJ0MLt (ORCPT ); Thu, 27 Oct 2022 08:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbiJ0MLs (ORCPT ); Thu, 27 Oct 2022 08:11:48 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF85D0CE3 for ; Thu, 27 Oct 2022 05:11:47 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id o4so1825492wrq.6 for ; Thu, 27 Oct 2022 05:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=w3b8progjf6nTjlRNKVhfA6lVwhcFNvYGUFDNCKIgOA=; b=hzJqchdz1nxotUABi97SVc6OkYYXbmXSBzNSLO4BfJWSlQ4E/TmdwAKsz5Y2AD2OYC tuKmAdi7p9QjnjlY0bKS/VQzsLIb9FARhep7ETn0SVYxRexqgpn9jhEyusubgxgaL1dy 1fpOJUmwJlblJ+qKKfUHeBPhe8sCps2EGGtrTaoAT78+ZJhJRhePoMFPsqplGwCFABm6 x9guCDmak8TBfzmnyofI7noqI9/yBqNquKt+lzSBkye+s+bRcIDx0iuza+OA4qpaawMJ ujGVCW3rJCAwVV9H6MieBouzPIbJyJgMpSpVtRRqi0X3RdzANId093CK5DhTMukf5s9M UMzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w3b8progjf6nTjlRNKVhfA6lVwhcFNvYGUFDNCKIgOA=; b=52UpK/fs4Yy89dEO4WSrnJ2zQxoUkHJaSbfrTxWjcAkCTva9wOx2kcmIweRskyHGPb DWfR4BPKdeyxbBlvPGksvdaE+sgqJUX745kPXRbuchqMEw1SmVYZpoNjFEcC3BwmHvC0 OnCvUPuP/Da8kMGFxpidPJG8Hmz9sRrwsGn4qhB2i8omXCX0Tpbg35x9cvhsUks6lEFY siTRMNg+Kdmp5zKJGqK77wPFZvmzfKmfyYCy2R3IGDF3st1G881RqxOKwnXm6lHds2U1 3fOdk+vmhO6fvJS+HxSQXO5W3bixhI2QKKSD0MRMceSy84A5KURjyRpVoQHnd2AgMqxw j30g== X-Gm-Message-State: ACrzQf2iZDnc3ALf64y8x8tx7ZO3RrM63Hcd78kSIhMI+OLSxr3ghjrF Mg8fsXZr1sbBlnAJSjo6+KeO5Q== X-Google-Smtp-Source: AMsMyM5rJoSQ6ICEDwXJ+doDHBP8h+Yz7A7uzCo72oHXSiDM3V7WEN6+2va2BAcuQ3qE+wUjWjLM7A== X-Received: by 2002:a5d:4944:0:b0:236:7f32:1ad5 with SMTP id r4-20020a5d4944000000b002367f321ad5mr8985028wrs.377.1666872705548; Thu, 27 Oct 2022 05:11:45 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id bw28-20020a0560001f9c00b0022cd27bc8c1sm1414312wrb.9.2022.10.27.05.11.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 05:11:45 -0700 (PDT) From: Neil Armstrong Date: Thu, 27 Oct 2022 14:11:43 +0200 Subject: [PATCH] spi: meson-spicc: fix do_div build error on non-arm64 MIME-Version: 1.0 Message-Id: <20221027-b4-spicc-burst-delay-fix-v1-0-5a6e9a88e54c@linaro.org> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org X-Mailer: b4 0.10.1 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This fixes : error: passing argument 1 of '__div64_32' from incompatible pointer type By passing an uint64_t as first variable to do_div(). Fixes: 04694e50020b ("spi: meson-spicc: move wait completion in driver to take bursts delay in account") Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl Reported-by: kernel test robot --- To: Neil Armstrong To: Kevin Hilman To: Jerome Brunet To: Martin Blumenstingl Cc: linux-spi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/spi/spi-meson-spicc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 574f97ab96d6b153407161746bc127564e998b4f change-id: 20221027-b4-spicc-burst-delay-fix-a03004454876 Best regards, diff --git a/drivers/spi/spi-meson-spicc.c b/drivers/spi/spi-meson-spicc.c index 52bffab18329..1b4195c54ee2 100644 --- a/drivers/spi/spi-meson-spicc.c +++ b/drivers/spi/spi-meson-spicc.c @@ -387,7 +387,7 @@ static int meson_spicc_transfer_one(struct spi_master *master, struct spi_transfer *xfer) { struct meson_spicc_device *spicc = spi_master_get_devdata(master); - unsigned long timeout; + uint64_t timeout; /* Store current transfer */ spicc->xfer = xfer;