From patchwork Wed Dec 13 01:55:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121721 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4934616qgn; Tue, 12 Dec 2017 19:03:28 -0800 (PST) X-Google-Smtp-Source: ACJfBovcbzQdPjrL+beApKafK9mhc70HVq9Qx0gjqNF/OpuI0/+ZBRF1wf3+XlomgzRXA4mqIN7E X-Received: by 10.99.126.6 with SMTP id z6mr3931243pgc.126.1513134208599; Tue, 12 Dec 2017 19:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513134208; cv=none; d=google.com; s=arc-20160816; b=s8P8UqrqcAwS2AtRSgmQ5Sxi/qNNcOOqOOi/oHB8gYFBpZFE0XbR7/dFGORncMjDqe yi8ZkQcbTsHPuZopRF4UWTHy0Euto/juOWKT4sLEneNfWAXq70CMtT88V73sK4mqj53W Z7egNrO9LQZkI2nvwYZV3UfYd9jHINr2OL03xvtGMxBf+iUxMSVYVuxawAzxdLTbKoOh a8S+lcHoo7fgGjHW7tfU3mZUxStcMSYUosR0hVrmPDOJawT/fp6P+O/wplrk1E9fjyy0 aWL14vy/ApDNf8Qh0icqWJOQLsy8fdn1uNiiCtHLJNEBxTwYeZgiqpAojWzBoWW0xu2i TkGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:cc:from:dkim-signature :dkim-signature:dkim-signature:arc-authentication-results; bh=RtkOcttABZCU9QuOFGrek9JFMyhPseY0Y6rDtuOqodc=; b=J6VxjYjYj6uFcA4B4JsbggzbR9P5V/FBc+IFUCNAa0xNI2lD8BwztCnjUj1CaLqlbB +d1gKyLRSuYlMFg/AqxlSuPIjgugC/K1iIIteddXvSYEKVdsO4J2zsUe++4JNYIMZOdD LRZ6ZQHA3K3AcDQCvM0mWLKANsWe8MLJyW/GCQJpAyKlVVFupecI2tzFfapr8xx6QcRe 2i7M1X1tsDhHfQCF4KRNvjpYTgWzv2Oibc4XzebJN6pAsl4z+GgNTwgZWUnHqMcxqc8b ZVI1e/tewfqt6uHUexrqOqaNwfW9JCslfqSccGKf8zNbsBknPCK+pdPaRNnXwsLCjOgI 4Vug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=ZR3bTPSQ; dkim=fail header.i=@verizon.com header.s=corp header.b=idpu1EVZ; dkim=fail header.i=@verizon.com header.s=corp header.b=GrCdHzmk; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si483977pgn.374.2017.12.12.19.03.28; Tue, 12 Dec 2017 19:03:28 -0800 (PST) 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; dkim=fail header.i=@verizon.com header.s=corp header.b=ZR3bTPSQ; dkim=fail header.i=@verizon.com header.s=corp header.b=idpu1EVZ; dkim=fail header.i=@verizon.com header.s=corp header.b=GrCdHzmk; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753477AbdLMDDZ (ORCPT + 10 others); Tue, 12 Dec 2017 22:03:25 -0500 Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:43024 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbdLMBzp (ORCPT ); Tue, 12 Dec 2017 20:55:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130145; x=1544666145; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=waymeNnu5QxL5QcIjZQwUPFP823tXe/6ZeKai9WauM8=; b=ZR3bTPSQoVYbbQJ0amOK31hkBHmHCZQEVfVnlVZwLR5j2AuwjFPN+VkI 02OFQkmqqQ/Q6SRXTNN7RQw4QoUtIOR7cHJsWGJLdgdV3F4Y8rtZ5Vc9G IOsl6YAb2l48QLfc0d8gYlzBGmGxtPOXlkyMBSdRjwUy3umvabJPHXkHV Q=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe01.verizonbusiness.com with ESMTP; 13 Dec 2017 01:55:39 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO atlantis.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 01:55:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130119; x=1544666119; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=waymeNnu5QxL5QcIjZQwUPFP823tXe/6ZeKai9WauM8=; b=idpu1EVZY5TB5seJSp/Uo6ZZea2GEnmWjL4QMP+28AyoN1Br8d37Fo4o ulJNd4Sk5h38pl+z+1EMS1zoPXlNxRqFzAI9YHrzLqmiAa3feepABLiAu qqcE4NPmKj5BvgYTCEXN9rPsV/GvWsL8+ZdPgvPRfdlTcTz2q6MDwdgLc 4=; Received: from surveyor.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.83]) by atlantis.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 20:55:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130119; x=1544666119; h=to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:from:cc; bh=waymeNnu5QxL5QcIjZQwUPFP823tXe/6ZeKai9WauM8=; b=GrCdHzmkr2G+EmpCjYyJAd21sIg/Ny/bKrsnmlJG+EbnREYLlpc9VhAx eqWV8GKQPmFjnQn2B6/Veq1YqZXSmJHogzXsNE+MS58Tgz81dCOBS0cCz nBq2DkeQU/oa3KF3l3l6n8/czMQj2ty+S69ksYZ4PMgqqv8QTw+tSjmg7 E=; From: alexander.levin@verizon.com Cc: Dan Murphy , "David S . Miller" , alexander.levin@verizon.com X-Host: surveyor.tdc.vzwcorp.com Received: from ohtwi1exh002.uswin.ad.vzwcorp.com ([10.144.218.44]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 01:55:19 +0000 Received: from tbwexch22apd.uswin.ad.vzwcorp.com (153.114.162.46) by OHTWI1EXH002.uswin.ad.vzwcorp.com (10.144.218.44) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 20:55:19 -0500 Received: from OMZP1LUMXCA19.uswin.ad.vzwcorp.com (144.8.22.197) by tbwexch22apd.uswin.ad.vzwcorp.com (153.114.162.46) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:55:18 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA19.uswin.ad.vzwcorp.com (144.8.22.197) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 19:55:17 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 19:55:17 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 4.14 12/60] net: phy: at803x: Change error to EINVAL for invalid MAC Thread-Topic: [PATCH AUTOSEL for 4.14 12/60] net: phy: at803x: Change error to EINVAL for invalid MAC Thread-Index: AQHTc7VqAVbUsTO/VkOT1v8xfUKWdQ== Date: Wed, 13 Dec 2017 01:55:13 +0000 Message-ID: <20171213015455.6455-12-alexander.levin@verizon.com> References: <20171213015455.6455-1-alexander.levin@verizon.com> In-Reply-To: <20171213015455.6455-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Murphy [ Upstream commit fc7556877d1748ac00958822a0a3bba1d4bd9e0d ] Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/at803x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index c1e52b9dc58d..5f93e6add563 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -167,7 +167,7 @@ static int at803x_set_wol(struct phy_device *phydev, mac = (const u8 *) ndev->dev_addr; if (!is_valid_ether_addr(mac)) - return -EFAULT; + return -EINVAL; for (i = 0; i < 3; i++) { phy_write(phydev, AT803X_MMD_ACCESS_CONTROL, From patchwork Wed Dec 13 01:55:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121720 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4933435qgn; Tue, 12 Dec 2017 19:02:05 -0800 (PST) X-Google-Smtp-Source: ACJfBot7peGIQlpB3tbAZL7gPSXaxNxK8EvvTcvI3PPP1Dlc4x8lmBs3a1+RIFColWRLlfxQxJID X-Received: by 10.99.97.135 with SMTP id v129mr3995641pgb.184.1513134125260; Tue, 12 Dec 2017 19:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513134125; cv=none; d=google.com; s=arc-20160816; b=XkU2n1wluGEkkXdubZkAyth8tjXWg7+feVsYmBTizf5Voa+ODEGSlw42PG1yRJ5lfc redZVzw96qKKJju+FK7nfD8o9jrOMxXNEn79srakoQpXbsTtoniObNkXNoLZeMUrIhyh 5jktljFm0s5JH+jeRBBOVTY9efIA2ZYD1M3ygpUb9erpCWP9W86xbEZRtxWKB0WXchyY ibSwDPK/6/dWU38iIW0T4Rw/Z8BiBP/8DfDuMhIhXOXEPr9XTty6dcaNMAizlPGXJoLL wi59Vtw+mJim6CEIX2i7lbhpfqmi8mgrqe+PnORnyBIQOqoNItHzTynagfGw4iVZyyUj YgWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:cc:from:dkim-signature :dkim-signature:dkim-signature:arc-authentication-results; bh=46nqB4zEfpZma6+smGihCD1XIlUdPuhosrVEdrY0iW8=; b=lAT7et3+Qr/4exL9CXbQ5mEiftjp4XbjPcAKlPxF/G+QkI771sGoyRoWkco3mbozRx PCEZqR0NvQFYknOuCvslHzsRzeHVfB6P5uqevVBByKHxLljoedy/puYw+AG5L8yrtLH8 JuwvACOvNqG1sDFC9JQikdiTY6av2XJqKAqtZUoJvjJz9EBaStBE4OfhOU0DqrCuiq6G Qs1hmOYNNIWpsNS32HocSEmI7Z86cLc+K67+aO26dz/NoDiriL1714tvWHwYyvWegOk4 NbWRHP0mYze0V0ca1nifaL4bB4ieDtt2WrP26ZBFZZfyjr6L9WwMauf+KEpeZ7IyYvZN c5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=lAd2V+In; dkim=fail header.i=@verizon.com header.s=corp header.b=BJxrxrIj; dkim=fail header.i=@verizon.com header.s=corp header.b=plYCugoI; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j33si504215pld.593.2017.12.12.19.02.05; Tue, 12 Dec 2017 19:02:05 -0800 (PST) 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; dkim=fail header.i=@verizon.com header.s=corp header.b=lAd2V+In; dkim=fail header.i=@verizon.com header.s=corp header.b=BJxrxrIj; dkim=fail header.i=@verizon.com header.s=corp header.b=plYCugoI; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752772AbdLMDCB (ORCPT + 10 others); Tue, 12 Dec 2017 22:02:01 -0500 Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:15945 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbdLMBz5 (ORCPT ); Tue, 12 Dec 2017 20:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130157; x=1544666157; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xPAiQEHPH5bOTXzzcGcx36A4w4tLjilVl/mu1FcskTg=; b=lAd2V+InfQfRm7O6aPywXaVacuOdsWpaN6rW91biIVGK1QPj291zgh2I 3ZIc3P+EI0vsJwwoNXB0Z4/11JO6YhkbOzLD9q/Zo5IFcyQc7kKIK5icv 84TTBMqdOsMo99hXrAsrgA0jbMSfzrUYpaFBHhOaZhSdFT8rkwLOcRJQy E=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe01.verizonbusiness.com with ESMTP; 13 Dec 2017 01:55:40 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO atlantis.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 01:55:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130125; x=1544666125; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xPAiQEHPH5bOTXzzcGcx36A4w4tLjilVl/mu1FcskTg=; b=BJxrxrIjw3YpbSGrr/h1eubSlY0wb5p4lFtlRkDO71u98JpBA9bKlbe6 aqDFYIVlXRzwcvM8Le3LMfHqPlCtVjO57FU0mNyXlq2DXaAp4fvEn6QNa 7xqvxKIjQfBuK2Qa3rQCMoh88CbzniIuVptecvYxg2K4X6xLydCSKSO9m I=; Received: from mariner.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.84]) by atlantis.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 20:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130124; x=1544666124; h=to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:from:cc; bh=xPAiQEHPH5bOTXzzcGcx36A4w4tLjilVl/mu1FcskTg=; b=plYCugoIgGSzkvzAfTIPuj3bgIdicio//ksTuCegTcXtJEWHON4BlE4L vpO0yf+Euyq+vLDNlLcHb7LzSlJf4LkRPqruMdzkAP448ZURQ5bXkXTjA hJR2kcMrNqxofSdkCKIu4+neOAkE0uAnQgTmm7Vtb7RCWJ9qZJMoaHtyj U=; From: alexander.levin@verizon.com Cc: Masahiro Yamada , alexander.levin@verizon.com X-Host: mariner.tdc.vzwcorp.com Received: from ohtwi1exh003.uswin.ad.vzwcorp.com ([10.144.218.45]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 01:55:24 +0000 Received: from tbwexch18apd.uswin.ad.vzwcorp.com (153.114.162.42) by OHTWI1EXH003.uswin.ad.vzwcorp.com (10.144.218.45) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 20:55:24 -0500 Received: from OMZP1LUMXCA18.uswin.ad.vzwcorp.com (144.8.22.196) by tbwexch18apd.uswin.ad.vzwcorp.com (153.114.162.42) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:55:23 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA18.uswin.ad.vzwcorp.com (144.8.22.196) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 19:55:22 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 19:55:22 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 4.14 20/60] kbuild: re-order the code to not parse unnecessary variables Thread-Topic: [PATCH AUTOSEL for 4.14 20/60] kbuild: re-order the code to not parse unnecessary variables Thread-Index: AQHTc7VravCrIgvcFEeRC2QZRSm1ww== Date: Wed, 13 Dec 2017 01:55:15 +0000 Message-ID: <20171213015455.6455-20-alexander.levin@verizon.com> References: <20171213015455.6455-1-alexander.levin@verizon.com> In-Reply-To: <20171213015455.6455-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 2c1f4f125159f10521944cea23e33a00fcf85ede ] The top Makefile is divided into some sections such as mixed targets, config targets, build targets, etc. When we build mixed targets, Kbuild just invokes submake to process them one by one. In this case, compiler-related variables like CC, KBUILD_CFLAGS, etc. are unneeded. Check what kind of targets we are building first, and parse variables for building only when necessary. Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- Makefile | 233 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 118 insertions(+), 115 deletions(-) -- 2.11.0 diff --git a/Makefile b/Makefile index 43ac7bdb10ad..2c1cddc9c9b5 100644 --- a/Makefile +++ b/Makefile @@ -187,15 +187,6 @@ ifeq ("$(origin M)", "command line") KBUILD_EXTMOD := $(M) endif -# If building an external module we do not care about the all: rule -# but instead _all depend on modules -PHONY += all -ifeq ($(KBUILD_EXTMOD),) -_all: all -else -_all: modules -endif - ifeq ($(KBUILD_SRC),) # building in the source tree srctree := . @@ -207,6 +198,9 @@ else srctree := $(KBUILD_SRC) endif endif + +export KBUILD_CHECKSRC KBUILD_EXTMOD KBUILD_SRC + objtree := . src := $(srctree) obj := $(objtree) @@ -215,6 +209,74 @@ VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD)) export srctree objtree VPATH +# To make sure we do not include .config for any of the *config targets +# catch them early, and hand them over to scripts/kconfig/Makefile +# It is allowed to specify more targets when calling make, including +# mixing *config targets and build targets. +# For example 'make oldconfig all'. +# Detect when mixed targets is specified, and make a second invocation +# of make so .config is not included in this case either (for *config). + +version_h := include/generated/uapi/linux/version.h +old_version_h := include/linux/version.h + +no-dot-config-targets := clean mrproper distclean \ + cscope gtags TAGS tags help% %docs check% coccicheck \ + $(version_h) headers_% archheaders archscripts \ + kernelversion %src-pkg + +config-targets := 0 +mixed-targets := 0 +dot-config := 1 + +ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) + ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) + dot-config := 0 + endif +endif + +ifeq ($(KBUILD_EXTMOD),) + ifneq ($(filter config %config,$(MAKECMDGOALS)),) + config-targets := 1 + ifneq ($(words $(MAKECMDGOALS)),1) + mixed-targets := 1 + endif + endif +endif +# install and modules_install need also be processed one by one +ifneq ($(filter install,$(MAKECMDGOALS)),) + ifneq ($(filter modules_install,$(MAKECMDGOALS)),) + mixed-targets := 1 + endif +endif + +ifeq ($(mixed-targets),1) +# =========================================================================== +# We're called with mixed targets (*config and build targets). +# Handle them one by one. + +PHONY += $(MAKECMDGOALS) __build_one_by_one + +$(filter-out __build_one_by_one, $(MAKECMDGOALS)): __build_one_by_one + @: + +__build_one_by_one: + $(Q)set -e; \ + for i in $(MAKECMDGOALS); do \ + $(MAKE) -f $(srctree)/Makefile $$i; \ + done + +else + +# We need some generic definitions (do not try to remake the file). +scripts/Kbuild.include: ; +include scripts/Kbuild.include + +# Read KERNELRELEASE from include/config/kernel.release (if it exists) +KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) +KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) +export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION + # SUBARCH tells the usermode build what the underlying arch is. That is set # first, and if a usermode build is happening, the "ARCH=um" on the command # line overrides the setting of ARCH below. If a native build is happening, @@ -312,40 +374,6 @@ HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \ -Wno-missing-field-initializers -fno-delete-null-pointer-checks endif -# Decide whether to build built-in, modular, or both. -# Normally, just do built-in. - -KBUILD_MODULES := -KBUILD_BUILTIN := 1 - -# If we have only "make modules", don't compile built-in objects. -# When we're building modules with modversions, we need to consider -# the built-in objects during the descend as well, in order to -# make sure the checksums are up to date before we record them. - -ifeq ($(MAKECMDGOALS),modules) - KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1) -endif - -# If we have "make modules", compile modules -# in addition to whatever we do anyway. -# Just "make" or "make all" shall build modules as well - -ifneq ($(filter all _all modules,$(MAKECMDGOALS)),) - KBUILD_MODULES := 1 -endif - -ifeq ($(MAKECMDGOALS),) - KBUILD_MODULES := 1 -endif - -export KBUILD_MODULES KBUILD_BUILTIN -export KBUILD_CHECKSRC KBUILD_SRC KBUILD_EXTMOD - -# We need some generic definitions (do not try to remake the file). -scripts/Kbuild.include: ; -include scripts/Kbuild.include - # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as LD = $(CROSS_COMPILE)ld @@ -410,11 +438,6 @@ KBUILD_AFLAGS_MODULE := -DMODULE KBUILD_CFLAGS_MODULE := -DMODULE KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds -# Read KERNELRELEASE from include/config/kernel.release (if it exists) -KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) -KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION) - -export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC export CPP AR NM STRIP OBJCOPY OBJDUMP HOSTLDFLAGS HOST_LOADLIBES export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE @@ -463,73 +486,6 @@ ifneq ($(KBUILD_SRC),) $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) endif -# Support for using generic headers in asm-generic -PHONY += asm-generic uapi-asm-generic -asm-generic: uapi-asm-generic - $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ - src=asm obj=arch/$(SRCARCH)/include/generated/asm -uapi-asm-generic: - $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ - src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm - -# To make sure we do not include .config for any of the *config targets -# catch them early, and hand them over to scripts/kconfig/Makefile -# It is allowed to specify more targets when calling make, including -# mixing *config targets and build targets. -# For example 'make oldconfig all'. -# Detect when mixed targets is specified, and make a second invocation -# of make so .config is not included in this case either (for *config). - -version_h := include/generated/uapi/linux/version.h -old_version_h := include/linux/version.h - -no-dot-config-targets := clean mrproper distclean \ - cscope gtags TAGS tags help% %docs check% coccicheck \ - $(version_h) headers_% archheaders archscripts \ - kernelversion %src-pkg - -config-targets := 0 -mixed-targets := 0 -dot-config := 1 - -ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) - ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) - dot-config := 0 - endif -endif - -ifeq ($(KBUILD_EXTMOD),) - ifneq ($(filter config %config,$(MAKECMDGOALS)),) - config-targets := 1 - ifneq ($(words $(MAKECMDGOALS)),1) - mixed-targets := 1 - endif - endif -endif -# install and modules_install need also be processed one by one -ifneq ($(filter install,$(MAKECMDGOALS)),) - ifneq ($(filter modules_install,$(MAKECMDGOALS)),) - mixed-targets := 1 - endif -endif - -ifeq ($(mixed-targets),1) -# =========================================================================== -# We're called with mixed targets (*config and build targets). -# Handle them one by one. - -PHONY += $(MAKECMDGOALS) __build_one_by_one - -$(filter-out __build_one_by_one, $(MAKECMDGOALS)): __build_one_by_one - @: - -__build_one_by_one: - $(Q)set -e; \ - for i in $(MAKECMDGOALS); do \ - $(MAKE) -f $(srctree)/Makefile $$i; \ - done - -else ifeq ($(config-targets),1) # =========================================================================== # *config targets only - make sure prerequisites are updated, and descend @@ -552,6 +508,44 @@ else # Build targets only - this includes vmlinux, arch specific targets, clean # targets and others. In general all targets except *config targets. +# If building an external module we do not care about the all: rule +# but instead _all depend on modules +PHONY += all +ifeq ($(KBUILD_EXTMOD),) +_all: all +else +_all: modules +endif + +# Decide whether to build built-in, modular, or both. +# Normally, just do built-in. + +KBUILD_MODULES := +KBUILD_BUILTIN := 1 + +# If we have only "make modules", don't compile built-in objects. +# When we're building modules with modversions, we need to consider +# the built-in objects during the descend as well, in order to +# make sure the checksums are up to date before we record them. + +ifeq ($(MAKECMDGOALS),modules) + KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1) +endif + +# If we have "make modules", compile modules +# in addition to whatever we do anyway. +# Just "make" or "make all" shall build modules as well + +ifneq ($(filter all _all modules,$(MAKECMDGOALS)),) + KBUILD_MODULES := 1 +endif + +ifeq ($(MAKECMDGOALS),) + KBUILD_MODULES := 1 +endif + +export KBUILD_MODULES KBUILD_BUILTIN + ifeq ($(KBUILD_EXTMOD),) # Additional helpers built in scripts/ # Carefully list dependencies so we do not try to build scripts twice @@ -1071,6 +1065,15 @@ prepare0: archprepare gcc-plugins # All the preparing.. prepare: prepare0 prepare-objtool +# Support for using generic headers in asm-generic +PHONY += asm-generic uapi-asm-generic +asm-generic: uapi-asm-generic + $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ + src=asm obj=arch/$(SRCARCH)/include/generated/asm +uapi-asm-generic: + $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ + src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm + PHONY += prepare-objtool prepare-objtool: $(objtool_target) From patchwork Wed Dec 13 01:55:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121719 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4929873qgn; Tue, 12 Dec 2017 18:58:03 -0800 (PST) X-Google-Smtp-Source: ACJfBot/Fny40cbE2/fXrKO11o8bkujfUdCwq3vmpTKDVDjODZCXdaiBfbD7upOTdNMbM1eWqsYX X-Received: by 10.159.253.144 with SMTP id q16mr4525204pls.104.1513133883900; Tue, 12 Dec 2017 18:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513133883; cv=none; d=google.com; s=arc-20160816; b=tC0WF2USfSn58PaLtxqqii8W1yNnQ0mBiX9XU/d1u2GaZmcReULCwXrqbqrMs8NncL Zff3GGoZcP7q/kx+TQwa2o6USIb/qvs+FogYq9pVkKbAdCLL4kgC0JI80UoTZegd9Cya 6i0vZLMY7bc+Dm1Elfp2TMs5GCL2/i79li14EuQMTbU0O9llUS6KnRi4rWxTeJcoWr1l B5zdqzzeZRSC2Nh3rY0RG7KMkRQt7b7MEwQKwEMzIfYQddPQQT1Bjj5PneU+nT/7pkX/ IT8ByVKoSppelQZdyMMtG9Wzdy6KENv8sFIkUhPcXaGGpJJ+Y2gjN06fhr5yS7m/G9tt saSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:cc:from:dkim-signature :dkim-signature:dkim-signature:arc-authentication-results; bh=mzZCzPdPevRK3oSPkOGgnn2lKJjavgTg1WfuJUMdq2Q=; b=eqbxZeoU8Wm06haNI2j1nEYLKHH8Y+sdyvt/R1y97RlDWdN4CIsr6JOjfKmWM+8YrX Sma5SZKIh/sGx6TZjJaVomXOpm9iN9B01XetwTmRDMmhFSwj8Zo9FQkn/CtnappIlcN6 Xn9ZrMvyYjTvUADoLCtO+NHyOgaSxBRiuByd6LKHmeUGPZHxTD8KmH8A/Yez7pt0xrDl zO7I4MRRDjzM16VdrMAjhX4pJz+DQ0INH/UihdV/7aJgQi4mj9zFlOsLRXkvHbb1brzC 8dSftuu1m0z8nld8iI0ISx9KfHqVIed+tFJwEoCoEJk+WfEYwXiAZdQIXqM8jwN92LIK pcXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=JicgXF4u; dkim=fail header.i=@verizon.com header.s=corp header.b=dwXxOVNN; dkim=fail header.i=@verizon.com header.s=corp header.b=uDsDtaR4; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si489829plv.554.2017.12.12.18.58.03; Tue, 12 Dec 2017 18:58:03 -0800 (PST) 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; dkim=fail header.i=@verizon.com header.s=corp header.b=JicgXF4u; dkim=fail header.i=@verizon.com header.s=corp header.b=dwXxOVNN; dkim=fail header.i=@verizon.com header.s=corp header.b=uDsDtaR4; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753291AbdLMC56 (ORCPT + 10 others); Tue, 12 Dec 2017 21:57:58 -0500 Received: from omzsmtpe02.verizonbusiness.com ([199.249.25.209]:25672 "EHLO omzsmtpe02.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbdLMB4T (ORCPT ); Tue, 12 Dec 2017 20:56:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130179; x=1544666179; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bnaBazaVWZ34FZz6+IPo8dyrirPK/Xkugl+ynQXdH3c=; b=JicgXF4u6yH7zKTaVEsVblkx+AlPqiXbhQ7Yy1FL0OJz9YYrfw17aZP6 mBFAAr/ZMwNPVLnLM4Kq5IKgEWaKSugk/z9VyxHW2AxxBpBgRao7ZMlMA Hjc6M7l0Y564gJ/yhTOk+wiLz3zg17LX8hGcN4nLAKQO9BOfSUPdIbHaB s=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe02.verizonbusiness.com with ESMTP; 13 Dec 2017 01:56:17 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO apollo.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 01:56:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130163; x=1544666163; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bnaBazaVWZ34FZz6+IPo8dyrirPK/Xkugl+ynQXdH3c=; b=dwXxOVNN2sstXEjBMfHzGcsyHtR0k3cmjR2KGmAygp0TnJoKjNo7K/Bd bVqeEPKW7vgAoc7/1HbojUC9FeTidD1nSmd5oW26SD6h3YpX8HQQ9tQW2 C0QzIHWd16my7SKb5PnAYPR2WHP8WhYRDIgS8jLDib3N6JzBA3kKaJh/J M=; Received: from mariner.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.84]) by apollo.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 20:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130162; x=1544666162; h=to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:from:cc; bh=bnaBazaVWZ34FZz6+IPo8dyrirPK/Xkugl+ynQXdH3c=; b=uDsDtaR4O6dtg6JMnDiYL4PvMQNbdnbtUuJaocPA5/7eMtE1ns1rCbpK AohCqE8Z9ROcrd/ae7pORPrnxrEpuNEqm878iSnrX9eGz1w/MCYXsnD0+ TT1jsA7X0DUB4lSY5+NHC9hbIL88Hh3UTZzxKHtYW6PAOJmmrI2U2Qbq0 8=; From: alexander.levin@verizon.com Cc: Gabriele Paoloni , Dongdong Liu , Bjorn Helgaas , alexander.levin@verizon.com X-Host: mariner.tdc.vzwcorp.com Received: from ohtwi1exh002.uswin.ad.vzwcorp.com ([10.144.218.44]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 01:56:02 +0000 Received: from tbwexch20apd.uswin.ad.vzwcorp.com (153.114.162.44) by OHTWI1EXH002.uswin.ad.vzwcorp.com (10.144.218.44) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 20:56:02 -0500 Received: from OMZP1LUMXCA13.uswin.ad.vzwcorp.com (144.8.22.188) by tbwexch20apd.uswin.ad.vzwcorp.com (153.114.162.44) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:56:01 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA13.uswin.ad.vzwcorp.com (144.8.22.188) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 19:56:00 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 19:56:00 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 4.14 33/60] PCI/AER: Report non-fatal errors only to the affected endpoint Thread-Topic: [PATCH AUTOSEL for 4.14 33/60] PCI/AER: Report non-fatal errors only to the affected endpoint Thread-Index: AQHTc7Vt+LIKqBVQ4EKl6iFjOab7QQ== Date: Wed, 13 Dec 2017 01:55:19 +0000 Message-ID: <20171213015455.6455-33-alexander.levin@verizon.com> References: <20171213015455.6455-1-alexander.levin@verizon.com> In-Reply-To: <20171213015455.6455-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriele Paoloni [ Upstream commit 86acc790717fb60fb51ea3095084e331d8711c74 ] Previously, if an non-fatal error was reported by an endpoint, we called report_error_detected() for the endpoint, every sibling on the bus, and their descendents. If any of them did not implement the .error_detected() method, do_recovery() failed, leaving all these devices unrecovered. For example, the system described in the bugzilla below has two devices: 0000:74:02.0 [19e5:a230] SAS controller, driver has .error_detected() 0000:74:03.0 [19e5:a235] SATA controller, driver lacks .error_detected() When a device such as 74:02.0 reported a non-fatal error, do_recovery() failed because 74:03.0 lacked an .error_detected() method. But per PCIe r3.1, sec 6.2.2.2.2, such an error does not compromise the Link and does not affect 74:03.0: Non-fatal errors are uncorrectable errors which cause a particular transaction to be unreliable but the Link is otherwise fully functional. Isolating Non-fatal from Fatal errors provides Requester/Receiver logic in a device or system management software the opportunity to recover from the error without resetting the components on the Link and disturbing other transactions in progress. Devices not associated with the transaction in error are not impacted by the error. Report non-fatal errors only to the endpoint that reported them. We really want to check for AER_NONFATAL here, but the current code structure doesn't allow that. Looking for pci_channel_io_normal is the best we can do now. Link: https://bugzilla.kernel.org/show_bug.cgi?id=197055 Fixes: 6c2b374d7485 ("PCI-Express AER implemetation: AER core and aerdriver") Signed-off-by: Gabriele Paoloni Signed-off-by: Dongdong Liu [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/pcie/aer/aerdrv_core.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 890efcc574cb..744805232155 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -390,7 +390,14 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, * If the error is reported by an end point, we think this * error is related to the upstream link of the end point. */ - pci_walk_bus(dev->bus, cb, &result_data); + if (state == pci_channel_io_normal) + /* + * the error is non fatal so the bus is ok, just invoke + * the callback for the function that logged the error. + */ + cb(dev, &result_data); + else + pci_walk_bus(dev->bus, cb, &result_data); } return result_data.result; From patchwork Wed Dec 13 01:55:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 121696 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4881521qgn; Tue, 12 Dec 2017 17:56:50 -0800 (PST) X-Google-Smtp-Source: ACJfBosKDf1kd0mP6tPO7GR71Dv0GFMw75YG/bzYDDwLHZGqR09JcW+trZgZFSXYlZkZHdXUFfom X-Received: by 10.99.166.18 with SMTP id t18mr3863099pge.252.1513130209905; Tue, 12 Dec 2017 17:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513130209; cv=none; d=google.com; s=arc-20160816; b=d34umMrNYSyUi3qZ2JlglFypyK39ZESxMdcib/64YdNrhUCXqPIH6TmYuL0M/z0MGj XBpXHcYpcCLqO8VN40tMmTRqgrO5Usi4ReqiE9+bzCKqZccNMD/u7obzZbsGrguY8Ei5 kbeeIakrPwhGZO13Cq321HjQ8AEhaxdA6u2KpR1ntAxkjW7jOK0cnBaBQl24988s7LHM tqaapgni8DgEAjLknXFttYJVPJFZCVK1JYuli9SSMMFWWKsLw+CGSosTUmsl2U+r9dIr CLS4I0qaACk6EC+OrtzZKrni8Cbd9prBIvM4SQTeNw53AyDwuQbca3JNYGCHGBpsrK1R WPUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:cc:from:dkim-signature :dkim-signature:dkim-signature:arc-authentication-results; bh=UHHTwtx8PGMNjQ2UpfWfB0MHQpIp6hIvPWgGFd+1Qpk=; b=ASdzpB8suzQF8EsQ45VHQEHc3SX2AMg/P8DZGVd8GWf+BBRlqxtIePmffHjyfob+ht 93/ficUXwnO6xpfg3BqElfheNrYib3UYnsspXz6Yapb9PK6etT1Wl+mVgozw9yV4Rk68 AIoPXneSpBdFGj4AfLc7FuyzLOQLdG8hlgZae51aLfOJ1/pqGcvPbYVbKDDLAYI9kB70 qpU54yB4DNa38uHQU0p0maD0bHbD5myTK7cQwDHpbjzlWrhLWcR3F60Iw7yex/8FO4qr yL2PyDhwIUySzG9F5j1VA6st5qfr+s1UsiKF8xslAl3A/gb+nAvtZHOZ4sq/qB1II9bE l0yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verizon.com header.s=corp header.b=p0q1hJEw; dkim=fail header.i=@verizon.com header.s=corp header.b=EeUNmuXE; dkim=fail header.i=@verizon.com header.s=corp header.b=iW/DSX9S; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si390623pgq.358.2017.12.12.17.56.49; Tue, 12 Dec 2017 17:56:49 -0800 (PST) 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; dkim=fail header.i=@verizon.com header.s=corp header.b=p0q1hJEw; dkim=fail header.i=@verizon.com header.s=corp header.b=EeUNmuXE; dkim=fail header.i=@verizon.com header.s=corp header.b=iW/DSX9S; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752751AbdLMB4q (ORCPT + 11 others); Tue, 12 Dec 2017 20:56:46 -0500 Received: from omzsmtpe02.verizonbusiness.com ([199.249.25.209]:18384 "EHLO omzsmtpe02.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752676AbdLMB4f (ORCPT ); Tue, 12 Dec 2017 20:56:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130194; x=1544666194; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=UHHTwtx8PGMNjQ2UpfWfB0MHQpIp6hIvPWgGFd+1Qpk=; b=p0q1hJEwYmpqmBizKjGyGWsImcWhUlbwmptlWk4LEa2kkiEkJ+MvFGlj +a8MUEixFhDAaaPUaj2JtmkRKwzfaceqnADS+xZSiZO4Ok4ftFb/+UC2I K3VJKKEw1hUgLaYDkyftHStIT8t29HB9N+5i8t4Rvc3qORbOhsdiOss+e 0=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe02.verizonbusiness.com with ESMTP; 13 Dec 2017 01:56:19 +0000 Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO apollo.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Dec 2017 01:56:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130176; x=1544666176; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=UHHTwtx8PGMNjQ2UpfWfB0MHQpIp6hIvPWgGFd+1Qpk=; b=EeUNmuXEp+dTou+boy2G2SYRtgUPWqWC9/Sx4qma79RH6bFaQ2wJ2Gbd uq3qaIUK/NllKHzPGmnrFTFEUZdLZcRCaSAbzQMTMKHutIVs3d8z4LiHq COg/2QS7nGsDADYvCef1KLZnmRKyXMRjQEdG92+9OtYlv6uEMfEhtyNcU E=; Received: from mariner.tdc.vzwcorp.com (HELO eris.verizonwireless.com) ([10.254.88.84]) by apollo.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Dec 2017 20:56:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1513130172; x=1544666172; h=to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version:from:cc; bh=UHHTwtx8PGMNjQ2UpfWfB0MHQpIp6hIvPWgGFd+1Qpk=; b=iW/DSX9SKn+SXcDuRUXIAsSa+v9izuuzB7nSNidXOiqpTfhZJof0jLIO nMwnhJF+fNsRZlY8MEFmjey+dTym2Mppx/vJfBIQIXpyuvyqWKQZgVW1C RLZ9an820osXc5dtfIa3gRawFZ2y7YjssdtMAmFbOALSD7Lbsmp9658GG c=; From: alexander.levin@verizon.com Cc: Marek Szyprowski , Krzysztof Kozlowski , alexander.levin@verizon.com X-Host: mariner.tdc.vzwcorp.com Received: from ohtwi1exh003.uswin.ad.vzwcorp.com ([10.144.218.45]) by eris.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 13 Dec 2017 01:56:11 +0000 Received: from tbwexch22apd.uswin.ad.vzwcorp.com (153.114.162.46) by OHTWI1EXH003.uswin.ad.vzwcorp.com (10.144.218.45) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 12 Dec 2017 20:56:11 -0500 Received: from OMZP1LUMXCA13.uswin.ad.vzwcorp.com (144.8.22.188) by tbwexch22apd.uswin.ad.vzwcorp.com (153.114.162.46) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 20:56:11 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA13.uswin.ad.vzwcorp.com (144.8.22.188) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 12 Dec 2017 19:56:10 -0600 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Tue, 12 Dec 2017 19:56:10 -0600 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 4.14 48/60] ARM: exynos_defconfig: Enable UAS support for Odroid HC1 board Thread-Topic: [PATCH AUTOSEL for 4.14 48/60] ARM: exynos_defconfig: Enable UAS support for Odroid HC1 board Thread-Index: AQHTc7VwpZE0kkx1IkePRbR8axVBEw== Date: Wed, 13 Dec 2017 01:55:23 +0000 Message-ID: <20171213015455.6455-48-alexander.levin@verizon.com> References: <20171213015455.6455-1-alexander.levin@verizon.com> In-Reply-To: <20171213015455.6455-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit a99897f550de96841aecb811455a67ad7a4e39a7 ] Odroid HC1 board has built-in JMicron USB to SATA bridge, which supports UAS protocol. Compile-in support for it (instead of enabling it as module) to make sure that all built-in storage devices are available for rootfs. The bridge itself also supports fallback to standard USB Mass Storage protocol, but USB Mass Storage class doesn't bind to it when UAS is compiled as module and modules are not (yet) available. Signed-off-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- arch/arm/configs/exynos_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index 8c2a2619971b..f1d7834990ec 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -244,7 +244,7 @@ CONFIG_USB_STORAGE_ONETOUCH=m CONFIG_USB_STORAGE_KARMA=m CONFIG_USB_STORAGE_CYPRESS_ATACB=m CONFIG_USB_STORAGE_ENE_UB6250=m -CONFIG_USB_UAS=m +CONFIG_USB_UAS=y CONFIG_USB_DWC3=y CONFIG_USB_DWC2=y CONFIG_USB_HSIC_USB3503=y