From mboxrd@z Thu Jan 1 00:00:00 1970 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 BB9BDC3F6B0 for ; Wed, 10 Aug 2022 10:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbiHJKlT (ORCPT ); Wed, 10 Aug 2022 06:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiHJKlR (ORCPT ); Wed, 10 Aug 2022 06:41:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EC396B665; Wed, 10 Aug 2022 03:41:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9A2A61199; Wed, 10 Aug 2022 10:41:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7143C433C1; Wed, 10 Aug 2022 10:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660128075; bh=CJ+veYLE2yi0irO1SQ0dJ19o4C5fKkXVLX0IMO8dpuI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dBkxsAB8whfxkXG9rTnqrm6ZGXaJHZlv9QVSo4n5v7M9t4NMAI/JJrhYOiSMzfVBI dwvbTf/RhcxkBHkZ0O2+UzCP+2pEOJDeo6O0+c6/mCu9tucgX1mztxq4HpQnOlRWfV /2oFFEMiv8xOnzKB635KgaDMVwOUT5FaMMZ76ViU= Date: Wed, 10 Aug 2022 12:41:12 +0200 From: Greg KH To: Szuying Chen Cc: mika.westerberg@linux.intel.com, andreas.noever@gmail.com, michael.jamet@intel.com, YehezkelShB@gmail.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Yd_Tseng@asmedia.com.tw, Chloe_Chen@asmedia.com.tw, Richard_Hsu@asmedia.com.tw Subject: Re: [PATCH] thunderbolt: thunderbolt: add vendor's NVM formats Message-ID: References: <20220810101743.11214-1-chensiying21@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220810101743.11214-1-chensiying21@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 10, 2022 at 06:17:43PM +0800, Szuying Chen wrote: > The patch add tb_nvm_quirks() contain an array that has functions > pointers to tb_nvm_vendor_apply(). > And tb_nvm_vendor_apply() that recognize supported vendor works in one > of the following cases: > Case NvmUpgradeSuppport: enable nvm's attribute by setting > no_nvm_upgrade flag to create nvm_authenticate file node. > Case NvmAdd:add active/non-active NVM devices. > Case NvmWrite:update firmware to non-ative NVM device. > > Signed-off-by: Szuying Chen > --- > drivers/thunderbolt/nvm.c | 59 ++++++++++++++---------------------- > drivers/thunderbolt/switch.c | 19 +++++++----- > drivers/thunderbolt/tb.h | 18 +++++++---- > 3 files changed, 46 insertions(+), 50 deletions(-) This patch does not apply to any tree that I work with. Please make it against Linus's latest tree right now, or linux-next to be safe. thanks, greg k-h