From: Timur Tabi Subject: Re: [PATCH v2] net: qcom/emac: extend DMA mask to 46bits Date: Fri, 17 Nov 2017 08:24:46 -0600 Message-ID: <643046e7-4a6a-7f52-5104-5d7dea675b43@codeaurora.org> References: <1510912590-3532-1-git-send-email-wdsch86@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Wang Dongsheng Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:37948 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933834AbdKQOYs (ORCPT ); Fri, 17 Nov 2017 09:24:48 -0500 In-Reply-To: <1510912590-3532-1-git-send-email-wdsch86@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/17/17 3:56 AM, Wang Dongsheng wrote: > -#define TPD_BUFFER_ADDR_H_SET(tpd, val) BITS_SET((tpd)->word[3], 18, 30, val) > +#define TPD_BUFFER_ADDR_H_SET(adpt, tpd, val) BITS_SET((tpd)->word[3], 18, \ > + TX_TS_ENABLE & \ > + readl((adpt)->csr + EMAC_EMAC_WRAPPER_CSR1) ? \ > + 30 : 31, val) NAK. Sorry, but this is terrible. Every write to the TPD forces a secret read from another register? No thank you. Just do what you had in v1, but also set the DMA mask. Add a comment saying that we can support 46 bits because we never enable timestamping. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.