Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp953293pxk; Fri, 25 Sep 2020 02:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeBhbzDWCNZXfkcheE2N2IddQrLJ3DDoAr2ZS2iE+R21FK3oAnDDcyAoSI5vhXONC+Y1iX X-Received: by 2002:a50:99d6:: with SMTP id n22mr215882edb.265.1601025194765; Fri, 25 Sep 2020 02:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601025194; cv=none; d=google.com; s=arc-20160816; b=A+YY7OvSXIg2eXqGdLPeEP28WcUU90fBsseKcwrWBpPixaAeK0HNEjAqnhUlIPQV50 yiLodK5UNzIpk2uHMIGSaRT6L1cVYT5x4rdB5EGhZ+67D+mftImf8e5eSxYmsNwyMT/6 p93IR6EYjQHO9px0VvAhFH5icpNJpJZto7ctOs9aEz8zmx2v20F34jRuj8gWMRvBituS WxZ+D94XLRV9OEiib/1MONF4GR3+MkxfBwtZMTbop3AlkpJUiQjLXrttRssckvLeLlsA V6jZeXIvaI4mPyoskGUdDXOO01lZ9cFdzSgQRNKe35W//MkfoOIGOqUikXZcp1pRE6Jr +e8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aWJwSkHcQYbNKOEWZ1TVdIJh2rPz2r71PSLyhlvFLUY=; b=hH/Gaz1g+C1CoeYIQ0pWN8CfALnj1pNTEyhthUhSLrPVCA0Zb5kKx3OukmE9U/5uSW 3J6wlplJ+IaSzzZ2Ihzv2v32EQtZ4pLFd/vhyn13CnmlByfWb3QvhymmokgzbpCrWjcD iyj0L7XR3VCnbXZaHujxJFz8R4ImGPViaDfL/D2LMCnh7V/UB0uGPJya98muvjRxCoyP rDw8EyBQv8RMcUOdG0kdarUlTr7JGEbcnxF8RFiIOrlMrUoaYeU8EPi/R4WCxTmB1C3x gkxKWGIkYAX4G0+ILRVk4gPkI+yNC5/ZW3AJi1TJej0GB04KgyG9JiXHBIWwnCfcEjUk /+JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YT92Zyhc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si1303643edw.144.2020.09.25.02.12.52; Fri, 25 Sep 2020 02:13:14 -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; dkim=pass header.i=@chromium.org header.s=google header.b=YT92Zyhc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgIYJLW (ORCPT + 99 others); Fri, 25 Sep 2020 05:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727428AbgIYJLW (ORCPT ); Fri, 25 Sep 2020 05:11:22 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C76B5C0613CE for ; Fri, 25 Sep 2020 02:11:21 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id h23so478953vkn.4 for ; Fri, 25 Sep 2020 02:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aWJwSkHcQYbNKOEWZ1TVdIJh2rPz2r71PSLyhlvFLUY=; b=YT92ZyhcCSVct41NNQJ5H+v81DH6N1/Fnpgnd2suwGKDa9o/WkzKzVBD0cv5tjXW6b gbauj156FnyzRcly7lGjMDF7C0FMl0mpSP3FK8ozUizc2poL7h3CF7JkfkaP7r/3cYJJ 2/2HcNxFG/PN129V+7xqesUxl9evRU8A24jS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aWJwSkHcQYbNKOEWZ1TVdIJh2rPz2r71PSLyhlvFLUY=; b=OXjenl3BEt/NlMht4B2zIEM/PaxiItYiQxrJ/6MJFNIVtbdgnszTJnAuiH0TTm++MC 4M9La0IfjKkHlKDVpxgPJR/xgXPap4jjcrtojX3ww2WktnbjjNgD5sKM3AG4f60thevS xbXflxPlks0DfUfZoAUGANrIo0vUHVzSXzARv5CsDkmqPSYuv2vK08fBqCAu3jZv4EMo Z7AslS3Ob5i5dZURhz85y3JNWQnHG9puHlaeqACGC5lurJczuwVxvf59SjSpHrgf0Wbi r0eynHZv/diStWOIjMvTjZ8M3pmb3oZP4CZC+q0YuzxUtYSxMl3gjGuq/EnTfmtlzahn WOgA== X-Gm-Message-State: AOAM532YtUZzJCAp4fLAOYFw80y7e1ifPKCUUqM6dUhPN4YExAZ1RhAM UwZCpvn7x5kA3l0/iKLpSu9yIE62vU46SLxxdwye4w== X-Received: by 2002:a1f:434b:: with SMTP id q72mr1948481vka.5.1601025081001; Fri, 25 Sep 2020 02:11:21 -0700 (PDT) MIME-Version: 1.0 References: <20200925065418.1077472-1-ikjn@chromium.org> <20200925145255.v3.5.Id1cb208392928afc7ceed4de06924243c7858cd0@changeid> In-Reply-To: From: Ikjoon Jang Date: Fri, 25 Sep 2020 17:11:10 +0800 Message-ID: Subject: Re: [PATCH v3 5/6] spi: spi-mtk-nor: support 36bit dma addressing To: Chuanhong Guo Cc: Rob Herring , Mark Brown , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , open list , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 4:27 PM Chuanhong Guo wrote: > [snip] > > + if (sp->high_dma) { > > + writel(dma_addr >> 32, sp->base + MTK_NOR_REG_DMA_DADR_HB); > > + writel((dma_addr + length) >> 32, sp->base + MTK_NOR_REG_DMA_END_DADR_HB); > > + } > > I remembered kbuild test robot reported a warning on this on 32-bit platforms > in your v1. [0] > I don't know what's the fix for this though :( > > [0] https://marc.info/?l=linux-spi&m=159982425706940&w=2 yeah, I'm not sure how to handle this properly, "warning: shift count >= width of type", (sp->high_dma) is always false on 32bit arm kernel. I think adding size check on here is unnecessary, should I fix for this warning? > -- > Regards, > Chuanhong Guo Sorry for resending, Chuanhong.