From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1524506380-7417-1-git-send-email-loic.poulain@linaro.org> <1524506380-7417-2-git-send-email-loic.poulain@linaro.org> From: Loic Poulain Date: Thu, 26 Apr 2018 08:52:54 +0200 Message-ID: Subject: Re: [PATCH 2/2] Bluetooth: btqca: Add AR3002 rampatch support To: bgodavar@codeaurora.org Cc: Marcel Holtmann , "open list:BLUETOOTH DRIVERS" , linux-arm-msm@vger.kernel.org, kkapra@codeaurora.org Content-Type: text/plain; charset="UTF-8" List-ID: Hi Balakrishna, > A small suggestion from my side, suppose in near future ROME go with new format i.e. acknowledging for last segment of RAM patch. > then checking rom_build field may not work. > i.e. > if (le16_to_cpu(tlv_patch->rom_build) >= 0x0302) > config->dnld_mode = tlv_patch->download_mode; > > i suggest you to check the byte download_mode directly and decide to wait > for ACK from SoC, for every RAM patch segment sent. > i think byte download_mode is explicitly for mode of downloading the patch > i.e. with ACK or NACK. (pls double confirm about this byte). Yes AFAIK, this byte is for download mode or reserved (0). So yes we can unconditionally check it to determine the mode. Regards, Loic