From patchwork Mon Dec 2 09:41:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 180552 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4961642ile; Mon, 2 Dec 2019 01:42:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxea0LzWvnsRlhC8gY52M6NAppoMitR67ogcisN5ycgZ5vsVQ9jqsrOH1aFitprDzUXC3FB X-Received: by 2002:aa7:df82:: with SMTP id b2mr5478803edy.46.1575279732708; Mon, 02 Dec 2019 01:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575279732; cv=none; d=google.com; s=arc-20160816; b=aigIG1HwhlP6dCt5siG0TtSCmOGuvR6TnaoXoY1LS5mI4eL1/+IFMeVxYHYpsr43sA qmaAU1eg5PYzvyatemjCGximwGQTyRyNV+82cQ58n8yzkrgoa1HHd+Rq73K0EDUTSYhH K06bDOztdyE7QfMm5/WIXZ8WbYJ0Og9hSlBrdEbwEWhhUt9cDt1B3Q8f0dAt6B3BFQtp OKp66EnCT90Zm9Vo0E76gFGDGQJ3cf1J2UJMyXHqAcZksN+CjKDMKWNHQH1bll/ACpl0 xCcGFPBxIQEMRPQv/kr5GUWG7tasfi3Sj8Cyb2TksG9o0U79HEYFtPAe0Oj7y9TqHaDO tlzA== 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 :message-id:date:subject:to:from:dkim-signature; bh=jREQE+bGMWZ83hzSZ5R/u/Tew5kuKbz+yZnyyRL8Mxk=; b=LD4/kwtMjad7YdGSC8zYOfH7XherKvn26kPilHKTpy/d98Y+n9GrQ7gFQuSZ8A2xo4 azYR+xBB/RVQp3FZYiAJEFZ9PmGRILx4GOLrz/JU2QiLCAWG9PsGqkV3/70+f6m0PDqe I6w48KwjfnacDcma+x6zMwLovieMtZ5K0+4DguvTuRNBY0mHvr6PRD6gTcgOzdj03f4c iFJygyJ/0Rb6EGGkwKteN/8117Qzw//bOErsqXDGsiCs34FGWP4yA43fNpn0d+KfK42Z SvGJxHm9qPUJux2TlNOzHTEwGEoq1UdpwTpjSiVu8liS0UfNTNnxBR1iREu1kC2JRs+C IDfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IGN84s0u; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si6534896eja.154.2019.12.02.01.42.12; Mon, 02 Dec 2019 01:42:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IGN84s0u; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726339AbfLBJmM (ORCPT + 15 others); Mon, 2 Dec 2019 04:42:12 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36596 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbfLBJmL (ORCPT ); Mon, 2 Dec 2019 04:42:11 -0500 Received: by mail-wm1-f68.google.com with SMTP id p17so16487207wma.1 for ; Mon, 02 Dec 2019 01:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jREQE+bGMWZ83hzSZ5R/u/Tew5kuKbz+yZnyyRL8Mxk=; b=IGN84s0uxjaWmLDhTnJYDej5ZRNPztH/bYRmY9K+D/B2sD+b/YNAg/Np9rC1IEOHnf zbvjYKGJDSbtW4N4c7K3ur1j8sXPE6d4CG1vwLi2wxypabCEzgmwu9xuZx7b9zUGDmnf sdVAluFnyXtkZvQZ5FgIKxGN+LXW4QRjLlAAI5vvImeUwQC1SR2HUhMx+6HoZz3L0/oi DSZf6QfJluXU9/khwmh7m0VxWdbEzB3hUARzXnHHUWgZBo7aIwTrw9CebHeRsJtgckGl 47/ySt0N2vjMSl8rjxaT87B83gszvzzHDvQFhcp9gzxvj6oDfsugPsYdiZjUnqWL6v+u LpqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jREQE+bGMWZ83hzSZ5R/u/Tew5kuKbz+yZnyyRL8Mxk=; b=ftJ1jxe4uYjEgzatY/HqsYXfUaAG1aZ+Xp1eZyQnRAn8SnEvssZdxaVYtOTob43DSu Q/nXf7/VKVaKTnooGV0fqy1Lrsf0GjyKjYl/pMK4/CMuLHuQWwzc9+AzcqBkHu6zYmDb A/hTy6WwKyIRdPsbTiban7mcOSLHLQr+WVZdFT7tgHrx1QGqRUfEyiuCrxqt1pjYB2Hf 82VVGy+N/cwfWSNbvRKF757Z1aLn86mhZxmqnvqdXOHmXF+dx4rmIg+5cJns0rlr24Kx lDlIGf+nc/R3oz7f5x0nK+AHaOLEMGLhhA6IOZLKiKL+QUhAJVOgIh56I/Fr79zzOhIm 6KKQ== X-Gm-Message-State: APjAAAWEaPUbcqk9lRJDbBiA5fV6ejpL+7ixZ5rwZP//ND6aDEKCuOW1 AQtHhg8wg0AHwslxxnnzyQMwks/ey8g= X-Received: by 2002:a05:600c:218f:: with SMTP id e15mr8437939wme.124.1575279729352; Mon, 02 Dec 2019 01:42:09 -0800 (PST) Received: from localhost.localdomain ([2.27.35.155]) by smtp.gmail.com with ESMTPSA id w8sm990381wmm.0.2019.12.02.01.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 01:42:08 -0800 (PST) From: Lee Jones To: stable@vger.kernel.org Subject: [PATCH 4.4 1/4] arm: add missing include platform-data/atmel.h Date: Mon, 2 Dec 2019 09:41:47 +0000 Message-Id: <20191202094150.32485-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Philippe Mazenauer [ Upstream commit 95701b1c3c8fe36368361394e3950094eece4723 ] Include corresponding headerfile for function at91_suspend_entering_slow_clock(). ../arch/arm/mach-at91/pm.c:279:5: warning: no previous prototype for ‘at91_suspend_entering_slow_clock’ [-Wmissing-prototypes] int at91_suspend_entering_slow_clock(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mazenauer Signed-off-by: Alexandre Belloni Signed-off-by: Lee Jones --- arch/arm/mach-at91/pm.c | 1 + 1 file changed, 1 insertion(+) -- 2.24.0 diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 84eefbc2b4f9..983a313bdbaf 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include From patchwork Mon Dec 2 09:41:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 180553 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4961655ile; Mon, 2 Dec 2019 01:42:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyBIOhqOZzzE55HrF0yneZLI0Nxr4cO8qEexszSJ/8v+hdvYx1yvkmbMXiPIxNBn1ewjJvC X-Received: by 2002:a17:906:8498:: with SMTP id m24mr52964116ejx.43.1575279734125; Mon, 02 Dec 2019 01:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575279734; cv=none; d=google.com; s=arc-20160816; b=uhoMXBQ+uW+ROTzoOePmWh+En6M7JV7q2dtXcEqz3hWvRgaRxF+67sgc36Gn/YuWIy K9isamxPaZdbFxO2NnAgs1/R2QswY6Ri7GhxpU01eoOhGWy783thpFP1Yy3iojJ3reBF UZ9wg9eAJgytNc2keeoME2UETXGvczLTu3pg1ay04qBH0REbGzzF9jMkFT3reUuQYTgo c4/IkWiSZ3hbdXeJVNiMk35fGZB4Usqlp5yCxvkga3AXPzWnCU786K6onanWCLVx0m0e frupb7IMJYSLJHJt2lm8Hl9bQl/y54b1ythIYEsw1bronPjdnOrJZ1yp0dK6CCV0UhAr T+rQ== 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:to:from :dkim-signature; bh=SeakG/SO32j9YDGzR0+NdM33HAkLnvIddAgJpsxOi7w=; b=A7/d8sg+fBOLthgutX1RvKCVAAkfkiM8x/BqSJnTl7nzaB6cX2qKFMuH1MXy8Pxx2R TcGWVrS5M1JHBSn+xFkBvVgvFzpQBn5K5ZAK6AnyDOFYvE3GGs/EZ9pBccfSZDp+eXUq xxdVt8bkWf8AmuAMl9Crqf7UYMNLAJhNXSgdt3uT++HGnxEg0NCDWl+KW9+R/8C7g026 Kst691rZw2h/OxMI3yJsLNex6FgzBbh/PKRGLQADDKkk08V5pYkXyOcKLaVdYB+Zg620 X8vcSxg8NS+lsoODJpVHagnV52M35thhCMy1XVBdFCrKAPvTEI5zMykrsCDVobCDr4hS eseQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RoKAfrIu; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si6534896eja.154.2019.12.02.01.42.13; Mon, 02 Dec 2019 01:42:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RoKAfrIu; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbfLBJmN (ORCPT + 15 others); Mon, 2 Dec 2019 04:42:13 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34948 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbfLBJmN (ORCPT ); Mon, 2 Dec 2019 04:42:13 -0500 Received: by mail-wr1-f67.google.com with SMTP id g17so11265885wro.2 for ; Mon, 02 Dec 2019 01:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=SeakG/SO32j9YDGzR0+NdM33HAkLnvIddAgJpsxOi7w=; b=RoKAfrIuh0K7w7OXW818j6rYBtHlj/mkHvmg7blTec8lAshWSf4RcThsmtYheDjjhA SlaQIyzAxdZoEQVsiPM58iOn3XaIGjg1POxV8FrYfGktTLO+mHcWRFsNvcQ/M0BdUoLM MlpYvubFTn2PsOzX7iCUXLXYJY8Db5ATuCi2vP2Ba/5LxspPA/v2gG6AjnZ53uJEfFFu shD6vqPe5kgF5IANVI8DUOo7vjncSMsQnp9JT8h8bqgUD2MgLBRHuFDygMD9CtK5Jz7N 6YGYHML7cKM+kTQ98JPQIJzvhzZkAB0j3ZyVELqhIMnX88jZwPBLDFVUWWRZEMuEhnjG xVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SeakG/SO32j9YDGzR0+NdM33HAkLnvIddAgJpsxOi7w=; b=npnxFa7RvzKFcrXdr3JhHW5iYwhsOJJD3AhESaquqN+f5QyeNZsBwIMLl3tJer2k8a z7XvZdt1dJ4uHdwIBJFkhNB24iRnjgrLhJHzx+os3xSy/JdSADQyPZXo6R/b2wUT0hXF 5RN9WJnCHKenvGssPi0JrjTuHpX8GCU3B46njxxYAvimibFHS201IZvevkWP7j4/JCW5 8b+6BaBmFSY3AW/3QP0SNJMDOQn4seKswVVPzbeKTVwE8tzrX0Rq8Kx1R7sIVR1deeDM msnCDmfsnJdKxE/XVM8cfr/vVf99s/D//j1OpxoUP6qKrH2Cj4NkJj1rQ8YtX5TV2Tvn 5YVA== X-Gm-Message-State: APjAAAXJ4N5dYpzjQfS/fjV8n9mWTP2iQkrP+mNVETcmB7TZopzHR22X y9wtmY+evXlv25KiKIV7VhgKU1fKHW8= X-Received: by 2002:adf:dc86:: with SMTP id r6mr53699895wrj.68.1575279731076; Mon, 02 Dec 2019 01:42:11 -0800 (PST) Received: from localhost.localdomain ([2.27.35.155]) by smtp.gmail.com with ESMTPSA id w8sm990381wmm.0.2019.12.02.01.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 01:42:10 -0800 (PST) From: Lee Jones To: stable@vger.kernel.org Subject: [PATCH 4.4 2/4] media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE Date: Mon, 2 Dec 2019 09:41:48 +0000 Message-Id: <20191202094150.32485-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191202094150.32485-1-lee.jones@linaro.org> References: <20191202094150.32485-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Eugen Hristev [ Upstream commit a0816e5088baab82aa738d61a55513114a673c8e ] Control DO_WHITE_BALANCE is a button, with read only and execute-on-write flags. Adding this control in the proper list in the fill function. After adding it here, we can see output of v4l2-ctl -L do_white_balance 0x0098090d (button) : flags=write-only, execute-on-write Signed-off-by: Eugen Hristev Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Lee Jones --- drivers/media/v4l2-core/v4l2-ctrls.c | 1 + 1 file changed, 1 insertion(+) -- 2.24.0 diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 3140ffbb1e67..9932b276f11a 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -991,6 +991,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type, case V4L2_CID_FLASH_STROBE_STOP: case V4L2_CID_AUTO_FOCUS_START: case V4L2_CID_AUTO_FOCUS_STOP: + case V4L2_CID_DO_WHITE_BALANCE: *type = V4L2_CTRL_TYPE_BUTTON; *flags |= V4L2_CTRL_FLAG_WRITE_ONLY | V4L2_CTRL_FLAG_EXECUTE_ON_WRITE; From patchwork Mon Dec 2 09:41:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 180554 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4961673ile; Mon, 2 Dec 2019 01:42:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzAKwXtbQS1L064C7b1Mno5cRcmghFU0Tmc+DRntrOtli6gzhMej2+gwXX82Phzel2OgkPU X-Received: by 2002:a50:fc99:: with SMTP id f25mr4844322edq.250.1575279734793; Mon, 02 Dec 2019 01:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575279734; cv=none; d=google.com; s=arc-20160816; b=gin24ouIY9Jcqb9so9GTlxA+n/U3DWUoHlPCIJd6qdGo23Q6wDgH8E7niwv3aP/ikD 1D4rc1DJzXgnZ2t9xAd60ZdqhcjxLiS6CMDDk7ftTdDIoxCZqC5R0LXZtTcUJjEXssT0 MHMagEZlEA6K5XH7WCvuUOsxv7txqYKhWvepM4IHuIetpBk/KsWObpobxhPK4rqY0z7W DvRcWG9LbsgPe0ujtHgqIL/UgqkXuwFAW4gN4YXYZOT6uRpzo7w1rnOj13Tx+7gnTf+M J7Ll5A9qh4vJFMFudjDFn5TtIZifHVFgNe5OdOyJLqdVdycrrcxsiOjlxgc3UEwQ/W4a 5HJA== 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:to:from :dkim-signature; bh=f8o2MHBmdU+g1TqYQB240FVyZ62ANhRFiNEs2ZZzTMU=; b=DCt6C21Wr7wWR2eqbhO5TWO4EL6V39CDtrSnfDJdyPn79zR7DMWjZ+Ij9nPCd4T6MS Zty5q5ns34ieeqYPLUrsZxCgniwuy/u8Nznm9aWFmsI38COvHKVGUdliU8q/6XTQ0Xtl 4ZynFcFEghdNe4SDjR/u0iIbKh/5aHf1TrMfr+z9N5Br9rz/SGTB91sMP4kUga5/taI2 PjV0iSS/TrHTp9WO8IfaQd3JDPvtZI0MB52bqWlZo8W/ut47OqxGMGt0zCJmrBKsdTXf 5EWWen7nEtPcnDVsijMde5ejY43AiNuCs8V9FG3Y02ydNVN4YbD6QUGPwpoIdxEnHuEl yVrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G+Tq1wpf; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si6534896eja.154.2019.12.02.01.42.14; Mon, 02 Dec 2019 01:42:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G+Tq1wpf; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726318AbfLBJmO (ORCPT + 15 others); Mon, 2 Dec 2019 04:42:14 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35237 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbfLBJmN (ORCPT ); Mon, 2 Dec 2019 04:42:13 -0500 Received: by mail-wm1-f68.google.com with SMTP id u8so6828113wmu.0 for ; Mon, 02 Dec 2019 01:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=f8o2MHBmdU+g1TqYQB240FVyZ62ANhRFiNEs2ZZzTMU=; b=G+Tq1wpfbHC/arJWlfODhCe4Zc41PwwncqoRzWtAHlOmQPVtXpNIomtzxJb0kVqvrB FX+5ppYCSCDsVqn5TZUA1uL2rZieiZuXjmG0Iv2WTqMKzrYsQ+8eoaygjFo1cV9X+bik vFx1eO0IP0OmWRv+kOZmEPHY4lXr/wSRs4Of8NvKCSji8az0ZSWr76xx/I8s/p5Ezy4j BvzuIrhBF8ysEyjGzjqJucV7rygni4RXRTqev+NFCD2dBypIIiMyxePTXgKoHbLJSYCn MPu09Yp5bDu8ZgCTDzrXTPXte0xoqH/Hx62OfGgKeF+gh24czJGvCc6VY9UtFRhFIvm6 1GhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f8o2MHBmdU+g1TqYQB240FVyZ62ANhRFiNEs2ZZzTMU=; b=GwrJIYjJD0fCz4VUeKOQLL3l/P/UGAHPKMUsLeYi9LUwW/0ocuTLpcLdXugfwBiH/c QI9dGS0uBEX4afBIZsyLL4VUynMKPOYIShWNpYnX2BcsNK8shM5MG2Tpf+XqrAUqCoO9 32uTzpcy0/rHGfQGvBzHQCf6KyoFwT5oNymRxgydosC7lvEmS1IZUSjzeY9MCriV1l1R CkvlMXL7BUtCn0xUmYbAfMfc3F4DfjUizuvEoN0heM5ASB1xbuXYR5GdY4DR+4iqdRQB kCMqsNNeyyTCznQ+snAcEHhKJjzeixEuD8So8tSEhvWPGDPabaL3G6/dgVd4kUs6F3+/ mlkg== X-Gm-Message-State: APjAAAWmebnUVRbGqmnaq+H8D+SalISy2oSK+azwkaUbQ4aIW/xT//W2 gtc1OsJzG0GcoK/PTKtCt2feOgycANc= X-Received: by 2002:a7b:c1d3:: with SMTP id a19mr28354783wmj.127.1575279731645; Mon, 02 Dec 2019 01:42:11 -0800 (PST) Received: from localhost.localdomain ([2.27.35.155]) by smtp.gmail.com with ESMTPSA id w8sm990381wmm.0.2019.12.02.01.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 01:42:11 -0800 (PST) From: Lee Jones To: stable@vger.kernel.org Subject: [PATCH 4.4 3/4] net: macb: fix error format in dev_err() Date: Mon, 2 Dec 2019 09:41:49 +0000 Message-Id: <20191202094150.32485-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191202094150.32485-1-lee.jones@linaro.org> References: <20191202094150.32485-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Luca Ceresoli [ Upstream commit f413cbb332a0b5251a790f396d0eb4ebcade5dec ] Errors are negative numbers. Using %u shows them as very large positive numbers such as 4294967277 that don't make sense. Use the %d format instead, and get a much nicer -19. Signed-off-by: Luca Ceresoli Fixes: b48e0bab142f ("net: macb: Migrate to devm clock interface") Fixes: 93b31f48b3ba ("net/macb: unify clock management") Fixes: 421d9df0628b ("net/macb: merge at91_ether driver into macb driver") Fixes: aead88bd0e99 ("net: ethernet: macb: Add support for rx_clk") Fixes: f5473d1d44e4 ("net: macb: Support clock management for tsu_clk") Acked-by: Nicolas Ferre Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Lee Jones --- drivers/net/ethernet/cadence/macb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.24.0 diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 085f77f273ba..75bdb6aad352 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -2275,14 +2275,14 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, *pclk = devm_clk_get(&pdev->dev, "pclk"); if (IS_ERR(*pclk)) { err = PTR_ERR(*pclk); - dev_err(&pdev->dev, "failed to get macb_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to get macb_clk (%d)\n", err); return err; } *hclk = devm_clk_get(&pdev->dev, "hclk"); if (IS_ERR(*hclk)) { err = PTR_ERR(*hclk); - dev_err(&pdev->dev, "failed to get hclk (%u)\n", err); + dev_err(&pdev->dev, "failed to get hclk (%d)\n", err); return err; } @@ -2292,19 +2292,19 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, err = clk_prepare_enable(*pclk); if (err) { - dev_err(&pdev->dev, "failed to enable pclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable pclk (%d)\n", err); return err; } err = clk_prepare_enable(*hclk); if (err) { - dev_err(&pdev->dev, "failed to enable hclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable hclk (%d)\n", err); goto err_disable_pclk; } err = clk_prepare_enable(*tx_clk); if (err) { - dev_err(&pdev->dev, "failed to enable tx_clk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable tx_clk (%d)\n", err); goto err_disable_hclk; } @@ -2704,7 +2704,7 @@ static int at91ether_clk_init(struct platform_device *pdev, struct clk **pclk, err = clk_prepare_enable(*pclk); if (err) { - dev_err(&pdev->dev, "failed to enable pclk (%u)\n", err); + dev_err(&pdev->dev, "failed to enable pclk (%d)\n", err); return err; } From patchwork Mon Dec 2 09:41:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 180555 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4961687ile; Mon, 2 Dec 2019 01:42:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxdhoIrC0Szewp+O76jYNdYXhk9gUWbJ77rE9c4D/uq/i4ekAVELW/mZYy1GdiNNhkW3oJq X-Received: by 2002:aa7:d356:: with SMTP id m22mr61125181edr.170.1575279735503; Mon, 02 Dec 2019 01:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575279735; cv=none; d=google.com; s=arc-20160816; b=PxRP9YCNGf0IRt18MtDlASt86YOWG3FQIHOqJSiUpSbMLBE9KZmz6KfMnKxhZcktrW 0qebnL2yO9AO+rC6o0V83/Ng6lFzNaU/wS0cS/fWVwI47yH5dHX27Sfpz2p3MZyUH2Oh lsmIS7au9hRfU7GUGIFnTuhBbmOKIwTQbz4NZJx3HW9YrKbVkdvNnDxEfnb+eXFi3qEi +Vu+kybnzncxoAlvKSL9okYc4iHdbwW5rxpk/nOWbNzrCIUzE51ZUVjygH5vBd6+O1zL UX22LiVERGOSrMd3Mlbem1mLuqdPRlnFp4fd84pm9sz6zYPwXQdsucD3zcgi5Y+Kb3AV 5fOw== 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:to:from :dkim-signature; bh=kaD4X+iA+hefnr2SY426Cp6AZq0PIpD1GzWQcMxIds0=; b=SprkPnV/66We7is6IQV0kS3RpiT+wn00cTssVvk5IIW83u3ur2rClQoES51bXjJSF8 BAKKq2pkVP8T6o+b70f75pmmbkv/jQO7jObww8GVXOOutYz//dxsnxd6kf/0/OuXLdg8 RG5wgylnURHk5+YU+4F3m1lzAq99WXAH1HkQQZ9RbQOAPyGImqACm1KS4Zleq/tthxVw 3pPgVHbPiilvhzBbKb4fSO/kojPMQxFUBWwKH7ew4OErHw8KNzmR4jnNyLpgKz3PliDj 6ZDa8lEX1gAWvhJNrbXlz6bY3QzXvyfkyyeGsmk9xClyN6iUg+52Kzd6PNvSFVLLU4z2 QOcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AX10FchA; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si6534896eja.154.2019.12.02.01.42.15; Mon, 02 Dec 2019 01:42:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AX10FchA; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbfLBJmO (ORCPT + 15 others); Mon, 2 Dec 2019 04:42:14 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35237 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbfLBJmO (ORCPT ); Mon, 2 Dec 2019 04:42:14 -0500 Received: by mail-wm1-f66.google.com with SMTP id u8so6828185wmu.0 for ; Mon, 02 Dec 2019 01:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=kaD4X+iA+hefnr2SY426Cp6AZq0PIpD1GzWQcMxIds0=; b=AX10FchAzj258tGdsEXsMQf+oayOn8Rmx/rDannYqYzO/9kuBXeGWesbgaupbxVDti F7R+ztIOU8P+HWp03T8AKFlkcOcGFINVvPgyHZh1g1Bn+FsXlyfcNxmo4Off6677TTBI U38teApdACZtqNPxSu41RzLJNqy3HjF6BEPKvl4mnOFmtEKffV9RAxToDn7p/bFGLLpm J9UuCYR8l+AVtA3ANQ9yCDKtNaZm9RxYcfAbb+tnM+EH0EQagPiLxtRvPy34aHURJtL4 sf1IAUWC2oFjCPIsDNs0gz7A4x8LpwbOXCNvXfRGoqqyzzhZfd7xeuSXhahHlCLgeohw 5pOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kaD4X+iA+hefnr2SY426Cp6AZq0PIpD1GzWQcMxIds0=; b=mUbkGvkTpb7AUFC0f4tPhTtcFIHzWfnh6RWweLPvn2n7UUps/aGBuXF8oWEint9qQr 7At61d3ZMGFQxHlv/BQ4w2ki9imi/1+SKN5uIGLgUVBMP/jisDUYK1a2Ksiw+HYZ5U1q qjPJDSIfS2n0OQQjJx87o0j55jdG82+w9KZ5qAMjlSk6b1PsNoFIIWpS+XfbyuIenPkl +QjvVC1A2g32dFoyaL3b1mPdf2Z4I4/uqGfcwpAtOPCJ8XYNlDBJQ19Rj6lNi4E0seMw fsuIFI2S6sJi2x0sZZZ+LGewq6c0CtUXWYVi0c1t0RBEMQ7slI/bci+AotFiCCOyQwnk Sm9g== X-Gm-Message-State: APjAAAUW+PEqo5c0YPsYHGuY1itrMKTS5icRDqEcq18W/VUT120J438Z cUqyyF+bv+pzUeLO1cbMMSc78lVnwsg= X-Received: by 2002:a1c:ed05:: with SMTP id l5mr28968074wmh.161.1575279732668; Mon, 02 Dec 2019 01:42:12 -0800 (PST) Received: from localhost.localdomain ([2.27.35.155]) by smtp.gmail.com with ESMTPSA id w8sm990381wmm.0.2019.12.02.01.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 01:42:12 -0800 (PST) From: Lee Jones To: stable@vger.kernel.org Subject: [PATCH 4.4 4/4] pwm: Clear chip_data in pwm_put() Date: Mon, 2 Dec 2019 09:41:50 +0000 Message-Id: <20191202094150.32485-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191202094150.32485-1-lee.jones@linaro.org> References: <20191202094150.32485-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Uwe Kleine-König [ Upstream commit e926b12c611c2095c7976e2ed31753ad6eb5ff1a ] After a PWM is disposed by its user the per chip data becomes invalid. Clear the data in common code instead of the device drivers to get consistent behaviour. Before this patch only three of nine drivers cleaned up here. Signed-off-by: Uwe Kleine-König Signed-off-by: Thierry Reding Signed-off-by: Lee Jones --- drivers/pwm/core.c | 1 + drivers/pwm/pwm-samsung.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.24.0 diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 6911f9662300..5e582099ebaa 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -781,6 +781,7 @@ void pwm_put(struct pwm_device *pwm) if (pwm->chip->ops->free) pwm->chip->ops->free(pwm->chip, pwm); + pwm_set_chip_data(pwm, NULL); pwm->label = NULL; module_put(pwm->chip->ops->owner); diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c index ada2d326dc3e..42f270ef2f7b 100644 --- a/drivers/pwm/pwm-samsung.c +++ b/drivers/pwm/pwm-samsung.c @@ -226,7 +226,6 @@ static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) { devm_kfree(chip->dev, pwm_get_chip_data(pwm)); - pwm_set_chip_data(pwm, NULL); } static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm)