Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11446724ybi; Thu, 25 Jul 2019 16:46:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBu24DcalHyZrs407qOxUogqMXj1EAkCCknGOa5JSUoTv62GX2M+b4d+XMSIBDkWCJPsGY X-Received: by 2002:a63:20a:: with SMTP id 10mr87787577pgc.226.1564098386079; Thu, 25 Jul 2019 16:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564098386; cv=none; d=google.com; s=arc-20160816; b=LfRvLcibCvRxnNmLWVvksz86umoz34N3VcBDdJm8xvfKaoQs/2VsoiJBreiA/rc3p2 WKWaRVsFicLGyOLkIaHPE7qFwP/+ZTQTA64yvQrfvWBh0ZX76GRs9+ONDiLlK/l0hUVH qevCoRyZgcc50W/jZpHuRfgDg2IVlBzOAsc+NhzoLnrOTLOYa5l9UYkKsqH82ORB1AQ4 bFJ0PQHSxctXqVV8Xme7sooRZgoun/BhV7jG6WNXsdwsZHYuPywsSjxVjrenNWi3/z8d yjMqkNYhazyd9sYP/2b9LQSCGczNGCRGFHRnPEGHxrcM/fc+804AN7nTopll0W3Hqrtr VRQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=h+DVo1SPMlXBfdO2bvaepJoj2xtmanE0Zm4uQ84fZaM=; b=0mM27bM8w3JQJDT1tpUtsNOhO72FT8ix8K91KpXuJ1D9Moi5/bVhc0cyquD21TF9Uu djjLm/SowQ1+dBBzpPI8VDKqMR45jB6LlC2lV7K0lI4adK1w3AYiCDCvd0PfukZrUIGm AzdBMP/3WuI7ryHhiS4BSo9WwWw/klzy/r5gC2QdIBgJdjm8t+KIGSdhIs2s7daYGqRK xSiNdPS2zzejG1TbxXhBaq2n0flcDV9yavbMkyGCczZf53sv0Ls/cvVuxCVxnwIS9zcz 6UNGKJ3F/bYC+w9BYeIl9l75sxfN/VTrf2YXIJX6mWk+PAOmKCZXMtv5Mxm010WLo9gi Nb8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si16167233pld.359.2019.07.25.16.46.11; Thu, 25 Jul 2019 16:46:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727848AbfGYXna (ORCPT + 99 others); Thu, 25 Jul 2019 19:43:30 -0400 Received: from mga06.intel.com ([134.134.136.31]:51815 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727201AbfGYXlM (ORCPT ); Thu, 25 Jul 2019 19:41:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 16:41:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="369874666" Received: from amrutaku-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.230.75]) by fmsmga006.fm.intel.com with ESMTP; 25 Jul 2019 16:41:10 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Pierre-Louis Bossart , Sanyog Kale Subject: [RFC PATCH 08/40] soundwire: intel: remove BIOS work-arounds Date: Thu, 25 Jul 2019 18:40:00 -0500 Message-Id: <20190725234032.21152-9-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org the values passed by all existing BIOS are fine, let's use them as is. The existing code must have been needed only on early prototypes. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 51990b192dc0..c718c9c67a37 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -922,17 +922,6 @@ static int intel_prop_read(struct sdw_bus *bus) /* Initialize with default handler to read all DisCo properties */ sdw_master_read_prop(bus); - /* BIOS is not giving some values correctly. So, lets override them */ - bus->prop.num_clk_freq = 1; - bus->prop.clk_freq = devm_kcalloc(bus->dev, bus->prop.num_clk_freq, - sizeof(*bus->prop.clk_freq), - GFP_KERNEL); - if (!bus->prop.clk_freq) - return -ENOMEM; - - bus->prop.clk_freq[0] = bus->prop.max_clk_freq; - bus->prop.err_threshold = 5; - return 0; } -- 2.20.1