Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp475594rwd; Thu, 8 Jun 2023 03:33:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Cn9dm95AqttECC9vFQBS4blFz9dUOHu96OlE0GkluGDB5esPa0MS0HUcgS+s8hwKnzLBD X-Received: by 2002:a17:903:26c9:b0:1a9:581d:3efb with SMTP id jg9-20020a17090326c900b001a9581d3efbmr4881943plb.6.1686220405031; Thu, 08 Jun 2023 03:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686220405; cv=none; d=google.com; s=arc-20160816; b=bPDm1r8nbx0W5SNsBJ/+dbs3ts8jX2gt90kxleVg7JBcEJDn4cD69MWwHJR+or/u1h FVhnfjliowGI0cdSj/knugaQyEIHehhgxt11ucJNGFw8lXsGY8zT6nGm35TehqCGPLRv YMylRHLYhcmlMfyI42FyDPGzP7ofRqEHSn5gcchR96d3su8+9tkHS/nTRMtHPn1SZIns F8dPraFeTZZRko6xRiBTBg3SBoN4RZ/EFE9Cy4NYHt+tD3SWIQa4Fan9clcG5jbFtQgU IhHTXbz2KpvrOv2KfLMsIhODJSPclKeZ4NieLDI+Vve44qoEPG5glBT917uROnDLF+xU vYcA== 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 :dkim-signature; bh=7JzDRQTu2anAKOCuvweNwOte+Ov7P3GHzZHTA5KX5ug=; b=HlLmqamjrRf+HogzV2ysilMz3QRaZBdTUh27lVo22U6aM//Fz4x8FuI2bYWhM52i01 8vVL69TcDKDnmy4osRZF3DeLWqt/2yZFEmYsJhmr+/5r5vHqCp5IUVKmLU6eRpt10xDn eAVQQExvC5INbeKBLXc54aop28rG4FESt2vPCbR0Sy/oiFsxJ2xptF3laRYH61ZV6tzS UP+wpF1cHdZ5LPSx6f+JS8DQyJhzzltdfGttt2wG6JZQWsYNg+wpfCG+6yr4Ndm2mi3G LEEtlbGVMKHShMmrvTkGB5i1wJb68L0ze36wxhe7KfgVmATvI5EsrwDGC/q2NVhzhUSN 7bWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=f1RmXunU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a170902ed0200b001a2a4eb10d6si906559pld.58.2023.06.08.03.33.12; Thu, 08 Jun 2023 03:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=f1RmXunU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235116AbjFHKTD (ORCPT + 99 others); Thu, 8 Jun 2023 06:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235988AbjFHKS6 (ORCPT ); Thu, 8 Jun 2023 06:18:58 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339032D44; Thu, 8 Jun 2023 03:18:51 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-62613b2c8b7so3848796d6.1; Thu, 08 Jun 2023 03:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686219530; x=1688811530; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7JzDRQTu2anAKOCuvweNwOte+Ov7P3GHzZHTA5KX5ug=; b=f1RmXunUiHGTSIsuVcre+IzVmQEWHea2gNeRTSZGgVcchXFgtzbBkhSnCXp+Op00k/ TKTDtSU0limW12t2pyeMhDIMB1FzmYeQo/vwfCikG0D0j512swlirIHEr8too/tdwmkx VNv5EzO75Jdi1AxOMuY4x1m22ItFVgLgIJ7Hp5vMvXqFGQ/UF2MMS3I4imL6bk1wS+Rf EH5GpHcCzM9hgnm98yMbwvkrdy17f0cOgxJtpHpo5zRIVIF9z4zKAL4+7aD6XgjNSIpK DhecSzCMcNw6C7Me+KOvBCcgDBiLKHTBbYyFrgQwHs8lw8uCTv3An7yKZCflARzXSKg9 glFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686219530; x=1688811530; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7JzDRQTu2anAKOCuvweNwOte+Ov7P3GHzZHTA5KX5ug=; b=Nh8p9qAaOtlI1aeNeF0TJb6XqH58sLE6koKYLA2UYjvF3rJCIMcxMkOB4h5iNbwjK8 PebSGk/b6d463/coAFqsUT/ets+Cx1fFPgemNH/qQStV5CJYkAR765CStvu19+Lzr0Pr kPWhkucaU7XlfZoo8OOvRbncOdRSKmEfpZ8SYX94wFAOehGQOKzg+IeaiHaAjtFHwbjb J3UU2jkhRAImYcZ5hi9lsKyyDFEtvEoqDPoHicg62Wzkfo3tV/PrJWq76jz3v/OsRw+a 5yKOZI/wAF9kCGr9b6G0aO3jCOS6ODTrLCMdudXLFJopdLx05XGhkvWFzPOLt5FKpRQC EWCQ== X-Gm-Message-State: AC+VfDwpspVGjomPddDOlWZRUzG92H6gqK803VfXaBsOdpKwllQS/FwI DaFg7zxCN3hrzxxejbz8iBMxuiM2vrT+TR/wiPggbNOT1iKmsg== X-Received: by 2002:a05:6214:27cf:b0:61b:5afc:d4be with SMTP id ge15-20020a05621427cf00b0061b5afcd4bemr1145940qvb.7.1686219530280; Thu, 08 Jun 2023 03:18:50 -0700 (PDT) MIME-Version: 1.0 References: <20230608072819.25930-1-zhuyinbo@loongson.cn> <20230608072819.25930-3-zhuyinbo@loongson.cn> In-Reply-To: From: Andy Shevchenko Date: Thu, 8 Jun 2023 13:18:14 +0300 Message-ID: Subject: Re: [PATCH v12 2/2] spi: loongson: add bus driver for the loongson spi controller To: Yinbo Zhu Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 8, 2023 at 1:15=E2=80=AFPM Andy Shevchenko wrote: > On Thu, Jun 8, 2023 at 10:28=E2=80=AFAM Yinbo Zhu = wrote: > > + ret =3D readb_poll_timeout(loongson_spi->base + LOONGSON_SPI_SP= SR_REG, loongson_spi->spsr, > > + (loongson_spi->spsr & 0x1) !=3D LOONGSON_SPI_SP= SR_RFEMPTY, 1, MSEC_PER_SEC); > > (loongson_spi->spsr & > LOONGSON_SPI_SPSR_RFEMPTY) !=3D LOONGSON_SPI_SPSR_RFEMPTY, > 1, MSEC_PER_SEC); Actually the last should be USEC_PER_MSEC, as the parameter is in microseco= nds. --=20 With Best Regards, Andy Shevchenko